From db4400bfe93c8eca9809e3d13ff7b8621f6bc5bf Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sat, 18 Feb 2017 10:58:29 +0700 Subject: [PATCH] Dropping custom qtc + easyjson - Updating documentation for chromedp-gen to point to standard versions of easyjson/quicktemplate (qtc) and added information about goimports - Replaced {% end %} non-standard quicktemplate tags with the appropriate closing tags - Updated to latest chrome protocol.json definition - Regenerated cdp protocol after switching to standard easyjson/qtc --- cdp/accessibility/easyjson.go | 1388 ++-- cdp/animation/easyjson.go | 1164 +-- cdp/applicationcache/easyjson.go | 904 +-- cdp/cachestorage/easyjson.go | 686 +- cdp/css/easyjson.go | 8916 +++++++++++----------- cdp/database/easyjson.go | 732 +- cdp/debugger/easyjson.go | 5850 +++++++------- cdp/deviceorientation/easyjson.go | 128 +- cdp/dom/easyjson.go | 9668 ++++++++++++------------ cdp/domdebugger/easyjson.go | 1550 ++-- cdp/domstorage/easyjson.go | 1210 +-- cdp/easyjson.go | 386 +- cdp/emulation/easyjson.go | 1750 ++--- cdp/heapprofiler/easyjson.go | 1262 ++-- cdp/indexeddb/easyjson.go | 2240 +++--- cdp/input/easyjson.go | 10 +- cdp/inspector/easyjson.go | 258 +- cdp/io/easyjson.go | 156 +- cdp/layertree/easyjson.go | 1566 ++-- cdp/log/easyjson.go | 770 +- cdp/log/types.go | 15 +- cdp/network/easyjson.go | 8846 +++++++++++----------- cdp/page/easyjson.go | 6794 ++++++++--------- cdp/profiler/easyjson.go | 950 +-- cdp/rendering/easyjson.go | 278 +- cdp/runtime/easyjson.go | 5976 +++++++-------- cdp/schema/easyjson.go | 10 +- cdp/security/easyjson.go | 476 +- cdp/serviceworker/easyjson.go | 1644 ++-- cdp/systeminfo/easyjson.go | 362 +- cdp/target/easyjson.go | 2460 +++--- cdp/tethering/easyjson.go | 144 +- cdp/tracing/easyjson.go | 1252 +-- cmd/chromedp-gen/README.md | 44 +- cmd/chromedp-gen/protocol.json | 1 + cmd/chromedp-gen/templates/domain.qtpl | 8 +- cmd/chromedp-gen/templates/extra.qtpl | 2 +- cmd/chromedp-gen/templates/file.qtpl | 4 +- 38 files changed, 35197 insertions(+), 34663 deletions(-) diff --git a/cdp/accessibility/easyjson.go b/cdp/accessibility/easyjson.go index e2dae4c..ae74bde 100644 --- a/cdp/accessibility/easyjson.go +++ b/cdp/accessibility/easyjson.go @@ -42,10 +42,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility(in *jlexer.Lexer out.Nodes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Nodes = make([]*AXNode, 0, 8) + if out.Nodes == nil { + if !in.IsDelim(']') { + out.Nodes = make([]*AXNode, 0, 8) + } else { + out.Nodes = []*AXNode{} + } } else { - out.Nodes = []*AXNode{} + out.Nodes = (out.Nodes)[:0] } for !in.IsDelim(']') { var v1 *AXNode @@ -203,681 +207,7 @@ func (v *GetPartialAXTreeParams) UnmarshalJSON(data []byte) error { func (v *GetPartialAXTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(in *jlexer.Lexer, out *AXNode) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 = AXNodeID(in.String()) - case "ignored": - out.Ignored = bool(in.Bool()) - case "ignoredReasons": - if in.IsNull() { - in.Skip() - out.IgnoredReasons = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.IgnoredReasons = make([]*AXProperty, 0, 8) - } else { - out.IgnoredReasons = []*AXProperty{} - } - for !in.IsDelim(']') { - var v4 *AXProperty - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(AXProperty) - } - (*v4).UnmarshalEasyJSON(in) - } - out.IgnoredReasons = append(out.IgnoredReasons, v4) - in.WantComma() - } - in.Delim(']') - } - case "role": - if in.IsNull() { - in.Skip() - out.Role = nil - } else { - if out.Role == nil { - out.Role = new(AXValue) - } - (*out.Role).UnmarshalEasyJSON(in) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(AXValue) - } - (*out.Name).UnmarshalEasyJSON(in) - } - case "description": - if in.IsNull() { - in.Skip() - out.Description = nil - } else { - if out.Description == nil { - out.Description = new(AXValue) - } - (*out.Description).UnmarshalEasyJSON(in) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(AXValue) - } - (*out.Value).UnmarshalEasyJSON(in) - } - case "properties": - if in.IsNull() { - in.Skip() - out.Properties = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Properties = make([]*AXProperty, 0, 8) - } else { - out.Properties = []*AXProperty{} - } - for !in.IsDelim(']') { - var v5 *AXProperty - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(AXProperty) - } - (*v5).UnmarshalEasyJSON(in) - } - out.Properties = append(out.Properties, v5) - in.WantComma() - } - in.Delim(']') - } - case "childIds": - if in.IsNull() { - in.Skip() - out.ChildIds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ChildIds = make([]AXNodeID, 0, 4) - } else { - out.ChildIds = []AXNodeID{} - } - for !in.IsDelim(']') { - var v6 AXNodeID - v6 = AXNodeID(in.String()) - out.ChildIds = append(out.ChildIds, v6) - in.WantComma() - } - in.Delim(']') - } - case "backendDOMNodeId": - (out.BackendDOMNodeID).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(out *jwriter.Writer, in AXNode) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.String(string(in.NodeID)) - } - if in.Ignored { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"ignored\":") - out.Bool(bool(in.Ignored)) - } - if len(in.IgnoredReasons) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"ignoredReasons\":") - if in.IgnoredReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v7, v8 := range in.IgnoredReasons { - if v7 > 0 { - out.RawByte(',') - } - if v8 == nil { - out.RawString("null") - } else { - (*v8).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Role != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"role\":") - if in.Role == nil { - out.RawString("null") - } else { - (*in.Role).MarshalEasyJSON(out) - } - } - if in.Name != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - if in.Name == nil { - out.RawString("null") - } else { - (*in.Name).MarshalEasyJSON(out) - } - } - if in.Description != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"description\":") - if in.Description == nil { - out.RawString("null") - } else { - (*in.Description).MarshalEasyJSON(out) - } - } - if in.Value != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - if in.Value == nil { - out.RawString("null") - } else { - (*in.Value).MarshalEasyJSON(out) - } - } - if len(in.Properties) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"properties\":") - if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v9, v10 := range in.Properties { - if v9 > 0 { - out.RawByte(',') - } - if v10 == nil { - out.RawString("null") - } else { - (*v10).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.ChildIds) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"childIds\":") - if in.ChildIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v11, v12 := range in.ChildIds { - if v11 > 0 { - out.RawByte(',') - } - out.String(string(v12)) - } - out.RawByte(']') - } - } - if in.BackendDOMNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendDOMNodeId\":") - out.Int64(int64(in.BackendDOMNodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AXNode) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AXNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AXNode) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AXNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(in *jlexer.Lexer, out *AXValue) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "value": - (out.Value).UnmarshalEasyJSON(in) - case "relatedNodes": - if in.IsNull() { - in.Skip() - out.RelatedNodes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.RelatedNodes = make([]*AXRelatedNode, 0, 8) - } else { - out.RelatedNodes = []*AXRelatedNode{} - } - for !in.IsDelim(']') { - var v13 *AXRelatedNode - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(AXRelatedNode) - } - (*v13).UnmarshalEasyJSON(in) - } - out.RelatedNodes = append(out.RelatedNodes, v13) - in.WantComma() - } - in.Delim(']') - } - case "sources": - if in.IsNull() { - in.Skip() - out.Sources = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Sources = make([]*AXValueSource, 0, 8) - } else { - out.Sources = []*AXValueSource{} - } - for !in.IsDelim(']') { - var v14 *AXValueSource - if in.IsNull() { - in.Skip() - v14 = nil - } else { - if v14 == nil { - v14 = new(AXValueSource) - } - (*v14).UnmarshalEasyJSON(in) - } - out.Sources = append(out.Sources, v14) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(out *jwriter.Writer, in AXValue) { - out.RawByte('{') - first := true - _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if (in.Value).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - (in.Value).MarshalEasyJSON(out) - } - if len(in.RelatedNodes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"relatedNodes\":") - if in.RelatedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v15, v16 := range in.RelatedNodes { - if v15 > 0 { - out.RawByte(',') - } - if v16 == nil { - out.RawString("null") - } else { - (*v16).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.Sources) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"sources\":") - if in.Sources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v17, v18 := range in.Sources { - if v17 > 0 { - out.RawByte(',') - } - if v18 == nil { - out.RawString("null") - } else { - (*v18).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AXValue) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AXValue) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AXValue) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AXValue) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(in *jlexer.Lexer, out *AXProperty) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(AXValue) - } - (*out.Value).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(out *jwriter.Writer, in AXProperty) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Value != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - if in.Value == nil { - out.RawString("null") - } else { - (*in.Value).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AXProperty) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AXProperty) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AXProperty) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AXProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(in *jlexer.Lexer, out *AXRelatedNode) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "backendDOMNodeId": - (out.BackendDOMNodeID).UnmarshalEasyJSON(in) - case "idref": - out.Idref = string(in.String()) - case "text": - out.Text = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(out *jwriter.Writer, in AXRelatedNode) { - out.RawByte('{') - first := true - _ = first - if in.BackendDOMNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendDOMNodeId\":") - out.Int64(int64(in.BackendDOMNodeID)) - } - if in.Idref != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"idref\":") - out.String(string(in.Idref)) - } - if in.Text != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AXRelatedNode) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AXRelatedNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AXRelatedNode) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AXRelatedNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(in *jlexer.Lexer, out *AXValueSource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(in *jlexer.Lexer, out *AXValueSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -948,7 +278,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Writer, in AXValueSource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(out *jwriter.Writer, in AXValueSource) { out.RawByte('{') first := true _ = first @@ -1042,23 +372,717 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v AXValueSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AXValueSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AXValueSource) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AXValueSource) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(in *jlexer.Lexer, out *AXValue) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "value": + (out.Value).UnmarshalEasyJSON(in) + case "relatedNodes": + if in.IsNull() { + in.Skip() + out.RelatedNodes = nil + } else { + in.Delim('[') + if out.RelatedNodes == nil { + if !in.IsDelim(']') { + out.RelatedNodes = make([]*AXRelatedNode, 0, 8) + } else { + out.RelatedNodes = []*AXRelatedNode{} + } + } else { + out.RelatedNodes = (out.RelatedNodes)[:0] + } + for !in.IsDelim(']') { + var v4 *AXRelatedNode + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(AXRelatedNode) + } + (*v4).UnmarshalEasyJSON(in) + } + out.RelatedNodes = append(out.RelatedNodes, v4) + in.WantComma() + } + in.Delim(']') + } + case "sources": + if in.IsNull() { + in.Skip() + out.Sources = nil + } else { + in.Delim('[') + if out.Sources == nil { + if !in.IsDelim(']') { + out.Sources = make([]*AXValueSource, 0, 8) + } else { + out.Sources = []*AXValueSource{} + } + } else { + out.Sources = (out.Sources)[:0] + } + for !in.IsDelim(']') { + var v5 *AXValueSource + if in.IsNull() { + in.Skip() + v5 = nil + } else { + if v5 == nil { + v5 = new(AXValueSource) + } + (*v5).UnmarshalEasyJSON(in) + } + out.Sources = append(out.Sources, v5) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(out *jwriter.Writer, in AXValue) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if (in.Value).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + (in.Value).MarshalEasyJSON(out) + } + if len(in.RelatedNodes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"relatedNodes\":") + if in.RelatedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.RelatedNodes { + if v6 > 0 { + out.RawByte(',') + } + if v7 == nil { + out.RawString("null") + } else { + (*v7).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if len(in.Sources) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sources\":") + if in.Sources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Sources { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AXValue) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AXValue) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AXValue) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AXValue) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(in *jlexer.Lexer, out *AXRelatedNode) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "backendDOMNodeId": + (out.BackendDOMNodeID).UnmarshalEasyJSON(in) + case "idref": + out.Idref = string(in.String()) + case "text": + out.Text = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(out *jwriter.Writer, in AXRelatedNode) { + out.RawByte('{') + first := true + _ = first + if in.BackendDOMNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendDOMNodeId\":") + out.Int64(int64(in.BackendDOMNodeID)) + } + if in.Idref != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"idref\":") + out.String(string(in.Idref)) + } + if in.Text != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AXRelatedNode) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AXRelatedNode) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AXRelatedNode) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AXRelatedNode) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(in *jlexer.Lexer, out *AXProperty) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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": + if in.IsNull() { + in.Skip() + out.Value = nil + } else { + if out.Value == nil { + out.Value = new(AXValue) + } + (*out.Value).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(out *jwriter.Writer, in AXProperty) { + out.RawByte('{') + first := true + _ = first + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Value != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + if in.Value == nil { + out.RawString("null") + } else { + (*in.Value).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AXProperty) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AXProperty) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AXProperty) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AXProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(in *jlexer.Lexer, out *AXNode) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 = AXNodeID(in.String()) + case "ignored": + out.Ignored = bool(in.Bool()) + case "ignoredReasons": + if in.IsNull() { + in.Skip() + out.IgnoredReasons = nil + } else { + in.Delim('[') + if out.IgnoredReasons == nil { + if !in.IsDelim(']') { + out.IgnoredReasons = make([]*AXProperty, 0, 8) + } else { + out.IgnoredReasons = []*AXProperty{} + } + } else { + out.IgnoredReasons = (out.IgnoredReasons)[:0] + } + for !in.IsDelim(']') { + var v10 *AXProperty + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(AXProperty) + } + (*v10).UnmarshalEasyJSON(in) + } + out.IgnoredReasons = append(out.IgnoredReasons, v10) + in.WantComma() + } + in.Delim(']') + } + case "role": + if in.IsNull() { + in.Skip() + out.Role = nil + } else { + if out.Role == nil { + out.Role = new(AXValue) + } + (*out.Role).UnmarshalEasyJSON(in) + } + case "name": + if in.IsNull() { + in.Skip() + out.Name = nil + } else { + if out.Name == nil { + out.Name = new(AXValue) + } + (*out.Name).UnmarshalEasyJSON(in) + } + case "description": + if in.IsNull() { + in.Skip() + out.Description = nil + } else { + if out.Description == nil { + out.Description = new(AXValue) + } + (*out.Description).UnmarshalEasyJSON(in) + } + case "value": + if in.IsNull() { + in.Skip() + out.Value = nil + } else { + if out.Value == nil { + out.Value = new(AXValue) + } + (*out.Value).UnmarshalEasyJSON(in) + } + case "properties": + if in.IsNull() { + in.Skip() + out.Properties = nil + } else { + in.Delim('[') + if out.Properties == nil { + if !in.IsDelim(']') { + out.Properties = make([]*AXProperty, 0, 8) + } else { + out.Properties = []*AXProperty{} + } + } else { + out.Properties = (out.Properties)[:0] + } + for !in.IsDelim(']') { + var v11 *AXProperty + if in.IsNull() { + in.Skip() + v11 = nil + } else { + if v11 == nil { + v11 = new(AXProperty) + } + (*v11).UnmarshalEasyJSON(in) + } + out.Properties = append(out.Properties, v11) + in.WantComma() + } + in.Delim(']') + } + case "childIds": + if in.IsNull() { + in.Skip() + out.ChildIds = nil + } else { + in.Delim('[') + if out.ChildIds == nil { + if !in.IsDelim(']') { + out.ChildIds = make([]AXNodeID, 0, 4) + } else { + out.ChildIds = []AXNodeID{} + } + } else { + out.ChildIds = (out.ChildIds)[:0] + } + for !in.IsDelim(']') { + var v12 AXNodeID + v12 = AXNodeID(in.String()) + out.ChildIds = append(out.ChildIds, v12) + in.WantComma() + } + in.Delim(']') + } + case "backendDOMNodeId": + (out.BackendDOMNodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(out *jwriter.Writer, in AXNode) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.String(string(in.NodeID)) + } + if in.Ignored { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ignored\":") + out.Bool(bool(in.Ignored)) + } + if len(in.IgnoredReasons) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ignoredReasons\":") + if in.IgnoredReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v13, v14 := range in.IgnoredReasons { + if v13 > 0 { + out.RawByte(',') + } + if v14 == nil { + out.RawString("null") + } else { + (*v14).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.Role != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"role\":") + if in.Role == nil { + out.RawString("null") + } else { + (*in.Role).MarshalEasyJSON(out) + } + } + if in.Name != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + if in.Name == nil { + out.RawString("null") + } else { + (*in.Name).MarshalEasyJSON(out) + } + } + if in.Description != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"description\":") + if in.Description == nil { + out.RawString("null") + } else { + (*in.Description).MarshalEasyJSON(out) + } + } + if in.Value != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + if in.Value == nil { + out.RawString("null") + } else { + (*in.Value).MarshalEasyJSON(out) + } + } + if len(in.Properties) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"properties\":") + if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v15, v16 := range in.Properties { + if v15 > 0 { + out.RawByte(',') + } + if v16 == nil { + out.RawString("null") + } else { + (*v16).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if len(in.ChildIds) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"childIds\":") + if in.ChildIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.ChildIds { + if v17 > 0 { + out.RawByte(',') + } + out.String(string(v18)) + } + out.RawByte(']') + } + } + if in.BackendDOMNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendDOMNodeId\":") + out.Int64(int64(in.BackendDOMNodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AXNode) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AXNode) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAccessibility6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AXNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AXValueSource) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AXNode) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAccessibility6(l, v) } diff --git a/cdp/animation/easyjson.go b/cdp/animation/easyjson.go index 1d33cbb..7deb5cf 100644 --- a/cdp/animation/easyjson.go +++ b/cdp/animation/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(in *jlexer.Lexer, out *KeyframeStyle) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(in *jlexer.Lexer, out *SetTimingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,10 +37,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(in *jlexer.Lexer, ou continue } switch key { - case "offset": - out.Offset = string(in.String()) - case "easing": - out.Easing = string(in.String()) + case "animationId": + out.AnimationID = string(in.String()) + case "duration": + out.Duration = float64(in.Float64()) + case "delay": + out.Delay = float64(in.Float64()) default: in.SkipRecursive() } @@ -51,53 +53,55 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(out *jwriter.Writer, in KeyframeStyle) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(out *jwriter.Writer, in SetTimingParams) { out.RawByte('{') first := true _ = first - if in.Offset != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"offset\":") - out.String(string(in.Offset)) + if !first { + out.RawByte(',') } - if in.Easing != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"easing\":") - out.String(string(in.Easing)) + first = false + out.RawString("\"animationId\":") + out.String(string(in.AnimationID)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"duration\":") + out.Float64(float64(in.Duration)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"delay\":") + out.Float64(float64(in.Delay)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v KeyframeStyle) MarshalJSON() ([]byte, error) { +func (v SetTimingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer) { +func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyframeStyle) UnmarshalJSON(data []byte) error { +func (v *SetTimingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(in *jlexer.Lexer, out *KeyframesRule) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(in *jlexer.Lexer, out *SetPlaybackRateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -116,35 +120,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(in *jlexer.Lexer, o continue } switch key { - case "name": - out.Name = string(in.String()) - case "keyframes": - if in.IsNull() { - in.Skip() - out.Keyframes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Keyframes = make([]*KeyframeStyle, 0, 8) - } else { - out.Keyframes = []*KeyframeStyle{} - } - for !in.IsDelim(']') { - var v1 *KeyframeStyle - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(KeyframeStyle) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Keyframes = append(out.Keyframes, v1) - in.WantComma() - } - in.Delim(']') - } + case "playbackRate": + out.PlaybackRate = float64(in.Float64()) default: in.SkipRecursive() } @@ -155,68 +132,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(out *jwriter.Writer, in KeyframesRule) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(out *jwriter.Writer, in SetPlaybackRateParams) { out.RawByte('{') first := true _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if len(in.Keyframes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyframes\":") - if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Keyframes { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + if !first { + out.RawByte(',') } + first = false + out.RawString("\"playbackRate\":") + out.Float64(float64(in.PlaybackRate)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v KeyframesRule) MarshalJSON() ([]byte, error) { +func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) { +func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyframesRule) UnmarshalJSON(data []byte) error { +func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(in *jlexer.Lexer, out *Effect) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(in *jlexer.Lexer, out *SetPausedParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -235,34 +187,31 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(in *jlexer.Lexer, o continue } switch key { - case "delay": - out.Delay = float64(in.Float64()) - case "endDelay": - out.EndDelay = float64(in.Float64()) - case "iterationStart": - out.IterationStart = float64(in.Float64()) - case "iterations": - out.Iterations = float64(in.Float64()) - case "duration": - out.Duration = float64(in.Float64()) - case "direction": - out.Direction = string(in.String()) - case "fill": - out.Fill = string(in.String()) - case "backendNodeId": - (out.BackendNodeID).UnmarshalEasyJSON(in) - case "keyframesRule": + case "animations": if in.IsNull() { in.Skip() - out.KeyframesRule = nil + out.Animations = nil } else { - if out.KeyframesRule == nil { - out.KeyframesRule = new(KeyframesRule) + in.Delim('[') + if out.Animations == nil { + if !in.IsDelim(']') { + out.Animations = make([]string, 0, 4) + } else { + out.Animations = []string{} + } + } else { + out.Animations = (out.Animations)[:0] } - (*out.KeyframesRule).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v1 string + v1 = string(in.String()) + out.Animations = append(out.Animations, v1) + in.WantComma() + } + in.Delim(']') } - case "easing": - out.Easing = string(in.String()) + case "paused": + out.Paused = bool(in.Bool()) default: in.SkipRecursive() } @@ -273,121 +222,60 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(out *jwriter.Writer, in Effect) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(out *jwriter.Writer, in SetPausedParams) { out.RawByte('{') first := true _ = first - if in.Delay != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"delay\":") - out.Float64(float64(in.Delay)) + if !first { + out.RawByte(',') } - if in.EndDelay != 0 { - if !first { - out.RawByte(',') + first = false + out.RawString("\"animations\":") + if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Animations { + if v2 > 0 { + out.RawByte(',') + } + out.String(string(v3)) } - first = false - out.RawString("\"endDelay\":") - out.Float64(float64(in.EndDelay)) + out.RawByte(']') } - if in.IterationStart != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"iterationStart\":") - out.Float64(float64(in.IterationStart)) - } - if in.Iterations != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"iterations\":") - out.Float64(float64(in.Iterations)) - } - if in.Duration != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"duration\":") - out.Float64(float64(in.Duration)) - } - if in.Direction != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"direction\":") - out.String(string(in.Direction)) - } - if in.Fill != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"fill\":") - out.String(string(in.Fill)) - } - if in.BackendNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendNodeId\":") - out.Int64(int64(in.BackendNodeID)) - } - if in.KeyframesRule != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyframesRule\":") - if in.KeyframesRule == nil { - out.RawString("null") - } else { - (*in.KeyframesRule).MarshalEasyJSON(out) - } - } - if in.Easing != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"easing\":") - out.String(string(in.Easing)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"paused\":") + out.Bool(bool(in.Paused)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Effect) MarshalJSON() ([]byte, error) { +func (v SetPausedParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Effect) MarshalEasyJSON(w *jwriter.Writer) { +func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Effect) UnmarshalJSON(data []byte) error { +func (v *SetPausedParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(in *jlexer.Lexer, out *Animation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(in *jlexer.Lexer, out *SeekAnimationsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -406,34 +294,31 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(in *jlexer.Lexer, o continue } switch key { - case "id": - out.ID = string(in.String()) - case "name": - out.Name = string(in.String()) - case "pausedState": - out.PausedState = bool(in.Bool()) - case "playState": - out.PlayState = string(in.String()) - case "playbackRate": - out.PlaybackRate = float64(in.Float64()) - case "startTime": - out.StartTime = float64(in.Float64()) - case "currentTime": - out.CurrentTime = float64(in.Float64()) - case "source": + case "animations": if in.IsNull() { in.Skip() - out.Source = nil + out.Animations = nil } else { - if out.Source == nil { - out.Source = new(Effect) + in.Delim('[') + if out.Animations == nil { + if !in.IsDelim(']') { + out.Animations = make([]string, 0, 4) + } else { + out.Animations = []string{} + } + } else { + out.Animations = (out.Animations)[:0] } - (*out.Source).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v4 string + v4 = string(in.String()) + out.Animations = append(out.Animations, v4) + in.WantComma() + } + in.Delim(']') } - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "cssId": - out.CSSID = string(in.String()) + case "currentTime": + out.CurrentTime = float64(in.Float64()) default: in.SkipRecursive() } @@ -444,118 +329,57 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(out *jwriter.Writer, in Animation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(out *jwriter.Writer, in SeekAnimationsParams) { out.RawByte('{') first := true _ = first - if in.ID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"id\":") - out.String(string(in.ID)) + if !first { + out.RawByte(',') } - if in.Name != "" { - if !first { - out.RawByte(',') + first = false + out.RawString("\"animations\":") + if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Animations { + if v5 > 0 { + out.RawByte(',') + } + out.String(string(v6)) } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) + out.RawByte(']') } - if in.PausedState { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pausedState\":") - out.Bool(bool(in.PausedState)) - } - if in.PlayState != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"playState\":") - out.String(string(in.PlayState)) - } - if in.PlaybackRate != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"playbackRate\":") - out.Float64(float64(in.PlaybackRate)) - } - if in.StartTime != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startTime\":") - out.Float64(float64(in.StartTime)) - } - if in.CurrentTime != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"currentTime\":") - out.Float64(float64(in.CurrentTime)) - } - if in.Source != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"source\":") - if in.Source == nil { - out.RawString("null") - } else { - (*in.Source).MarshalEasyJSON(out) - } - } - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.CSSID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cssId\":") - out.String(string(in.CSSID)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"currentTime\":") + out.Float64(float64(in.CurrentTime)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Animation) MarshalJSON() ([]byte, error) { +func (v SeekAnimationsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Animation) MarshalEasyJSON(w *jwriter.Writer) { +func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Animation) UnmarshalJSON(data []byte) error { +func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation3(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation4(in *jlexer.Lexer, out *ResolveAnimationReturns) { @@ -731,15 +555,19 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation6(in *jlexer.Lexer, o out.Animations = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Animations = make([]string, 0, 4) + if out.Animations == nil { + if !in.IsDelim(']') { + out.Animations = make([]string, 0, 4) + } else { + out.Animations = []string{} + } } else { - out.Animations = []string{} + out.Animations = (out.Animations)[:0] } for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Animations = append(out.Animations, v4) + var v7 string + v7 = string(in.String()) + out.Animations = append(out.Animations, v7) in.WantComma() } in.Delim(']') @@ -767,11 +595,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.Animations { - if v5 > 0 { + for v8, v9 := range in.Animations { + if v8 > 0 { out.RawByte(',') } - out.String(string(v6)) + out.String(string(v9)) } out.RawByte(']') } @@ -801,7 +629,7 @@ func (v *ReleaseAnimationsParams) UnmarshalJSON(data []byte) error { func (v *ReleaseAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(in *jlexer.Lexer, out *SeekAnimationsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(in *jlexer.Lexer, out *KeyframesRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -820,27 +648,39 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(in *jlexer.Lexer, o continue } switch key { - case "animations": + case "name": + out.Name = string(in.String()) + case "keyframes": if in.IsNull() { in.Skip() - out.Animations = nil + out.Keyframes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Animations = make([]string, 0, 4) + if out.Keyframes == nil { + if !in.IsDelim(']') { + out.Keyframes = make([]*KeyframeStyle, 0, 8) + } else { + out.Keyframes = []*KeyframeStyle{} + } } else { - out.Animations = []string{} + out.Keyframes = (out.Keyframes)[:0] } for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.Animations = append(out.Animations, v7) + var v10 *KeyframeStyle + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(KeyframeStyle) + } + (*v10).UnmarshalEasyJSON(in) + } + out.Keyframes = append(out.Keyframes, v10) in.WantComma() } in.Delim(']') } - case "currentTime": - out.CurrentTime = float64(in.Float64()) default: in.SkipRecursive() } @@ -851,60 +691,68 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(out *jwriter.Writer, in SeekAnimationsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(out *jwriter.Writer, in KeyframesRule) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"animations\":") - if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Animations { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) + if in.Name != "" { + if !first { + out.RawByte(',') } - out.RawByte(']') + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) } - if !first { - out.RawByte(',') + if len(in.Keyframes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyframes\":") + if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Keyframes { + if v11 > 0 { + out.RawByte(',') + } + if v12 == nil { + out.RawString("null") + } else { + (*v12).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } - first = false - out.RawString("\"currentTime\":") - out.Float64(float64(in.CurrentTime)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SeekAnimationsParams) MarshalJSON() ([]byte, error) { +func (v KeyframesRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SeekAnimationsParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SeekAnimationsParams) UnmarshalJSON(data []byte) error { +func (v *KeyframesRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SeekAnimationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(in *jlexer.Lexer, out *SetTimingParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(in *jlexer.Lexer, out *KeyframeStyle) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -923,12 +771,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(in *jlexer.Lexer, o continue } switch key { - case "animationId": - out.AnimationID = string(in.String()) - case "duration": - out.Duration = float64(in.Float64()) - case "delay": - out.Delay = float64(in.Float64()) + case "offset": + out.Offset = string(in.String()) + case "easing": + out.Easing = string(in.String()) default: in.SkipRecursive() } @@ -939,55 +785,53 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(out *jwriter.Writer, in SetTimingParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(out *jwriter.Writer, in KeyframeStyle) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.Offset != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offset\":") + out.String(string(in.Offset)) } - first = false - out.RawString("\"animationId\":") - out.String(string(in.AnimationID)) - if !first { - out.RawByte(',') + if in.Easing != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"easing\":") + out.String(string(in.Easing)) } - first = false - out.RawString("\"duration\":") - out.Float64(float64(in.Duration)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"delay\":") - out.Float64(float64(in.Delay)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetTimingParams) MarshalJSON() ([]byte, error) { +func (v KeyframeStyle) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetTimingParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v KeyframeStyle) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetTimingParams) UnmarshalJSON(data []byte) error { +func (v *KeyframeStyle) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetTimingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *KeyframeStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(in *jlexer.Lexer, out *SetPausedParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(in *jlexer.Lexer, out *GetPlaybackRateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1006,27 +850,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(in *jlexer.Lexer, o continue } switch key { - case "animations": - if in.IsNull() { - in.Skip() - out.Animations = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Animations = make([]string, 0, 4) - } else { - out.Animations = []string{} - } - for !in.IsDelim(']') { - var v10 string - v10 = string(in.String()) - out.Animations = append(out.Animations, v10) - in.WantComma() - } - in.Delim(']') - } - case "paused": - out.Paused = bool(in.Bool()) + case "playbackRate": + out.PlaybackRate = float64(in.Float64()) default: in.SkipRecursive() } @@ -1037,60 +862,104 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(out *jwriter.Writer, in SetPausedParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(out *jwriter.Writer, in GetPlaybackRateReturns) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"animations\":") - if in.Animations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v11, v12 := range in.Animations { - if v11 > 0 { - out.RawByte(',') - } - out.String(string(v12)) + if in.PlaybackRate != 0 { + if !first { + out.RawByte(',') } - out.RawByte(']') + first = false + out.RawString("\"playbackRate\":") + out.Float64(float64(in.PlaybackRate)) } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"paused\":") - out.Bool(bool(in.Paused)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetPausedParams) MarshalJSON() ([]byte, error) { +func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPausedParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPausedParams) UnmarshalJSON(data []byte) error { +func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetPausedParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(in *jlexer.Lexer, out *GetCurrentTimeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(in *jlexer.Lexer, out *GetPlaybackRateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(out *jwriter.Writer, in GetPlaybackRateParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(in *jlexer.Lexer, out *GetCurrentTimeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1121,7 +990,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(out *jwriter.Writer, in GetCurrentTimeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(out *jwriter.Writer, in GetCurrentTimeReturns) { out.RawByte('{') first := true _ = first @@ -1139,27 +1008,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetCurrentTimeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCurrentTimeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCurrentTimeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCurrentTimeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(in *jlexer.Lexer, out *GetCurrentTimeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation12(in *jlexer.Lexer, out *GetCurrentTimeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1190,7 +1059,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(out *jwriter.Writer, in GetCurrentTimeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(out *jwriter.Writer, in GetCurrentTimeParams) { out.RawByte('{') first := true _ = first @@ -1205,95 +1074,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GetCurrentTimeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation12(in *jlexer.Lexer, out *SetPlaybackRateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "playbackRate": - out.PlaybackRate = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(out *jwriter.Writer, in SetPlaybackRateParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"playbackRate\":") - out.Float64(float64(in.PlaybackRate)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetPlaybackRateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetCurrentTimeParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPlaybackRateParams) UnmarshalJSON(data []byte) error { +func (v *GetCurrentTimeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetCurrentTimeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(in *jlexer.Lexer, out *GetPlaybackRateReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(in *jlexer.Lexer, out *EventAnimationStarted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1312,8 +1114,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(in *jlexer.Lexer, continue } switch key { - case "playbackRate": - out.PlaybackRate = float64(in.Float64()) + case "animation": + if in.IsNull() { + in.Skip() + out.Animation = nil + } else { + if out.Animation == nil { + out.Animation = new(Animation) + } + (*out.Animation).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1324,45 +1134,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(out *jwriter.Writer, in GetPlaybackRateReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(out *jwriter.Writer, in EventAnimationStarted) { out.RawByte('{') first := true _ = first - if in.PlaybackRate != 0 { + if in.Animation != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"playbackRate\":") - out.Float64(float64(in.PlaybackRate)) + out.RawString("\"animation\":") + if in.Animation == nil { + out.RawString("null") + } else { + (*in.Animation).MarshalEasyJSON(out) + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetPlaybackRateReturns) MarshalJSON() ([]byte, error) { +func (v EventAnimationStarted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPlaybackRateReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPlaybackRateReturns) UnmarshalJSON(data []byte) error { +func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPlaybackRateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(in *jlexer.Lexer, out *GetPlaybackRateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(in *jlexer.Lexer, out *EventAnimationCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1381,6 +1195,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(in *jlexer.Lexer, continue } switch key { + case "id": + out.ID = string(in.String()) default: in.SkipRecursive() } @@ -1391,37 +1207,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(out *jwriter.Writer, in GetPlaybackRateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(out *jwriter.Writer, in EventAnimationCreated) { out.RawByte('{') first := true _ = first + if in.ID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetPlaybackRateParams) MarshalJSON() ([]byte, error) { +func (v EventAnimationCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPlaybackRateParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPlaybackRateParams) UnmarshalJSON(data []byte) error { +func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPlaybackRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(in *jlexer.Lexer, out *EventAnimationCanceled) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1440,6 +1264,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(in *jlexer.Lexer, continue } switch key { + case "id": + out.ID = string(in.String()) default: in.SkipRecursive() } @@ -1450,34 +1276,42 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(out *jwriter.Writer, in EventAnimationCanceled) { out.RawByte('{') first := true _ = first + if in.ID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v DisableParams) MarshalJSON() ([]byte, error) { +func (v EventAnimationCanceled) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation15(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation16(in *jlexer.Lexer, out *EnableParams) { @@ -1539,7 +1373,7 @@ func (v *EnableParams) UnmarshalJSON(data []byte) error { func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(in *jlexer.Lexer, out *EventAnimationCanceled) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(in *jlexer.Lexer, out *Effect) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1558,8 +1392,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(in *jlexer.Lexer, continue } switch key { - case "id": - out.ID = string(in.String()) + case "delay": + out.Delay = float64(in.Float64()) + case "endDelay": + out.EndDelay = float64(in.Float64()) + case "iterationStart": + out.IterationStart = float64(in.Float64()) + case "iterations": + out.Iterations = float64(in.Float64()) + case "duration": + out.Duration = float64(in.Float64()) + case "direction": + out.Direction = string(in.String()) + case "fill": + out.Fill = string(in.String()) + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + case "keyframesRule": + if in.IsNull() { + in.Skip() + out.KeyframesRule = nil + } else { + if out.KeyframesRule == nil { + out.KeyframesRule = new(KeyframesRule) + } + (*out.KeyframesRule).UnmarshalEasyJSON(in) + } + case "easing": + out.Easing = string(in.String()) default: in.SkipRecursive() } @@ -1570,45 +1430,121 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(out *jwriter.Writer, in EventAnimationCanceled) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(out *jwriter.Writer, in Effect) { out.RawByte('{') first := true _ = first - if in.ID != "" { + if in.Delay != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"id\":") - out.String(string(in.ID)) + out.RawString("\"delay\":") + out.Float64(float64(in.Delay)) + } + if in.EndDelay != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endDelay\":") + out.Float64(float64(in.EndDelay)) + } + if in.IterationStart != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"iterationStart\":") + out.Float64(float64(in.IterationStart)) + } + if in.Iterations != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"iterations\":") + out.Float64(float64(in.Iterations)) + } + if in.Duration != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"duration\":") + out.Float64(float64(in.Duration)) + } + if in.Direction != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"direction\":") + out.String(string(in.Direction)) + } + if in.Fill != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"fill\":") + out.String(string(in.Fill)) + } + if in.BackendNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) + } + if in.KeyframesRule != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyframesRule\":") + if in.KeyframesRule == nil { + out.RawString("null") + } else { + (*in.KeyframesRule).MarshalEasyJSON(out) + } + } + if in.Easing != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"easing\":") + out.String(string(in.Easing)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventAnimationCanceled) MarshalJSON() ([]byte, error) { +func (v Effect) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventAnimationCanceled) MarshalEasyJSON(w *jwriter.Writer) { +func (v Effect) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventAnimationCanceled) UnmarshalJSON(data []byte) error { +func (v *Effect) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAnimationCanceled) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Effect) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(in *jlexer.Lexer, out *EventAnimationStarted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1627,16 +1563,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(in *jlexer.Lexer, continue } switch key { - case "animation": - if in.IsNull() { - in.Skip() - out.Animation = nil - } else { - if out.Animation == nil { - out.Animation = new(Animation) - } - (*out.Animation).UnmarshalEasyJSON(in) - } default: in.SkipRecursive() } @@ -1647,49 +1573,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation18(out *jwriter.Writer, in EventAnimationStarted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation18(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first - if in.Animation != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"animation\":") - if in.Animation == nil { - out.RawString("null") - } else { - (*in.Animation).MarshalEasyJSON(out) - } - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventAnimationStarted) MarshalJSON() ([]byte, error) { +func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventAnimationStarted) MarshalEasyJSON(w *jwriter.Writer) { +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventAnimationStarted) UnmarshalJSON(data []byte) error { +func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAnimationStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer, out *EventAnimationCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer, out *Animation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1710,6 +1624,32 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer, switch key { case "id": out.ID = string(in.String()) + case "name": + out.Name = string(in.String()) + case "pausedState": + out.PausedState = bool(in.Bool()) + case "playState": + out.PlayState = string(in.String()) + case "playbackRate": + out.PlaybackRate = float64(in.Float64()) + case "startTime": + out.StartTime = float64(in.Float64()) + case "currentTime": + out.CurrentTime = float64(in.Float64()) + case "source": + if in.IsNull() { + in.Skip() + out.Source = nil + } else { + if out.Source == nil { + out.Source = new(Effect) + } + (*out.Source).UnmarshalEasyJSON(in) + } + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "cssId": + out.CSSID = string(in.String()) default: in.SkipRecursive() } @@ -1720,7 +1660,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Writer, in EventAnimationCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Writer, in Animation) { out.RawByte('{') first := true _ = first @@ -1732,29 +1672,105 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(out *jwriter.Write out.RawString("\"id\":") out.String(string(in.ID)) } + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.PausedState { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pausedState\":") + out.Bool(bool(in.PausedState)) + } + if in.PlayState != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"playState\":") + out.String(string(in.PlayState)) + } + if in.PlaybackRate != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"playbackRate\":") + out.Float64(float64(in.PlaybackRate)) + } + if in.StartTime != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startTime\":") + out.Float64(float64(in.StartTime)) + } + if in.CurrentTime != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"currentTime\":") + out.Float64(float64(in.CurrentTime)) + } + if in.Source != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"source\":") + if in.Source == nil { + out.RawString("null") + } else { + (*in.Source).MarshalEasyJSON(out) + } + } + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.CSSID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cssId\":") + out.String(string(in.CSSID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventAnimationCreated) MarshalJSON() ([]byte, error) { +func (v Animation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventAnimationCreated) MarshalEasyJSON(w *jwriter.Writer) { +func (v Animation) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAnimation19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventAnimationCreated) UnmarshalJSON(data []byte) error { +func (v *Animation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAnimationCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Animation) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAnimation19(l, v) } diff --git a/cdp/applicationcache/easyjson.go b/cdp/applicationcache/easyjson.go index 208cb88..0c487bc 100644 --- a/cdp/applicationcache/easyjson.go +++ b/cdp/applicationcache/easyjson.go @@ -17,245 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(in *jlexer.Lexer, out *FrameWithManifest) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "manifestURL": - out.ManifestURL = string(in.String()) - case "status": - out.Status = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(out *jwriter.Writer, in FrameWithManifest) { - out.RawByte('{') - first := true - _ = first - if in.FrameID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"frameId\":") - out.String(string(in.FrameID)) - } - if in.ManifestURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"manifestURL\":") - out.String(string(in.ManifestURL)) - } - if in.Status != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"status\":") - out.Int64(int64(in.Status)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FrameWithManifest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FrameWithManifest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FrameWithManifest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FrameWithManifest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(in *jlexer.Lexer, out *ApplicationCache) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "manifestURL": - out.ManifestURL = string(in.String()) - case "size": - out.Size = float64(in.Float64()) - case "creationTime": - out.CreationTime = float64(in.Float64()) - case "updateTime": - out.UpdateTime = float64(in.Float64()) - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Resources = make([]*Resource, 0, 8) - } else { - out.Resources = []*Resource{} - } - for !in.IsDelim(']') { - var v1 *Resource - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Resource) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Resources = append(out.Resources, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(out *jwriter.Writer, in ApplicationCache) { - out.RawByte('{') - first := true - _ = first - if in.ManifestURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"manifestURL\":") - out.String(string(in.ManifestURL)) - } - if in.Size != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"size\":") - out.Float64(float64(in.Size)) - } - if in.CreationTime != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"creationTime\":") - out.Float64(float64(in.CreationTime)) - } - if in.UpdateTime != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"updateTime\":") - out.Float64(float64(in.UpdateTime)) - } - if len(in.Resources) != 0 { - 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 v2, v3 := range in.Resources { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ApplicationCache) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ApplicationCache) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ApplicationCache) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ApplicationCache) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(in *jlexer.Lexer, out *Resource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(in *jlexer.Lexer, out *Resource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -290,7 +52,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(in *jlexer.L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(out *jwriter.Writer, in Resource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(out *jwriter.Writer, in Resource) { out.RawByte('{') first := true _ = first @@ -324,27 +86,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(out *jwriter // MarshalJSON supports json.Marshaler interface func (v Resource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Resource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Resource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Resource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(in *jlexer.Lexer, out *EventNetworkStateUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(in *jlexer.Lexer, out *GetManifestForFrameReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -363,8 +125,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(in *jlexer.L continue } switch key { - case "isNowOnline": - out.IsNowOnline = bool(in.Bool()) + case "manifestURL": + out.ManifestURL = string(in.String()) default: in.SkipRecursive() } @@ -375,45 +137,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(in *jlexer.L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(out *jwriter.Writer, in EventNetworkStateUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(out *jwriter.Writer, in GetManifestForFrameReturns) { out.RawByte('{') first := true _ = first - if in.IsNowOnline { + if in.ManifestURL != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"isNowOnline\":") - out.Bool(bool(in.IsNowOnline)) + out.RawString("\"manifestURL\":") + out.String(string(in.ManifestURL)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventNetworkStateUpdated) MarshalJSON() ([]byte, error) { +func (v GetManifestForFrameReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventNetworkStateUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(w, v) +func (v GetManifestForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventNetworkStateUpdated) UnmarshalJSON(data []byte) error { +func (v *GetManifestForFrameReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventNetworkStateUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(l, v) +func (v *GetManifestForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(in *jlexer.Lexer, out *EventApplicationCacheStatusUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(in *jlexer.Lexer, out *GetManifestForFrameParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -434,10 +196,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(in *jlexer.L switch key { case "frameId": (out.FrameID).UnmarshalEasyJSON(in) - case "manifestURL": - out.ManifestURL = string(in.String()) - case "status": - out.Status = int64(in.Int64()) default: in.SkipRecursive() } @@ -448,58 +206,212 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(in *jlexer.L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache4(out *jwriter.Writer, in EventApplicationCacheStatusUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(out *jwriter.Writer, in GetManifestForFrameParams) { out.RawByte('{') first := true _ = first - if in.FrameID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"frameId\":") - out.String(string(in.FrameID)) + if !first { + out.RawByte(',') } - if in.ManifestURL != "" { - if !first { - out.RawByte(',') + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetManifestForFrameParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetManifestForFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetManifestForFrameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetManifestForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(in *jlexer.Lexer, out *GetFramesWithManifestsReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() } - first = false - out.RawString("\"manifestURL\":") - out.String(string(in.ManifestURL)) + in.Skip() + return } - if in.Status != 0 { + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "frameIds": + if in.IsNull() { + in.Skip() + out.FrameIds = nil + } else { + in.Delim('[') + if out.FrameIds == nil { + if !in.IsDelim(']') { + out.FrameIds = make([]*FrameWithManifest, 0, 8) + } else { + out.FrameIds = []*FrameWithManifest{} + } + } else { + out.FrameIds = (out.FrameIds)[:0] + } + for !in.IsDelim(']') { + var v1 *FrameWithManifest + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(FrameWithManifest) + } + (*v1).UnmarshalEasyJSON(in) + } + out.FrameIds = append(out.FrameIds, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(out *jwriter.Writer, in GetFramesWithManifestsReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.FrameIds) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"status\":") - out.Int64(int64(in.Status)) + out.RawString("\"frameIds\":") + if in.FrameIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.FrameIds { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventApplicationCacheStatusUpdated) MarshalJSON() ([]byte, error) { +func (v GetFramesWithManifestsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetFramesWithManifestsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetFramesWithManifestsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetFramesWithManifestsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(in *jlexer.Lexer, out *GetFramesWithManifestsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache4(out *jwriter.Writer, in GetFramesWithManifestsParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetFramesWithManifestsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventApplicationCacheStatusUpdated) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetFramesWithManifestsParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventApplicationCacheStatusUpdated) UnmarshalJSON(data []byte) error { +func (v *GetFramesWithManifestsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventApplicationCacheStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetFramesWithManifestsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache4(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache5(in *jlexer.Lexer, out *GetApplicationCacheForFrameReturns) { @@ -650,76 +562,7 @@ func (v *GetApplicationCacheForFrameParams) UnmarshalJSON(data []byte) error { func (v *GetApplicationCacheForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(in *jlexer.Lexer, out *GetManifestForFrameReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "manifestURL": - out.ManifestURL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(out *jwriter.Writer, in GetManifestForFrameReturns) { - out.RawByte('{') - first := true - _ = first - if in.ManifestURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"manifestURL\":") - out.String(string(in.ManifestURL)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetManifestForFrameReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetManifestForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetManifestForFrameReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetManifestForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(in *jlexer.Lexer, out *GetManifestForFrameParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(in *jlexer.Lexer, out *FrameWithManifest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -740,6 +583,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(in *jlexer.L switch key { case "frameId": (out.FrameID).UnmarshalEasyJSON(in) + case "manifestURL": + out.ManifestURL = string(in.String()) + case "status": + out.Status = int64(in.Int64()) default: in.SkipRecursive() } @@ -750,43 +597,219 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(in *jlexer.L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache8(out *jwriter.Writer, in GetManifestForFrameParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(out *jwriter.Writer, in FrameWithManifest) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + if in.ManifestURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"manifestURL\":") + out.String(string(in.ManifestURL)) + } + if in.Status != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"status\":") + out.Int64(int64(in.Status)) } - first = false - out.RawString("\"frameId\":") - out.String(string(in.FrameID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetManifestForFrameParams) MarshalJSON() ([]byte, error) { +func (v FrameWithManifest) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FrameWithManifest) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FrameWithManifest) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FrameWithManifest) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(in *jlexer.Lexer, out *EventNetworkStateUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "isNowOnline": + out.IsNowOnline = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache8(out *jwriter.Writer, in EventNetworkStateUpdated) { + out.RawByte('{') + first := true + _ = first + if in.IsNowOnline { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isNowOnline\":") + out.Bool(bool(in.IsNowOnline)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventNetworkStateUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetManifestForFrameParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventNetworkStateUpdated) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetManifestForFrameParams) UnmarshalJSON(data []byte) error { +func (v *EventNetworkStateUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetManifestForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventNetworkStateUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(in *jlexer.Lexer, out *EventApplicationCacheStatusUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "manifestURL": + out.ManifestURL = string(in.String()) + case "status": + out.Status = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(out *jwriter.Writer, in EventApplicationCacheStatusUpdated) { + out.RawByte('{') + first := true + _ = first + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + if in.ManifestURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"manifestURL\":") + out.String(string(in.ManifestURL)) + } + if in.Status != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"status\":") + out.Int64(int64(in.Status)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventApplicationCacheStatusUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventApplicationCacheStatusUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventApplicationCacheStatusUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventApplicationCacheStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -815,7 +838,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(in *jlexer.L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -825,27 +848,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(out *jwriter // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(in *jlexer.Lexer, out *GetFramesWithManifestsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache11(in *jlexer.Lexer, out *ApplicationCache) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -864,29 +887,41 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(in *jlexer. continue } switch key { - case "frameIds": + case "manifestURL": + out.ManifestURL = string(in.String()) + case "size": + out.Size = float64(in.Float64()) + case "creationTime": + out.CreationTime = float64(in.Float64()) + case "updateTime": + out.UpdateTime = float64(in.Float64()) + case "resources": if in.IsNull() { in.Skip() - out.FrameIds = nil + out.Resources = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.FrameIds = make([]*FrameWithManifest, 0, 8) + if out.Resources == nil { + if !in.IsDelim(']') { + out.Resources = make([]*Resource, 0, 8) + } else { + out.Resources = []*Resource{} + } } else { - out.FrameIds = []*FrameWithManifest{} + out.Resources = (out.Resources)[:0] } for !in.IsDelim(']') { - var v4 *FrameWithManifest + var v4 *Resource if in.IsNull() { in.Skip() v4 = nil } else { if v4 == nil { - v4 = new(FrameWithManifest) + v4 = new(Resource) } (*v4).UnmarshalEasyJSON(in) } - out.FrameIds = append(out.FrameIds, v4) + out.Resources = append(out.Resources, v4) in.WantComma() } in.Delim(']') @@ -901,21 +936,53 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(in *jlexer. in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(out *jwriter.Writer, in GetFramesWithManifestsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(out *jwriter.Writer, in ApplicationCache) { out.RawByte('{') first := true _ = first - if len(in.FrameIds) != 0 { + if in.ManifestURL != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"frameIds\":") - if in.FrameIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"manifestURL\":") + out.String(string(in.ManifestURL)) + } + if in.Size != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"size\":") + out.Float64(float64(in.Size)) + } + if in.CreationTime != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"creationTime\":") + out.Float64(float64(in.CreationTime)) + } + if in.UpdateTime != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"updateTime\":") + out.Float64(float64(in.UpdateTime)) + } + if len(in.Resources) != 0 { + 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 v5, v6 := range in.FrameIds { + for v5, v6 := range in.Resources { if v5 > 0 { out.RawByte(',') } @@ -932,84 +999,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(out *jwrite } // MarshalJSON supports json.Marshaler interface -func (v GetFramesWithManifestsReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetFramesWithManifestsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetFramesWithManifestsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetFramesWithManifestsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache11(in *jlexer.Lexer, out *GetFramesWithManifestsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(out *jwriter.Writer, in GetFramesWithManifestsParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetFramesWithManifestsParams) MarshalJSON() ([]byte, error) { +func (v ApplicationCache) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetFramesWithManifestsParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ApplicationCache) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpApplicationcache11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetFramesWithManifestsParams) UnmarshalJSON(data []byte) error { +func (v *ApplicationCache) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetFramesWithManifestsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ApplicationCache) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpApplicationcache11(l, v) } diff --git a/cdp/cachestorage/easyjson.go b/cdp/cachestorage/easyjson.go index ccc82d9..9f19e83 100644 --- a/cdp/cachestorage/easyjson.go +++ b/cdp/cachestorage/easyjson.go @@ -17,317 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(in *jlexer.Lexer, out *Cache) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "cacheId": - out.CacheID = CacheID(in.String()) - case "securityOrigin": - out.SecurityOrigin = string(in.String()) - case "cacheName": - out.CacheName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(out *jwriter.Writer, in Cache) { - out.RawByte('{') - first := true - _ = first - if in.CacheID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cacheId\":") - out.String(string(in.CacheID)) - } - if in.SecurityOrigin != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"securityOrigin\":") - out.String(string(in.SecurityOrigin)) - } - if in.CacheName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cacheName\":") - out.String(string(in.CacheName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Cache) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Cache) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Cache) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Cache) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(in *jlexer.Lexer, out *DataEntry) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "request": - out.Request = string(in.String()) - case "response": - out.Response = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(out *jwriter.Writer, in DataEntry) { - out.RawByte('{') - first := true - _ = first - if in.Request != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"request\":") - out.String(string(in.Request)) - } - if in.Response != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"response\":") - out.String(string(in.Response)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DataEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DataEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(in *jlexer.Lexer, out *DeleteEntryParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "cacheId": - out.CacheID = CacheID(in.String()) - case "request": - out.Request = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(out *jwriter.Writer, in DeleteEntryParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cacheId\":") - out.String(string(in.CacheID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"request\":") - out.String(string(in.Request)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeleteEntryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteEntryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteEntryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(in *jlexer.Lexer, out *DeleteCacheParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "cacheId": - out.CacheID = CacheID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(out *jwriter.Writer, in DeleteCacheParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cacheId\":") - out.String(string(in.CacheID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeleteCacheParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteCacheParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(in *jlexer.Lexer, out *RequestEntriesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(in *jlexer.Lexer, out *RequestEntriesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -352,10 +42,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(in *jlexer.Lexer out.CacheDataEntries = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.CacheDataEntries = make([]*DataEntry, 0, 8) + if out.CacheDataEntries == nil { + if !in.IsDelim(']') { + out.CacheDataEntries = make([]*DataEntry, 0, 8) + } else { + out.CacheDataEntries = []*DataEntry{} + } } else { - out.CacheDataEntries = []*DataEntry{} + out.CacheDataEntries = (out.CacheDataEntries)[:0] } for !in.IsDelim(']') { var v1 *DataEntry @@ -385,7 +79,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(out *jwriter.Writer, in RequestEntriesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(out *jwriter.Writer, in RequestEntriesReturns) { out.RawByte('{') first := true _ = first @@ -426,27 +120,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RequestEntriesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestEntriesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestEntriesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RequestEntriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(in *jlexer.Lexer, out *RequestEntriesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(in *jlexer.Lexer, out *RequestEntriesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -481,7 +175,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(out *jwriter.Writer, in RequestEntriesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(out *jwriter.Writer, in RequestEntriesParams) { out.RawByte('{') first := true _ = first @@ -509,27 +203,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RequestEntriesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestEntriesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestEntriesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RequestEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(in *jlexer.Lexer, out *RequestCacheNamesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(in *jlexer.Lexer, out *RequestCacheNamesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -554,10 +248,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(in *jlexer.Lexer out.Caches = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Caches = make([]*Cache, 0, 8) + if out.Caches == nil { + if !in.IsDelim(']') { + out.Caches = make([]*Cache, 0, 8) + } else { + out.Caches = []*Cache{} + } } else { - out.Caches = []*Cache{} + out.Caches = (out.Caches)[:0] } for !in.IsDelim(']') { var v4 *Cache @@ -585,7 +283,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(out *jwriter.Writer, in RequestCacheNamesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(out *jwriter.Writer, in RequestCacheNamesReturns) { out.RawByte('{') first := true _ = first @@ -618,27 +316,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RequestCacheNamesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestCacheNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestCacheNamesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RequestCacheNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage7(in *jlexer.Lexer, out *RequestCacheNamesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(in *jlexer.Lexer, out *RequestCacheNamesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -669,7 +367,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage7(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(out *jwriter.Writer, in RequestCacheNamesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(out *jwriter.Writer, in RequestCacheNamesParams) { out.RawByte('{') first := true _ = first @@ -685,23 +383,333 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v RequestCacheNamesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestCacheNamesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestCacheNamesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestCacheNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(in *jlexer.Lexer, out *DeleteEntryParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "cacheId": + out.CacheID = CacheID(in.String()) + case "request": + out.Request = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(out *jwriter.Writer, in DeleteEntryParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheId\":") + out.String(string(in.CacheID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + out.String(string(in.Request)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DeleteEntryParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DeleteEntryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DeleteEntryParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DeleteEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(in *jlexer.Lexer, out *DeleteCacheParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "cacheId": + out.CacheID = CacheID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(out *jwriter.Writer, in DeleteCacheParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheId\":") + out.String(string(in.CacheID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DeleteCacheParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DeleteCacheParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DeleteCacheParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DeleteCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(in *jlexer.Lexer, out *DataEntry) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "request": + out.Request = string(in.String()) + case "response": + out.Response = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(out *jwriter.Writer, in DataEntry) { + out.RawByte('{') + first := true + _ = first + if in.Request != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + out.String(string(in.Request)) + } + if in.Response != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + out.String(string(in.Response)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DataEntry) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DataEntry) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage7(in *jlexer.Lexer, out *Cache) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "cacheId": + out.CacheID = CacheID(in.String()) + case "securityOrigin": + out.SecurityOrigin = string(in.String()) + case "cacheName": + out.CacheName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(out *jwriter.Writer, in Cache) { + out.RawByte('{') + first := true + _ = first + if in.CacheID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheId\":") + out.String(string(in.CacheID)) + } + if in.SecurityOrigin != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityOrigin\":") + out.String(string(in.SecurityOrigin)) + } + if in.CacheName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheName\":") + out.String(string(in.CacheName)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Cache) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Cache) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCachestorage7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Cache) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestCacheNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Cache) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCachestorage7(l, v) } diff --git a/cdp/css/easyjson.go b/cdp/css/easyjson.go index aa01192..af60acc 100644 --- a/cdp/css/easyjson.go +++ b/cdp/css/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(in *jlexer.Lexer, out *EventStyleSheetRemoved) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(in *jlexer.Lexer, out *Value) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,8 +37,18 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(in *jlexer.Lexer, out *Eve continue } switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) + case "text": + out.Text = string(in.String()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -49,2432 +59,57 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(in *jlexer.Lexer, out *Eve in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(out *jwriter.Writer, in EventStyleSheetRemoved) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(out *jwriter.Writer, in Value) { out.RawByte('{') first := true _ = first - if in.StyleSheetID != "" { + if in.Text != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) + out.RawString("\"text\":") + out.String(string(in.Text)) + } + if in.Range != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) { +func (v Value) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) { +func (v Value) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error { +func (v *Value) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(in *jlexer.Lexer, out *EventStyleSheetAdded) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "header": - if in.IsNull() { - in.Skip() - out.Header = nil - } else { - if out.Header == nil { - out.Header = new(StyleSheetHeader) - } - (*out.Header).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(out *jwriter.Writer, in EventStyleSheetAdded) { - out.RawByte('{') - first := true - _ = first - if in.Header != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"header\":") - if in.Header == nil { - out.RawString("null") - } else { - (*in.Header).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(in *jlexer.Lexer, out *EventStyleSheetChanged) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(out *jwriter.Writer, in EventStyleSheetChanged) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(in *jlexer.Lexer, out *EventFontsUpdated) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(out *jwriter.Writer, in EventFontsUpdated) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventFontsUpdated) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(out *jwriter.Writer, in EventMediaQueryResultChanged) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(in *jlexer.Lexer, out *ComputedStyle) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "properties": - if in.IsNull() { - in.Skip() - out.Properties = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Properties = make([]*ComputedProperty, 0, 8) - } else { - out.Properties = []*ComputedProperty{} - } - for !in.IsDelim(']') { - var v1 *ComputedProperty - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ComputedProperty) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Properties = append(out.Properties, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(out *jwriter.Writer, in ComputedStyle) { - out.RawByte('{') - first := true - _ = first - if len(in.Properties) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"properties\":") - if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Properties { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ComputedStyle) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ComputedStyle) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ComputedStyle) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ComputedStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(in *jlexer.Lexer, out *LayoutTreeNode) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "boundingBox": - if in.IsNull() { - in.Skip() - out.BoundingBox = nil - } else { - if out.BoundingBox == nil { - out.BoundingBox = new(dom.Rect) - } - (*out.BoundingBox).UnmarshalEasyJSON(in) - } - case "layoutText": - out.LayoutText = string(in.String()) - case "inlineTextNodes": - if in.IsNull() { - in.Skip() - out.InlineTextNodes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.InlineTextNodes = make([]*InlineTextBox, 0, 8) - } else { - out.InlineTextNodes = []*InlineTextBox{} - } - for !in.IsDelim(']') { - var v4 *InlineTextBox - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(InlineTextBox) - } - (*v4).UnmarshalEasyJSON(in) - } - out.InlineTextNodes = append(out.InlineTextNodes, v4) - in.WantComma() - } - in.Delim(']') - } - case "styleIndex": - out.StyleIndex = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(out *jwriter.Writer, in LayoutTreeNode) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - if in.BoundingBox != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"boundingBox\":") - if in.BoundingBox == nil { - out.RawString("null") - } else { - (*in.BoundingBox).MarshalEasyJSON(out) - } - } - if in.LayoutText != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"layoutText\":") - out.String(string(in.LayoutText)) - } - if len(in.InlineTextNodes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"inlineTextNodes\":") - if in.InlineTextNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.InlineTextNodes { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.StyleIndex != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleIndex\":") - out.Int64(int64(in.StyleIndex)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LayoutTreeNode) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LayoutTreeNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LayoutTreeNode) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LayoutTreeNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(in *jlexer.Lexer, out *InlineTextBox) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "boundingBox": - if in.IsNull() { - in.Skip() - out.BoundingBox = nil - } else { - if out.BoundingBox == nil { - out.BoundingBox = new(dom.Rect) - } - (*out.BoundingBox).UnmarshalEasyJSON(in) - } - case "startCharacterIndex": - out.StartCharacterIndex = int64(in.Int64()) - case "numCharacters": - out.NumCharacters = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(out *jwriter.Writer, in InlineTextBox) { - out.RawByte('{') - first := true - _ = first - if in.BoundingBox != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"boundingBox\":") - if in.BoundingBox == nil { - out.RawString("null") - } else { - (*in.BoundingBox).MarshalEasyJSON(out) - } - } - if in.StartCharacterIndex != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startCharacterIndex\":") - out.Int64(int64(in.StartCharacterIndex)) - } - if in.NumCharacters != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"numCharacters\":") - out.Int64(int64(in.NumCharacters)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v InlineTextBox) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *InlineTextBox) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(in *jlexer.Lexer, out *StyleDeclarationEdit) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - case "text": - out.Text = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(out *jwriter.Writer, in StyleDeclarationEdit) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if in.Range != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - } - if in.Text != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(in *jlexer.Lexer, out *KeyframeRule) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "origin": - (out.Origin).UnmarshalEasyJSON(in) - case "keyText": - if in.IsNull() { - in.Skip() - out.KeyText = nil - } else { - if out.KeyText == nil { - out.KeyText = new(Value) - } - (*out.KeyText).UnmarshalEasyJSON(in) - } - case "style": - if in.IsNull() { - in.Skip() - out.Style = nil - } else { - if out.Style == nil { - out.Style = new(Style) - } - (*out.Style).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(out *jwriter.Writer, in KeyframeRule) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if in.Origin != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"origin\":") - (in.Origin).MarshalEasyJSON(out) - } - if in.KeyText != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyText\":") - if in.KeyText == nil { - out.RawString("null") - } else { - (*in.KeyText).MarshalEasyJSON(out) - } - } - if in.Style != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"style\":") - if in.Style == nil { - out.RawString("null") - } else { - (*in.Style).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v KeyframeRule) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyframeRule) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(in *jlexer.Lexer, out *KeyframesRule) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "animationName": - if in.IsNull() { - in.Skip() - out.AnimationName = nil - } else { - if out.AnimationName == nil { - out.AnimationName = new(Value) - } - (*out.AnimationName).UnmarshalEasyJSON(in) - } - case "keyframes": - if in.IsNull() { - in.Skip() - out.Keyframes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Keyframes = make([]*KeyframeRule, 0, 8) - } else { - out.Keyframes = []*KeyframeRule{} - } - for !in.IsDelim(']') { - var v7 *KeyframeRule - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(KeyframeRule) - } - (*v7).UnmarshalEasyJSON(in) - } - out.Keyframes = append(out.Keyframes, v7) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(out *jwriter.Writer, in KeyframesRule) { - out.RawByte('{') - first := true - _ = first - if in.AnimationName != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"animationName\":") - if in.AnimationName == nil { - out.RawString("null") - } else { - (*in.AnimationName).MarshalEasyJSON(out) - } - } - if len(in.Keyframes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyframes\":") - if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Keyframes { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v KeyframesRule) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyframesRule) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(in *jlexer.Lexer, out *PlatformFontUsage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "familyName": - out.FamilyName = string(in.String()) - case "isCustomFont": - out.IsCustomFont = bool(in.Bool()) - case "glyphCount": - out.GlyphCount = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(out *jwriter.Writer, in PlatformFontUsage) { - out.RawByte('{') - first := true - _ = first - if in.FamilyName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"familyName\":") - out.String(string(in.FamilyName)) - } - if in.IsCustomFont { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"isCustomFont\":") - out.Bool(bool(in.IsCustomFont)) - } - if in.GlyphCount != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"glyphCount\":") - out.Float64(float64(in.GlyphCount)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PlatformFontUsage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(in *jlexer.Lexer, out *MediaQueryExpression) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "value": - out.Value = float64(in.Float64()) - case "unit": - out.Unit = string(in.String()) - case "feature": - out.Feature = string(in.String()) - case "valueRange": - if in.IsNull() { - in.Skip() - out.ValueRange = nil - } else { - if out.ValueRange == nil { - out.ValueRange = new(SourceRange) - } - (*out.ValueRange).UnmarshalEasyJSON(in) - } - case "computedLength": - out.ComputedLength = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(out *jwriter.Writer, in MediaQueryExpression) { - out.RawByte('{') - first := true - _ = first - if in.Value != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.Float64(float64(in.Value)) - } - if in.Unit != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"unit\":") - out.String(string(in.Unit)) - } - if in.Feature != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"feature\":") - out.String(string(in.Feature)) - } - if in.ValueRange != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"valueRange\":") - if in.ValueRange == nil { - out.RawString("null") - } else { - (*in.ValueRange).MarshalEasyJSON(out) - } - } - if in.ComputedLength != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"computedLength\":") - out.Float64(float64(in.ComputedLength)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MediaQueryExpression) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(in *jlexer.Lexer, out *MediaQuery) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "expressions": - if in.IsNull() { - in.Skip() - out.Expressions = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Expressions = make([]*MediaQueryExpression, 0, 8) - } else { - out.Expressions = []*MediaQueryExpression{} - } - for !in.IsDelim(']') { - var v10 *MediaQueryExpression - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(MediaQueryExpression) - } - (*v10).UnmarshalEasyJSON(in) - } - out.Expressions = append(out.Expressions, v10) - in.WantComma() - } - in.Delim(']') - } - case "active": - out.Active = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(out *jwriter.Writer, in MediaQuery) { - out.RawByte('{') - first := true - _ = first - if len(in.Expressions) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"expressions\":") - if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v11, v12 := range in.Expressions { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Active { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"active\":") - out.Bool(bool(in.Active)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MediaQuery) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *MediaQuery) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(in *jlexer.Lexer, out *Media) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "text": - out.Text = string(in.String()) - case "source": - (out.Source).UnmarshalEasyJSON(in) - case "sourceURL": - out.SourceURL = string(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "mediaList": - if in.IsNull() { - in.Skip() - out.MediaList = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.MediaList = make([]*MediaQuery, 0, 8) - } else { - out.MediaList = []*MediaQuery{} - } - for !in.IsDelim(']') { - var v13 *MediaQuery - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(MediaQuery) - } - (*v13).UnmarshalEasyJSON(in) - } - out.MediaList = append(out.MediaList, v13) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(out *jwriter.Writer, in Media) { - out.RawByte('{') - first := true - _ = first - if in.Text != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - } - if in.Source != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"source\":") - (in.Source).MarshalEasyJSON(out) - } - if in.SourceURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"sourceURL\":") - out.String(string(in.SourceURL)) - } - if in.Range != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - } - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if len(in.MediaList) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"mediaList\":") - if in.MediaList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v14, v15 := range in.MediaList { - 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 Media) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Media) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Media) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(in *jlexer.Lexer, out *Property) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "important": - out.Important = bool(in.Bool()) - case "implicit": - out.Implicit = bool(in.Bool()) - case "text": - out.Text = string(in.String()) - case "parsedOk": - out.ParsedOk = bool(in.Bool()) - case "disabled": - out.Disabled = bool(in.Bool()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(out *jwriter.Writer, in Property) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Value != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - } - if in.Important { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"important\":") - out.Bool(bool(in.Important)) - } - if in.Implicit { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"implicit\":") - out.Bool(bool(in.Implicit)) - } - if in.Text != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - } - if in.ParsedOk { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"parsedOk\":") - out.Bool(bool(in.ParsedOk)) - } - if in.Disabled { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"disabled\":") - out.Bool(bool(in.Disabled)) - } - if in.Range != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Property) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Property) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Property) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(in *jlexer.Lexer, out *Style) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "cssProperties": - if in.IsNull() { - in.Skip() - out.CSSProperties = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.CSSProperties = make([]*Property, 0, 8) - } else { - out.CSSProperties = []*Property{} - } - for !in.IsDelim(']') { - var v16 *Property - if in.IsNull() { - in.Skip() - v16 = nil - } else { - if v16 == nil { - v16 = new(Property) - } - (*v16).UnmarshalEasyJSON(in) - } - out.CSSProperties = append(out.CSSProperties, v16) - in.WantComma() - } - in.Delim(']') - } - case "shorthandEntries": - if in.IsNull() { - in.Skip() - out.ShorthandEntries = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ShorthandEntries = make([]*ShorthandEntry, 0, 8) - } else { - out.ShorthandEntries = []*ShorthandEntry{} - } - for !in.IsDelim(']') { - var v17 *ShorthandEntry - if in.IsNull() { - in.Skip() - v17 = nil - } else { - if v17 == nil { - v17 = new(ShorthandEntry) - } - (*v17).UnmarshalEasyJSON(in) - } - out.ShorthandEntries = append(out.ShorthandEntries, v17) - in.WantComma() - } - in.Delim(']') - } - case "cssText": - out.CSSText = string(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(out *jwriter.Writer, in Style) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if len(in.CSSProperties) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cssProperties\":") - if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v18, v19 := range in.CSSProperties { - if v18 > 0 { - out.RawByte(',') - } - if v19 == nil { - out.RawString("null") - } else { - (*v19).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.ShorthandEntries) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"shorthandEntries\":") - if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v20, v21 := range in.ShorthandEntries { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - (*v21).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.CSSText != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"cssText\":") - out.String(string(in.CSSText)) - } - if in.Range != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Style) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Style) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Style) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(in *jlexer.Lexer, out *ComputedProperty) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(out *jwriter.Writer, in ComputedProperty) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Value != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ComputedProperty) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ComputedProperty) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(in *jlexer.Lexer, out *ShorthandEntry) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "important": - out.Important = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(out *jwriter.Writer, in ShorthandEntry) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Value != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - } - if in.Important { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"important\":") - out.Bool(bool(in.Important)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ShorthandEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ShorthandEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(in *jlexer.Lexer, out *SourceRange) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(out *jwriter.Writer, in SourceRange) { - out.RawByte('{') - first := true - _ = first - if in.StartLine != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startLine\":") - out.Int64(int64(in.StartLine)) - } - if in.StartColumn != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startColumn\":") - out.Int64(int64(in.StartColumn)) - } - if in.EndLine != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"endLine\":") - out.Int64(int64(in.EndLine)) - } - if in.EndColumn != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"endColumn\":") - out.Int64(int64(in.EndColumn)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SourceRange) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SourceRange) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(in *jlexer.Lexer, out *RuleUsage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - case "used": - out.Used = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(out *jwriter.Writer, in RuleUsage) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if in.Range != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - } - if in.Used { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"used\":") - out.Bool(bool(in.Used)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RuleUsage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RuleUsage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(in *jlexer.Lexer, out *Rule) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "selectorList": - if in.IsNull() { - in.Skip() - out.SelectorList = nil - } else { - if out.SelectorList == nil { - out.SelectorList = new(SelectorList) - } - (*out.SelectorList).UnmarshalEasyJSON(in) - } - case "origin": - (out.Origin).UnmarshalEasyJSON(in) - case "style": - if in.IsNull() { - in.Skip() - out.Style = nil - } else { - if out.Style == nil { - out.Style = new(Style) - } - (*out.Style).UnmarshalEasyJSON(in) - } - case "media": - if in.IsNull() { - in.Skip() - out.Media = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Media = make([]*Media, 0, 8) - } else { - out.Media = []*Media{} - } - for !in.IsDelim(']') { - var v22 *Media - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(Media) - } - (*v22).UnmarshalEasyJSON(in) - } - out.Media = append(out.Media, v22) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(out *jwriter.Writer, in Rule) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - } - if in.SelectorList != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"selectorList\":") - if in.SelectorList == nil { - out.RawString("null") - } else { - (*in.SelectorList).MarshalEasyJSON(out) - } - } - if in.Origin != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"origin\":") - (in.Origin).MarshalEasyJSON(out) - } - if in.Style != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"style\":") - if in.Style == nil { - out.RawString("null") - } else { - (*in.Style).MarshalEasyJSON(out) - } - } - if len(in.Media) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"media\":") - if in.Media == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v23, v24 := range in.Media { - if v23 > 0 { - out.RawByte(',') - } - if v24 == nil { - out.RawString("null") - } else { - (*v24).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Rule) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Rule) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Rule) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(in *jlexer.Lexer, out *StyleSheetHeader) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(in *jlexer.Lexer, out *StyleSheetHeader) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2527,7 +162,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(out *jwriter.Writer, in StyleSheetHeader) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(out *jwriter.Writer, in StyleSheetHeader) { out.RawByte('{') first := true _ = first @@ -2633,27 +268,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v StyleSheetHeader) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StyleSheetHeader) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StyleSheetHeader) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StyleSheetHeader) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(in *jlexer.Lexer, out *SelectorList) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(in *jlexer.Lexer, out *StyleDeclarationEdit) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2672,32 +307,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(in *jlexer.Lexer, out *S continue } switch key { - case "selectors": + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "range": if in.IsNull() { in.Skip() - out.Selectors = nil + out.Range = nil } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Selectors = make([]*Value, 0, 8) - } else { - out.Selectors = []*Value{} + if out.Range == nil { + out.Range = new(SourceRange) } - for !in.IsDelim(']') { - var v25 *Value - if in.IsNull() { - in.Skip() - v25 = nil - } else { - if v25 == nil { - v25 = new(Value) - } - (*v25).UnmarshalEasyJSON(in) - } - out.Selectors = append(out.Selectors, v25) - in.WantComma() - } - in.Delim(']') + (*out.Range).UnmarshalEasyJSON(in) } case "text": out.Text = string(in.String()) @@ -2711,31 +331,28 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(out *jwriter.Writer, in SelectorList) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(out *jwriter.Writer, in StyleDeclarationEdit) { out.RawByte('{') first := true _ = first - if len(in.Selectors) != 0 { + if in.StyleSheetID != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"selectors\":") - if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if in.Range != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { out.RawString("null") } else { - out.RawByte('[') - for v26, v27 := range in.Selectors { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") - } else { - (*v27).MarshalEasyJSON(out) - } - } - out.RawByte(']') + (*in.Range).MarshalEasyJSON(out) } } if in.Text != "" { @@ -2750,29 +367,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v SelectorList) MarshalJSON() ([]byte, error) { +func (v StyleDeclarationEdit) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(w, v) +func (v StyleDeclarationEdit) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SelectorList) UnmarshalJSON(data []byte) error { +func (v *StyleDeclarationEdit) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(l, v) +func (v *StyleDeclarationEdit) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(in *jlexer.Lexer, out *Value) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(in *jlexer.Lexer, out *Style) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2791,8 +408,72 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(in *jlexer.Lexer, out *V continue } switch key { - case "text": - out.Text = string(in.String()) + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "cssProperties": + if in.IsNull() { + in.Skip() + out.CSSProperties = nil + } else { + in.Delim('[') + if out.CSSProperties == nil { + if !in.IsDelim(']') { + out.CSSProperties = make([]*Property, 0, 8) + } else { + out.CSSProperties = []*Property{} + } + } else { + out.CSSProperties = (out.CSSProperties)[:0] + } + for !in.IsDelim(']') { + var v1 *Property + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(Property) + } + (*v1).UnmarshalEasyJSON(in) + } + out.CSSProperties = append(out.CSSProperties, v1) + in.WantComma() + } + in.Delim(']') + } + case "shorthandEntries": + if in.IsNull() { + in.Skip() + out.ShorthandEntries = nil + } else { + in.Delim('[') + if out.ShorthandEntries == nil { + if !in.IsDelim(']') { + out.ShorthandEntries = make([]*ShorthandEntry, 0, 8) + } else { + out.ShorthandEntries = []*ShorthandEntry{} + } + } else { + out.ShorthandEntries = (out.ShorthandEntries)[:0] + } + for !in.IsDelim(']') { + var v2 *ShorthandEntry + if in.IsNull() { + in.Skip() + v2 = nil + } else { + if v2 == nil { + v2 = new(ShorthandEntry) + } + (*v2).UnmarshalEasyJSON(in) + } + out.ShorthandEntries = append(out.ShorthandEntries, v2) + in.WantComma() + } + in.Delim(']') + } + case "cssText": + out.CSSText = string(in.String()) case "range": if in.IsNull() { in.Skip() @@ -2813,17 +494,71 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(in *jlexer.Lexer, out *V in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(out *jwriter.Writer, in Value) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(out *jwriter.Writer, in Style) { out.RawByte('{') first := true _ = first - if in.Text != "" { + if in.StyleSheetID != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"text\":") - out.String(string(in.Text)) + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if len(in.CSSProperties) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cssProperties\":") + if in.CSSProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v3, v4 := range in.CSSProperties { + if v3 > 0 { + out.RawByte(',') + } + if v4 == nil { + out.RawString("null") + } else { + (*v4).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if len(in.ShorthandEntries) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"shorthandEntries\":") + if in.ShorthandEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.ShorthandEntries { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.CSSText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cssText\":") + out.String(string(in.CSSText)) } if in.Range != nil { if !first { @@ -2841,398 +576,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v Value) MarshalJSON() ([]byte, error) { +func (v Style) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Value) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(w, v) +func (v Style) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Value) UnmarshalJSON(data []byte) error { +func (v *Style) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Value) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(l, v) +func (v *Style) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(in *jlexer.Lexer, out *RuleMatch) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rule": - if in.IsNull() { - in.Skip() - out.Rule = nil - } else { - if out.Rule == nil { - out.Rule = new(Rule) - } - (*out.Rule).UnmarshalEasyJSON(in) - } - case "matchingSelectors": - if in.IsNull() { - in.Skip() - out.MatchingSelectors = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.MatchingSelectors = make([]int64, 0, 8) - } else { - out.MatchingSelectors = []int64{} - } - for !in.IsDelim(']') { - var v28 int64 - v28 = int64(in.Int64()) - out.MatchingSelectors = append(out.MatchingSelectors, v28) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(out *jwriter.Writer, in RuleMatch) { - out.RawByte('{') - first := true - _ = first - if in.Rule != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"rule\":") - if in.Rule == nil { - out.RawString("null") - } else { - (*in.Rule).MarshalEasyJSON(out) - } - } - if len(in.MatchingSelectors) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"matchingSelectors\":") - if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v29, v30 := range in.MatchingSelectors { - if v29 > 0 { - out.RawByte(',') - } - out.Int64(int64(v30)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RuleMatch) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RuleMatch) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(in *jlexer.Lexer, out *InheritedStyleEntry) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "inlineStyle": - if in.IsNull() { - in.Skip() - out.InlineStyle = nil - } else { - if out.InlineStyle == nil { - out.InlineStyle = new(Style) - } - (*out.InlineStyle).UnmarshalEasyJSON(in) - } - case "matchedCSSRules": - if in.IsNull() { - in.Skip() - out.MatchedCSSRules = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.MatchedCSSRules = make([]*RuleMatch, 0, 8) - } else { - out.MatchedCSSRules = []*RuleMatch{} - } - for !in.IsDelim(']') { - var v31 *RuleMatch - if in.IsNull() { - in.Skip() - v31 = nil - } else { - if v31 == nil { - v31 = new(RuleMatch) - } - (*v31).UnmarshalEasyJSON(in) - } - out.MatchedCSSRules = append(out.MatchedCSSRules, v31) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(out *jwriter.Writer, in InheritedStyleEntry) { - out.RawByte('{') - first := true - _ = first - if in.InlineStyle != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"inlineStyle\":") - if in.InlineStyle == nil { - out.RawString("null") - } else { - (*in.InlineStyle).MarshalEasyJSON(out) - } - } - if len(in.MatchedCSSRules) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"matchedCSSRules\":") - if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v32, v33 := range in.MatchedCSSRules { - if v32 > 0 { - out.RawByte(',') - } - if v33 == nil { - out.RawString("null") - } else { - (*v33).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(in *jlexer.Lexer, out *PseudoElementMatches) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "pseudoType": - (out.PseudoType).UnmarshalEasyJSON(in) - case "matches": - if in.IsNull() { - in.Skip() - out.Matches = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Matches = make([]*RuleMatch, 0, 8) - } else { - out.Matches = []*RuleMatch{} - } - for !in.IsDelim(']') { - var v34 *RuleMatch - if in.IsNull() { - in.Skip() - v34 = nil - } else { - if v34 == nil { - v34 = new(RuleMatch) - } - (*v34).UnmarshalEasyJSON(in) - } - out.Matches = append(out.Matches, v34) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(out *jwriter.Writer, in PseudoElementMatches) { - out.RawByte('{') - first := true - _ = first - if in.PseudoType != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pseudoType\":") - (in.PseudoType).MarshalEasyJSON(out) - } - if len(in.Matches) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"matches\":") - if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v35, v36 := range in.Matches { - if v35 > 0 { - out.RawByte(',') - } - if v36 == nil { - out.RawString("null") - } else { - (*v36).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PseudoElementMatches) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(in *jlexer.Lexer, out *StopRuleUsageTrackingReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(in *jlexer.Lexer, out *StopRuleUsageTrackingReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3257,23 +623,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(in *jlexer.Lexer, out *S out.RuleUsage = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.RuleUsage = make([]*RuleUsage, 0, 8) + if out.RuleUsage == nil { + if !in.IsDelim(']') { + out.RuleUsage = make([]*RuleUsage, 0, 8) + } else { + out.RuleUsage = []*RuleUsage{} + } } else { - out.RuleUsage = []*RuleUsage{} + out.RuleUsage = (out.RuleUsage)[:0] } for !in.IsDelim(']') { - var v37 *RuleUsage + var v7 *RuleUsage if in.IsNull() { in.Skip() - v37 = nil + v7 = nil } else { - if v37 == nil { - v37 = new(RuleUsage) + if v7 == nil { + v7 = new(RuleUsage) } - (*v37).UnmarshalEasyJSON(in) + (*v7).UnmarshalEasyJSON(in) } - out.RuleUsage = append(out.RuleUsage, v37) + out.RuleUsage = append(out.RuleUsage, v7) in.WantComma() } in.Delim(']') @@ -3288,7 +658,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(out *jwriter.Writer, in StopRuleUsageTrackingReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(out *jwriter.Writer, in StopRuleUsageTrackingReturns) { out.RawByte('{') first := true _ = first @@ -3302,14 +672,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v38, v39 := range in.RuleUsage { - if v38 > 0 { + for v8, v9 := range in.RuleUsage { + if v8 > 0 { out.RawByte(',') } - if v39 == nil { + if v9 == nil { out.RawString("null") } else { - (*v39).MarshalEasyJSON(out) + (*v9).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3321,27 +691,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v StopRuleUsageTrackingReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StopRuleUsageTrackingReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StopRuleUsageTrackingReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StopRuleUsageTrackingReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(in *jlexer.Lexer, out *StopRuleUsageTrackingParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(in *jlexer.Lexer, out *StopRuleUsageTrackingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3370,7 +740,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(out *jwriter.Writer, in StopRuleUsageTrackingParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(out *jwriter.Writer, in StopRuleUsageTrackingParams) { out.RawByte('{') first := true _ = first @@ -3380,27 +750,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v StopRuleUsageTrackingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StopRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StopRuleUsageTrackingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StopRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(in *jlexer.Lexer, out *StartRuleUsageTrackingParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(in *jlexer.Lexer, out *StartRuleUsageTrackingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3429,7 +799,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(out *jwriter.Writer, in StartRuleUsageTrackingParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(out *jwriter.Writer, in StartRuleUsageTrackingParams) { out.RawByte('{') first := true _ = first @@ -3439,27 +809,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v StartRuleUsageTrackingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StartRuleUsageTrackingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StartRuleUsageTrackingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StartRuleUsageTrackingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(in *jlexer.Lexer, out *GetLayoutTreeAndStylesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(in *jlexer.Lexer, out *SourceRange) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3478,60 +848,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(in *jlexer.Lexer, out *G continue } switch key { - case "layoutTreeNodes": - if in.IsNull() { - in.Skip() - out.LayoutTreeNodes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.LayoutTreeNodes = make([]*LayoutTreeNode, 0, 8) - } else { - out.LayoutTreeNodes = []*LayoutTreeNode{} - } - for !in.IsDelim(']') { - var v40 *LayoutTreeNode - if in.IsNull() { - in.Skip() - v40 = nil - } else { - if v40 == nil { - v40 = new(LayoutTreeNode) - } - (*v40).UnmarshalEasyJSON(in) - } - out.LayoutTreeNodes = append(out.LayoutTreeNodes, v40) - in.WantComma() - } - in.Delim(']') - } - case "computedStyles": - if in.IsNull() { - in.Skip() - out.ComputedStyles = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ComputedStyles = make([]*ComputedStyle, 0, 8) - } else { - out.ComputedStyles = []*ComputedStyle{} - } - for !in.IsDelim(']') { - var v41 *ComputedStyle - if in.IsNull() { - in.Skip() - v41 = nil - } else { - if v41 == nil { - v41 = new(ComputedStyle) - } - (*v41).UnmarshalEasyJSON(in) - } - out.ComputedStyles = append(out.ComputedStyles, v41) - in.WantComma() - } - in.Delim(']') - } + 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()) default: in.SkipRecursive() } @@ -3542,275 +866,69 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(out *jwriter.Writer, in GetLayoutTreeAndStylesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(out *jwriter.Writer, in SourceRange) { out.RawByte('{') first := true _ = first - if len(in.LayoutTreeNodes) != 0 { + if in.StartLine != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"layoutTreeNodes\":") - if in.LayoutTreeNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v42, v43 := range in.LayoutTreeNodes { - if v42 > 0 { - out.RawByte(',') - } - if v43 == nil { - out.RawString("null") - } else { - (*v43).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + out.RawString("\"startLine\":") + out.Int64(int64(in.StartLine)) } - if len(in.ComputedStyles) != 0 { + if in.StartColumn != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"computedStyles\":") - if in.ComputedStyles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v44, v45 := range in.ComputedStyles { - if v44 > 0 { - out.RawByte(',') - } - if v45 == nil { - out.RawString("null") - } else { - (*v45).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + out.RawString("\"startColumn\":") + out.Int64(int64(in.StartColumn)) } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetLayoutTreeAndStylesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayoutTreeAndStylesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayoutTreeAndStylesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayoutTreeAndStylesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(in *jlexer.Lexer, out *GetLayoutTreeAndStylesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "computedStyleWhitelist": - if in.IsNull() { - in.Skip() - out.ComputedStyleWhitelist = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ComputedStyleWhitelist = make([]string, 0, 4) - } else { - out.ComputedStyleWhitelist = []string{} - } - for !in.IsDelim(']') { - var v46 string - v46 = string(in.String()) - out.ComputedStyleWhitelist = append(out.ComputedStyleWhitelist, v46) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(out *jwriter.Writer, in GetLayoutTreeAndStylesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"computedStyleWhitelist\":") - if in.ComputedStyleWhitelist == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v47, v48 := range in.ComputedStyleWhitelist { - if v47 > 0 { - out.RawByte(',') - } - out.String(string(v48)) - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetLayoutTreeAndStylesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayoutTreeAndStylesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayoutTreeAndStylesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayoutTreeAndStylesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "backgroundColors": - if in.IsNull() { - in.Skip() - out.BackgroundColors = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.BackgroundColors = make([]string, 0, 4) - } else { - out.BackgroundColors = []string{} - } - for !in.IsDelim(']') { - var v49 string - v49 = string(in.String()) - out.BackgroundColors = append(out.BackgroundColors, v49) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(out *jwriter.Writer, in GetBackgroundColorsReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.BackgroundColors) != 0 { + if in.EndLine != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"backgroundColors\":") - if in.BackgroundColors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v50, v51 := range in.BackgroundColors { - if v50 > 0 { - out.RawByte(',') - } - out.String(string(v51)) - } - out.RawByte(']') + out.RawString("\"endLine\":") + out.Int64(int64(in.EndLine)) + } + if in.EndColumn != 0 { + if !first { + out.RawByte(',') } + first = false + out.RawString("\"endColumn\":") + out.Int64(int64(in.EndColumn)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) { +func (v SourceRange) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(w, v) +func (v SourceRange) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error { +func (v *SourceRange) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v) +func (v *SourceRange) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *GetBackgroundColorsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(in *jlexer.Lexer, out *ShorthandEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3829,79 +947,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *G continue } switch key { - case "nodeId": - (out.NodeID).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in GetBackgroundColorsParams) { - 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 GetBackgroundColorsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *SetEffectivePropertyValueForNodeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "propertyName": - out.PropertyName = string(in.String()) + case "name": + out.Name = string(in.String()) case "value": out.Value = string(in.String()) + case "important": + out.Important = bool(in.Bool()) default: in.SkipRecursive() } @@ -3912,814 +963,61 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in SetEffectivePropertyValueForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(out *jwriter.Writer, in ShorthandEntry) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"propertyName\":") - out.String(string(in.PropertyName)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *GetMediaQueriesReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "medias": - if in.IsNull() { - in.Skip() - out.Medias = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Medias = make([]*Media, 0, 8) - } else { - out.Medias = []*Media{} - } - for !in.IsDelim(']') { - var v52 *Media - if in.IsNull() { - in.Skip() - v52 = nil - } else { - if v52 == nil { - v52 = new(Media) - } - (*v52).UnmarshalEasyJSON(in) - } - out.Medias = append(out.Medias, v52) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetMediaQueriesReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.Medias) != 0 { + if in.Name != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"medias\":") - if in.Medias == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v53, v54 := range in.Medias { - if v53 > 0 { - out.RawByte(',') - } - if v54 == nil { - out.RawString("null") - } else { - (*v54).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + out.RawString("\"name\":") + out.String(string(in.Name)) } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *GetMediaQueriesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetMediaQueriesParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *ForcePseudoStateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "forcedPseudoClasses": - if in.IsNull() { - in.Skip() - out.ForcedPseudoClasses = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ForcedPseudoClasses = make([]PseudoClass, 0, 4) - } else { - out.ForcedPseudoClasses = []PseudoClass{} - } - for !in.IsDelim(']') { - var v55 PseudoClass - (v55).UnmarshalEasyJSON(in) - out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v55) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in ForcePseudoStateParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"forcedPseudoClasses\":") - if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v56, v57 := range in.ForcedPseudoClasses { - if v56 > 0 { - out.RawByte(',') - } - (v57).MarshalEasyJSON(out) - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *AddRuleReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rule": - if in.IsNull() { - in.Skip() - out.Rule = nil - } else { - if out.Rule == nil { - out.Rule = new(Rule) - } - (*out.Rule).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in AddRuleReturns) { - out.RawByte('{') - first := true - _ = first - if in.Rule != nil { + if in.Value != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"rule\":") - if in.Rule == nil { - out.RawString("null") - } else { - (*in.Rule).MarshalEasyJSON(out) - } + out.RawString("\"value\":") + out.String(string(in.Value)) } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AddRuleReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AddRuleReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *AddRuleParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "ruleText": - out.RuleText = string(in.String()) - case "location": - if in.IsNull() { - in.Skip() - out.Location = nil - } else { - if out.Location == nil { - out.Location = new(SourceRange) - } - (*out.Location).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in AddRuleParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"ruleText\":") - out.String(string(in.RuleText)) - 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 AddRuleParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AddRuleParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *CreateStyleSheetReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in CreateStyleSheetReturns) { - out.RawByte('{') - first := true - _ = first - if in.StyleSheetID != "" { + if in.Important { if !first { out.RawByte(',') } first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) + out.RawString("\"important\":") + out.Bool(bool(in.Important)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) { +func (v ShorthandEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v) +func (v ShorthandEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error { +func (v *ShorthandEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v) +func (v *ShorthandEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *CreateStyleSheetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in CreateStyleSheetParams) { - 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 CreateStyleSheetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *SetMediaTextReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "media": - if in.IsNull() { - in.Skip() - out.Media = nil - } else { - if out.Media == nil { - out.Media = new(Media) - } - (*out.Media).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in SetMediaTextReturns) { - out.RawByte('{') - first := true - _ = first - if in.Media != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"media\":") - if in.Media == nil { - out.RawString("null") - } else { - (*in.Media).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetMediaTextReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *SetMediaTextParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "styleSheetId": - out.StyleSheetID = StyleSheetID(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - case "text": - out.Text = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in SetMediaTextParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetMediaTextParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *SetStyleTextsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(in *jlexer.Lexer, out *SetStyleTextsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4744,23 +1042,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *S out.Styles = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Styles = make([]*Style, 0, 8) + if out.Styles == nil { + if !in.IsDelim(']') { + out.Styles = make([]*Style, 0, 8) + } else { + out.Styles = []*Style{} + } } else { - out.Styles = []*Style{} + out.Styles = (out.Styles)[:0] } for !in.IsDelim(']') { - var v58 *Style + var v10 *Style if in.IsNull() { in.Skip() - v58 = nil + v10 = nil } else { - if v58 == nil { - v58 = new(Style) + if v10 == nil { + v10 = new(Style) } - (*v58).UnmarshalEasyJSON(in) + (*v10).UnmarshalEasyJSON(in) } - out.Styles = append(out.Styles, v58) + out.Styles = append(out.Styles, v10) in.WantComma() } in.Delim(']') @@ -4775,7 +1077,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in SetStyleTextsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(out *jwriter.Writer, in SetStyleTextsReturns) { out.RawByte('{') first := true _ = first @@ -4789,14 +1091,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v59, v60 := range in.Styles { - if v59 > 0 { + for v11, v12 := range in.Styles { + if v11 > 0 { out.RawByte(',') } - if v60 == nil { + if v12 == nil { out.RawString("null") } else { - (*v60).MarshalEasyJSON(out) + (*v12).MarshalEasyJSON(out) } } out.RawByte(']') @@ -4808,27 +1110,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v SetStyleTextsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetStyleTextsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetStyleTextsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetStyleTextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *SetStyleTextsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(in *jlexer.Lexer, out *SetStyleTextsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4853,23 +1155,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *S out.Edits = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Edits = make([]*StyleDeclarationEdit, 0, 8) + if out.Edits == nil { + if !in.IsDelim(']') { + out.Edits = make([]*StyleDeclarationEdit, 0, 8) + } else { + out.Edits = []*StyleDeclarationEdit{} + } } else { - out.Edits = []*StyleDeclarationEdit{} + out.Edits = (out.Edits)[:0] } for !in.IsDelim(']') { - var v61 *StyleDeclarationEdit + var v13 *StyleDeclarationEdit if in.IsNull() { in.Skip() - v61 = nil + v13 = nil } else { - if v61 == nil { - v61 = new(StyleDeclarationEdit) + if v13 == nil { + v13 = new(StyleDeclarationEdit) } - (*v61).UnmarshalEasyJSON(in) + (*v13).UnmarshalEasyJSON(in) } - out.Edits = append(out.Edits, v61) + out.Edits = append(out.Edits, v13) in.WantComma() } in.Delim(']') @@ -4884,7 +1190,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in SetStyleTextsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(out *jwriter.Writer, in SetStyleTextsParams) { out.RawByte('{') first := true _ = first @@ -4897,14 +1203,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v62, v63 := range in.Edits { - if v62 > 0 { + for v14, v15 := range in.Edits { + if v14 > 0 { out.RawByte(',') } - if v63 == nil { + if v15 == nil { out.RawString("null") } else { - (*v63).MarshalEasyJSON(out) + (*v15).MarshalEasyJSON(out) } } out.RawByte(']') @@ -4915,27 +1221,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v SetStyleTextsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetStyleTextsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetStyleTextsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetStyleTextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *SetKeyframeKeyReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(in *jlexer.Lexer, out *SetStyleSheetTextReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4954,16 +1260,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *S continue } switch key { - case "keyText": - if in.IsNull() { - in.Skip() - out.KeyText = nil - } else { - if out.KeyText == nil { - out.KeyText = new(Value) - } - (*out.KeyText).UnmarshalEasyJSON(in) - } + case "sourceMapURL": + out.SourceMapURL = string(in.String()) default: in.SkipRecursive() } @@ -4974,49 +1272,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in SetKeyframeKeyReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(out *jwriter.Writer, in SetStyleSheetTextReturns) { out.RawByte('{') first := true _ = first - if in.KeyText != nil { + if in.SourceMapURL != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"keyText\":") - if in.KeyText == nil { - out.RawString("null") - } else { - (*in.KeyText).MarshalEasyJSON(out) - } + out.RawString("\"sourceMapURL\":") + out.String(string(in.SourceMapURL)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error) { +func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v) +func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error { +func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v) +func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *SetKeyframeKeyParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(in *jlexer.Lexer, out *SetStyleSheetTextParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5037,18 +1331,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *S switch key { case "styleSheetId": out.StyleSheetID = StyleSheetID(in.String()) - case "range": - if in.IsNull() { - in.Skip() - out.Range = nil - } else { - if out.Range == nil { - out.Range = new(SourceRange) - } - (*out.Range).UnmarshalEasyJSON(in) - } - case "keyText": - out.KeyText = string(in.String()) + case "text": + out.Text = string(in.String()) default: in.SkipRecursive() } @@ -5059,7 +1343,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in SetKeyframeKeyParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(out *jwriter.Writer, in SetStyleSheetTextParams) { out.RawByte('{') first := true _ = first @@ -5073,45 +1357,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in out.RawByte(',') } first = false - out.RawString("\"range\":") - if in.Range == nil { - out.RawString("null") - } else { - (*in.Range).MarshalEasyJSON(out) - } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyText\":") - out.String(string(in.KeyText)) + out.RawString("\"text\":") + out.String(string(in.Text)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error) { +func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v) +func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error { +func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v) +func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *SetRuleSelectorReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(in *jlexer.Lexer, out *SetRuleSelectorReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5150,7 +1424,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in SetRuleSelectorReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(out *jwriter.Writer, in SetRuleSelectorReturns) { out.RawByte('{') first := true _ = first @@ -5172,27 +1446,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v SetRuleSelectorReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetRuleSelectorReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetRuleSelectorReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetRuleSelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *SetRuleSelectorParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(in *jlexer.Lexer, out *SetRuleSelectorParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5235,7 +1509,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in SetRuleSelectorParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(out *jwriter.Writer, in SetRuleSelectorParams) { out.RawByte('{') first := true _ = first @@ -5267,27 +1541,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v SetRuleSelectorParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetRuleSelectorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetRuleSelectorParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetRuleSelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *SetStyleSheetTextReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(in *jlexer.Lexer, out *SetMediaTextReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5306,8 +1580,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *S continue } switch key { - case "sourceMapURL": - out.SourceMapURL = string(in.String()) + case "media": + if in.IsNull() { + in.Skip() + out.Media = nil + } else { + if out.Media == nil { + out.Media = new(Media) + } + (*out.Media).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -5318,45 +1600,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in SetStyleSheetTextReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(out *jwriter.Writer, in SetMediaTextReturns) { out.RawByte('{') first := true _ = first - if in.SourceMapURL != "" { + if in.Media != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"sourceMapURL\":") - out.String(string(in.SourceMapURL)) + out.RawString("\"media\":") + if in.Media == nil { + out.RawString("null") + } else { + (*in.Media).MarshalEasyJSON(out) + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetStyleSheetTextReturns) MarshalJSON() ([]byte, error) { +func (v SetMediaTextReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v) +func (v SetMediaTextReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetStyleSheetTextReturns) UnmarshalJSON(data []byte) error { +func (v *SetMediaTextReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v) +func (v *SetMediaTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *SetStyleSheetTextParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(in *jlexer.Lexer, out *SetMediaTextParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5377,6 +1663,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *S switch key { case "styleSheetId": out.StyleSheetID = StyleSheetID(in.String()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } case "text": out.Text = string(in.String()) default: @@ -5389,7 +1685,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in SetStyleSheetTextParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(out *jwriter.Writer, in SetMediaTextParams) { out.RawByte('{') first := true _ = first @@ -5403,35 +1699,45 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in out.RawByte(',') } first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false out.RawString("\"text\":") out.String(string(in.Text)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetStyleSheetTextParams) MarshalJSON() ([]byte, error) { +func (v SetMediaTextParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v) +func (v SetMediaTextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetStyleSheetTextParams) UnmarshalJSON(data []byte) error { +func (v *SetMediaTextParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v) +func (v *SetMediaTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *CollectClassNamesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(in *jlexer.Lexer, out *SetKeyframeKeyReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5450,24 +1756,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *C continue } switch key { - case "classNames": + case "keyText": if in.IsNull() { in.Skip() - out.ClassNames = nil + out.KeyText = nil } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ClassNames = make([]string, 0, 4) - } else { - out.ClassNames = []string{} + if out.KeyText == nil { + out.KeyText = new(Value) } - for !in.IsDelim(']') { - var v64 string - v64 = string(in.String()) - out.ClassNames = append(out.ClassNames, v64) - in.WantComma() - } - in.Delim(']') + (*out.KeyText).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -5479,56 +1776,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in CollectClassNamesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(out *jwriter.Writer, in SetKeyframeKeyReturns) { out.RawByte('{') first := true _ = first - if len(in.ClassNames) != 0 { + if in.KeyText != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"classNames\":") - if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"keyText\":") + if in.KeyText == nil { out.RawString("null") } else { - out.RawByte('[') - for v65, v66 := range in.ClassNames { - if v65 > 0 { - out.RawByte(',') - } - out.String(string(v66)) - } - out.RawByte(']') + (*in.KeyText).MarshalEasyJSON(out) } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) { +func (v SetKeyframeKeyReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v) +func (v SetKeyframeKeyReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error { +func (v *SetKeyframeKeyReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v) +func (v *SetKeyframeKeyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *CollectClassNamesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(in *jlexer.Lexer, out *SetKeyframeKeyParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5549,6 +1839,18 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *C switch key { case "styleSheetId": out.StyleSheetID = StyleSheetID(in.String()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } + case "keyText": + out.KeyText = string(in.String()) default: in.SkipRecursive() } @@ -5559,7 +1861,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *C in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in CollectClassNamesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(out *jwriter.Writer, in SetKeyframeKeyParams) { out.RawByte('{') first := true _ = first @@ -5569,33 +1871,49 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in first = false out.RawString("\"styleSheetId\":") out.String(string(in.StyleSheetID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyText\":") + out.String(string(in.KeyText)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) { +func (v SetKeyframeKeyParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v) +func (v SetKeyframeKeyParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error { +func (v *SetKeyframeKeyParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v) +func (v *SetKeyframeKeyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *GetStyleSheetTextReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(in *jlexer.Lexer, out *SetEffectivePropertyValueForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5614,6 +1932,120 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *G continue } switch key { + case "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) + case "propertyName": + out.PropertyName = string(in.String()) + case "value": + out.Value = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(out *jwriter.Writer, in SetEffectivePropertyValueForNodeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"propertyName\":") + out.String(string(in.PropertyName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetEffectivePropertyValueForNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetEffectivePropertyValueForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetEffectivePropertyValueForNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetEffectivePropertyValueForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(in *jlexer.Lexer, out *SelectorList) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "selectors": + if in.IsNull() { + in.Skip() + out.Selectors = nil + } else { + in.Delim('[') + if out.Selectors == nil { + if !in.IsDelim(']') { + out.Selectors = make([]*Value, 0, 8) + } else { + out.Selectors = []*Value{} + } + } else { + out.Selectors = (out.Selectors)[:0] + } + for !in.IsDelim(']') { + var v16 *Value + if in.IsNull() { + in.Skip() + v16 = nil + } else { + if v16 == nil { + v16 = new(Value) + } + (*v16).UnmarshalEasyJSON(in) + } + out.Selectors = append(out.Selectors, v16) + in.WantComma() + } + in.Delim(']') + } case "text": out.Text = string(in.String()) default: @@ -5626,10 +2058,33 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in GetStyleSheetTextReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(out *jwriter.Writer, in SelectorList) { out.RawByte('{') first := true _ = first + if len(in.Selectors) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selectors\":") + if in.Selectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.Selectors { + if v17 > 0 { + out.RawByte(',') + } + if v18 == nil { + out.RawString("null") + } else { + (*v18).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } if in.Text != "" { if !first { out.RawByte(',') @@ -5642,29 +2097,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) { +func (v SelectorList) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v) +func (v SelectorList) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error { +func (v *SelectorList) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v) +func (v *SelectorList) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss20(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *GetStyleSheetTextParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(in *jlexer.Lexer, out *RuleUsage) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5685,6 +2140,18 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *G switch key { case "styleSheetId": out.StyleSheetID = StyleSheetID(in.String()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } + case "used": + out.Used = bool(in.Bool()) default: in.SkipRecursive() } @@ -5695,43 +2162,65 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in GetStyleSheetTextParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(out *jwriter.Writer, in RuleUsage) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if in.Range != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } + } + if in.Used { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"used\":") + out.Bool(bool(in.Used)) } - first = false - out.RawString("\"styleSheetId\":") - out.String(string(in.StyleSheetID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) { +func (v RuleUsage) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v) +func (v RuleUsage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error { +func (v *RuleUsage) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v) +func (v *RuleUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(in *jlexer.Lexer, out *RuleMatch) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5750,29 +2239,35 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *G continue } switch key { - case "fonts": + case "rule": if in.IsNull() { in.Skip() - out.Fonts = nil + out.Rule = nil + } else { + if out.Rule == nil { + out.Rule = new(Rule) + } + (*out.Rule).UnmarshalEasyJSON(in) + } + case "matchingSelectors": + if in.IsNull() { + in.Skip() + out.MatchingSelectors = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Fonts = make([]*PlatformFontUsage, 0, 8) + if out.MatchingSelectors == nil { + if !in.IsDelim(']') { + out.MatchingSelectors = make([]int64, 0, 8) + } else { + out.MatchingSelectors = []int64{} + } } else { - out.Fonts = []*PlatformFontUsage{} + out.MatchingSelectors = (out.MatchingSelectors)[:0] } for !in.IsDelim(']') { - var v67 *PlatformFontUsage - if in.IsNull() { - in.Skip() - v67 = nil - } else { - if v67 == nil { - v67 = new(PlatformFontUsage) - } - (*v67).UnmarshalEasyJSON(in) - } - out.Fonts = append(out.Fonts, v67) + var v19 int64 + v19 = int64(in.Int64()) + out.MatchingSelectors = append(out.MatchingSelectors, v19) in.WantComma() } in.Delim(']') @@ -5787,28 +2282,213 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(out *jwriter.Writer, in RuleMatch) { out.RawByte('{') first := true _ = first - if len(in.Fonts) != 0 { + if in.Rule != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"fonts\":") - if in.Fonts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"rule\":") + if in.Rule == nil { + out.RawString("null") + } else { + (*in.Rule).MarshalEasyJSON(out) + } + } + if len(in.MatchingSelectors) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"matchingSelectors\":") + if in.MatchingSelectors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v68, v69 := range in.Fonts { - if v68 > 0 { + for v20, v21 := range in.MatchingSelectors { + if v20 > 0 { out.RawByte(',') } - if v69 == nil { + out.Int64(int64(v21)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RuleMatch) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RuleMatch) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RuleMatch) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RuleMatch) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(in *jlexer.Lexer, out *Rule) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "selectorList": + if in.IsNull() { + in.Skip() + out.SelectorList = nil + } else { + if out.SelectorList == nil { + out.SelectorList = new(SelectorList) + } + (*out.SelectorList).UnmarshalEasyJSON(in) + } + case "origin": + (out.Origin).UnmarshalEasyJSON(in) + case "style": + if in.IsNull() { + in.Skip() + out.Style = nil + } else { + if out.Style == nil { + out.Style = new(Style) + } + (*out.Style).UnmarshalEasyJSON(in) + } + case "media": + if in.IsNull() { + in.Skip() + out.Media = nil + } else { + in.Delim('[') + if out.Media == nil { + if !in.IsDelim(']') { + out.Media = make([]*Media, 0, 8) + } else { + out.Media = []*Media{} + } + } else { + out.Media = (out.Media)[:0] + } + for !in.IsDelim(']') { + var v22 *Media + if in.IsNull() { + in.Skip() + v22 = nil + } else { + if v22 == nil { + v22 = new(Media) + } + (*v22).UnmarshalEasyJSON(in) + } + out.Media = append(out.Media, v22) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(out *jwriter.Writer, in Rule) { + out.RawByte('{') + first := true + _ = first + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if in.SelectorList != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selectorList\":") + if in.SelectorList == nil { + out.RawString("null") + } else { + (*in.SelectorList).MarshalEasyJSON(out) + } + } + if in.Origin != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + (in.Origin).MarshalEasyJSON(out) + } + if in.Style != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"style\":") + if in.Style == nil { + out.RawString("null") + } else { + (*in.Style).MarshalEasyJSON(out) + } + } + if len(in.Media) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"media\":") + if in.Media == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v23, v24 := range in.Media { + if v23 > 0 { + out.RawByte(',') + } + if v24 == nil { out.RawString("null") } else { - (*v69).MarshalEasyJSON(out) + (*v24).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5818,29 +2498,811 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) { +func (v Rule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v) +func (v Rule) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error { +func (v *Rule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v) +func (v *Rule) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss23(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(in *jlexer.Lexer, out *PseudoElementMatches) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "pseudoType": + (out.PseudoType).UnmarshalEasyJSON(in) + case "matches": + if in.IsNull() { + in.Skip() + out.Matches = nil + } else { + in.Delim('[') + if out.Matches == nil { + if !in.IsDelim(']') { + out.Matches = make([]*RuleMatch, 0, 8) + } else { + out.Matches = []*RuleMatch{} + } + } else { + out.Matches = (out.Matches)[:0] + } + for !in.IsDelim(']') { + var v25 *RuleMatch + if in.IsNull() { + in.Skip() + v25 = nil + } else { + if v25 == nil { + v25 = new(RuleMatch) + } + (*v25).UnmarshalEasyJSON(in) + } + out.Matches = append(out.Matches, v25) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(out *jwriter.Writer, in PseudoElementMatches) { + out.RawByte('{') + first := true + _ = first + if in.PseudoType != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pseudoType\":") + (in.PseudoType).MarshalEasyJSON(out) + } + if len(in.Matches) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"matches\":") + if in.Matches == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v26, v27 := range in.Matches { + if v26 > 0 { + out.RawByte(',') + } + if v27 == nil { + out.RawString("null") + } else { + (*v27).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PseudoElementMatches) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PseudoElementMatches) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PseudoElementMatches) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PseudoElementMatches) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(in *jlexer.Lexer, out *Property) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "important": + out.Important = bool(in.Bool()) + case "implicit": + out.Implicit = bool(in.Bool()) + case "text": + out.Text = string(in.String()) + case "parsedOk": + out.ParsedOk = bool(in.Bool()) + case "disabled": + out.Disabled = bool(in.Bool()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(out *jwriter.Writer, in Property) { + out.RawByte('{') + first := true + _ = first + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Value != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + } + if in.Important { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"important\":") + out.Bool(bool(in.Important)) + } + if in.Implicit { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"implicit\":") + out.Bool(bool(in.Implicit)) + } + if in.Text != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + } + if in.ParsedOk { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"parsedOk\":") + out.Bool(bool(in.ParsedOk)) + } + if in.Disabled { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"disabled\":") + out.Bool(bool(in.Disabled)) + } + if in.Range != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Property) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Property) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Property) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Property) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(in *jlexer.Lexer, out *PlatformFontUsage) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "familyName": + out.FamilyName = string(in.String()) + case "isCustomFont": + out.IsCustomFont = bool(in.Bool()) + case "glyphCount": + out.GlyphCount = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(out *jwriter.Writer, in PlatformFontUsage) { + out.RawByte('{') + first := true + _ = first + if in.FamilyName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"familyName\":") + out.String(string(in.FamilyName)) + } + if in.IsCustomFont { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isCustomFont\":") + out.Bool(bool(in.IsCustomFont)) + } + if in.GlyphCount != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"glyphCount\":") + out.Float64(float64(in.GlyphCount)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PlatformFontUsage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PlatformFontUsage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PlatformFontUsage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PlatformFontUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(in *jlexer.Lexer, out *MediaQueryExpression) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "value": + out.Value = float64(in.Float64()) + case "unit": + out.Unit = string(in.String()) + case "feature": + out.Feature = string(in.String()) + case "valueRange": + if in.IsNull() { + in.Skip() + out.ValueRange = nil + } else { + if out.ValueRange == nil { + out.ValueRange = new(SourceRange) + } + (*out.ValueRange).UnmarshalEasyJSON(in) + } + case "computedLength": + out.ComputedLength = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(out *jwriter.Writer, in MediaQueryExpression) { + out.RawByte('{') + first := true + _ = first + if in.Value != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.Float64(float64(in.Value)) + } + if in.Unit != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"unit\":") + out.String(string(in.Unit)) + } + if in.Feature != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"feature\":") + out.String(string(in.Feature)) + } + if in.ValueRange != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"valueRange\":") + if in.ValueRange == nil { + out.RawString("null") + } else { + (*in.ValueRange).MarshalEasyJSON(out) + } + } + if in.ComputedLength != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"computedLength\":") + out.Float64(float64(in.ComputedLength)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MediaQueryExpression) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MediaQueryExpression) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss27(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MediaQueryExpression) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MediaQueryExpression) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(in *jlexer.Lexer, out *MediaQuery) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "expressions": + if in.IsNull() { + in.Skip() + out.Expressions = nil + } else { + in.Delim('[') + if out.Expressions == nil { + if !in.IsDelim(']') { + out.Expressions = make([]*MediaQueryExpression, 0, 8) + } else { + out.Expressions = []*MediaQueryExpression{} + } + } else { + out.Expressions = (out.Expressions)[:0] + } + for !in.IsDelim(']') { + var v28 *MediaQueryExpression + if in.IsNull() { + in.Skip() + v28 = nil + } else { + if v28 == nil { + v28 = new(MediaQueryExpression) + } + (*v28).UnmarshalEasyJSON(in) + } + out.Expressions = append(out.Expressions, v28) + in.WantComma() + } + in.Delim(']') + } + case "active": + out.Active = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(out *jwriter.Writer, in MediaQuery) { + out.RawByte('{') + first := true + _ = first + if len(in.Expressions) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expressions\":") + if in.Expressions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v29, v30 := range in.Expressions { + if v29 > 0 { + out.RawByte(',') + } + if v30 == nil { + out.RawString("null") + } else { + (*v30).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.Active { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"active\":") + out.Bool(bool(in.Active)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MediaQuery) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MediaQuery) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MediaQuery) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MediaQuery) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(in *jlexer.Lexer, out *Media) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "text": + out.Text = string(in.String()) + case "source": + (out.Source).UnmarshalEasyJSON(in) + case "sourceURL": + out.SourceURL = string(in.String()) + case "range": + if in.IsNull() { + in.Skip() + out.Range = nil + } else { + if out.Range == nil { + out.Range = new(SourceRange) + } + (*out.Range).UnmarshalEasyJSON(in) + } + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "mediaList": + if in.IsNull() { + in.Skip() + out.MediaList = nil + } else { + in.Delim('[') + if out.MediaList == nil { + if !in.IsDelim(']') { + out.MediaList = make([]*MediaQuery, 0, 8) + } else { + out.MediaList = []*MediaQuery{} + } + } else { + out.MediaList = (out.MediaList)[:0] + } + for !in.IsDelim(']') { + var v31 *MediaQuery + if in.IsNull() { + in.Skip() + v31 = nil + } else { + if v31 == nil { + v31 = new(MediaQuery) + } + (*v31).UnmarshalEasyJSON(in) + } + out.MediaList = append(out.MediaList, v31) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(out *jwriter.Writer, in Media) { + out.RawByte('{') + first := true + _ = first + if in.Text != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + } + if in.Source != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"source\":") + (in.Source).MarshalEasyJSON(out) + } + if in.SourceURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sourceURL\":") + out.String(string(in.SourceURL)) + } + if in.Range != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"range\":") + if in.Range == nil { + out.RawString("null") + } else { + (*in.Range).MarshalEasyJSON(out) + } + } + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if len(in.MediaList) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"mediaList\":") + if in.MediaList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v32, v33 := range in.MediaList { + if v32 > 0 { + out.RawByte(',') + } + if v33 == nil { + out.RawString("null") + } else { + (*v33).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Media) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Media) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss29(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Media) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Media) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(in *jlexer.Lexer, out *LayoutTreeNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5861,6 +3323,51 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *G switch key { case "nodeId": (out.NodeID).UnmarshalEasyJSON(in) + case "boundingBox": + if in.IsNull() { + in.Skip() + out.BoundingBox = nil + } else { + if out.BoundingBox == nil { + out.BoundingBox = new(dom.Rect) + } + (*out.BoundingBox).UnmarshalEasyJSON(in) + } + case "layoutText": + out.LayoutText = string(in.String()) + case "inlineTextNodes": + if in.IsNull() { + in.Skip() + out.InlineTextNodes = nil + } else { + in.Delim('[') + if out.InlineTextNodes == nil { + if !in.IsDelim(']') { + out.InlineTextNodes = make([]*InlineTextBox, 0, 8) + } else { + out.InlineTextNodes = []*InlineTextBox{} + } + } else { + out.InlineTextNodes = (out.InlineTextNodes)[:0] + } + for !in.IsDelim(']') { + var v34 *InlineTextBox + if in.IsNull() { + in.Skip() + v34 = nil + } else { + if v34 == nil { + v34 = new(InlineTextBox) + } + (*v34).UnmarshalEasyJSON(in) + } + out.InlineTextNodes = append(out.InlineTextNodes, v34) + in.WantComma() + } + in.Delim(']') + } + case "styleIndex": + out.StyleIndex = int64(in.Int64()) default: in.SkipRecursive() } @@ -5871,43 +3378,96 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(out *jwriter.Writer, in GetPlatformFontsForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(out *jwriter.Writer, in LayoutTreeNode) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + if in.BoundingBox != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"boundingBox\":") + if in.BoundingBox == nil { + out.RawString("null") + } else { + (*in.BoundingBox).MarshalEasyJSON(out) + } + } + if in.LayoutText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"layoutText\":") + out.String(string(in.LayoutText)) + } + if len(in.InlineTextNodes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"inlineTextNodes\":") + if in.InlineTextNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v35, v36 := range in.InlineTextNodes { + if v35 > 0 { + out.RawByte(',') + } + if v36 == nil { + out.RawString("null") + } else { + (*v36).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.StyleIndex != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleIndex\":") + out.Int64(int64(in.StyleIndex)) } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) { +func (v LayoutTreeNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v) +func (v LayoutTreeNode) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error { +func (v *LayoutTreeNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v) +func (v *LayoutTreeNode) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss30(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(in *jlexer.Lexer, out *KeyframesRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5926,29 +3486,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *G continue } switch key { - case "computedStyle": + case "animationName": if in.IsNull() { in.Skip() - out.ComputedStyle = nil + out.AnimationName = nil + } else { + if out.AnimationName == nil { + out.AnimationName = new(Value) + } + (*out.AnimationName).UnmarshalEasyJSON(in) + } + case "keyframes": + if in.IsNull() { + in.Skip() + out.Keyframes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.ComputedStyle = make([]*ComputedProperty, 0, 8) + if out.Keyframes == nil { + if !in.IsDelim(']') { + out.Keyframes = make([]*KeyframeRule, 0, 8) + } else { + out.Keyframes = []*KeyframeRule{} + } } else { - out.ComputedStyle = []*ComputedProperty{} + out.Keyframes = (out.Keyframes)[:0] } for !in.IsDelim(']') { - var v70 *ComputedProperty + var v37 *KeyframeRule if in.IsNull() { in.Skip() - v70 = nil + v37 = nil } else { - if v70 == nil { - v70 = new(ComputedProperty) + if v37 == nil { + v37 = new(KeyframeRule) } - (*v70).UnmarshalEasyJSON(in) + (*v37).UnmarshalEasyJSON(in) } - out.ComputedStyle = append(out.ComputedStyle, v70) + out.Keyframes = append(out.Keyframes, v37) in.WantComma() } in.Delim(']') @@ -5963,28 +3537,40 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(out *jwriter.Writer, in KeyframesRule) { out.RawByte('{') first := true _ = first - if len(in.ComputedStyle) != 0 { + if in.AnimationName != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"computedStyle\":") - if in.ComputedStyle == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"animationName\":") + if in.AnimationName == nil { + out.RawString("null") + } else { + (*in.AnimationName).MarshalEasyJSON(out) + } + } + if len(in.Keyframes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyframes\":") + if in.Keyframes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v71, v72 := range in.ComputedStyle { - if v71 > 0 { + for v38, v39 := range in.Keyframes { + if v38 > 0 { out.RawByte(',') } - if v72 == nil { + if v39 == nil { out.RawString("null") } else { - (*v72).MarshalEasyJSON(out) + (*v39).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5994,29 +3580,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) { +func (v KeyframesRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v) +func (v KeyframesRule) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error { +func (v *KeyframesRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v) +func (v *KeyframesRule) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(in *jlexer.Lexer, out *KeyframeRule) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6035,8 +3621,30 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *G continue } switch key { - case "nodeId": - (out.NodeID).UnmarshalEasyJSON(in) + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "origin": + (out.Origin).UnmarshalEasyJSON(in) + case "keyText": + if in.IsNull() { + in.Skip() + out.KeyText = nil + } else { + if out.KeyText == nil { + out.KeyText = new(Value) + } + (*out.KeyText).UnmarshalEasyJSON(in) + } + case "style": + if in.IsNull() { + in.Skip() + out.Style = nil + } else { + if out.Style == nil { + out.Style = new(Style) + } + (*out.Style).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -6047,43 +3655,178 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in GetComputedStyleForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(out *jwriter.Writer, in KeyframeRule) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + if in.Origin != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + (in.Origin).MarshalEasyJSON(out) + } + if in.KeyText != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyText\":") + if in.KeyText == nil { + out.RawString("null") + } else { + (*in.KeyText).MarshalEasyJSON(out) + } + } + if in.Style != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"style\":") + if in.Style == nil { + out.RawString("null") + } else { + (*in.Style).MarshalEasyJSON(out) + } } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) { +func (v KeyframeRule) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v) +func (v KeyframeRule) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error { +func (v *KeyframeRule) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v) +func (v *KeyframeRule) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss32(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(in *jlexer.Lexer, out *InlineTextBox) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "boundingBox": + if in.IsNull() { + in.Skip() + out.BoundingBox = nil + } else { + if out.BoundingBox == nil { + out.BoundingBox = new(dom.Rect) + } + (*out.BoundingBox).UnmarshalEasyJSON(in) + } + case "startCharacterIndex": + out.StartCharacterIndex = int64(in.Int64()) + case "numCharacters": + out.NumCharacters = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(out *jwriter.Writer, in InlineTextBox) { + out.RawByte('{') + first := true + _ = first + if in.BoundingBox != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"boundingBox\":") + if in.BoundingBox == nil { + out.RawString("null") + } else { + (*in.BoundingBox).MarshalEasyJSON(out) + } + } + if in.StartCharacterIndex != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startCharacterIndex\":") + out.Int64(int64(in.StartCharacterIndex)) + } + if in.NumCharacters != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"numCharacters\":") + out.Int64(int64(in.NumCharacters)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v InlineTextBox) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v InlineTextBox) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *InlineTextBox) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *InlineTextBox) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(in *jlexer.Lexer, out *InheritedStyleEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6112,15 +3855,36 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *G } (*out.InlineStyle).UnmarshalEasyJSON(in) } - case "attributesStyle": + case "matchedCSSRules": if in.IsNull() { in.Skip() - out.AttributesStyle = nil + out.MatchedCSSRules = nil } else { - if out.AttributesStyle == nil { - out.AttributesStyle = new(Style) + in.Delim('[') + if out.MatchedCSSRules == nil { + if !in.IsDelim(']') { + out.MatchedCSSRules = make([]*RuleMatch, 0, 8) + } else { + out.MatchedCSSRules = []*RuleMatch{} + } + } else { + out.MatchedCSSRules = (out.MatchedCSSRules)[:0] } - (*out.AttributesStyle).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v40 *RuleMatch + if in.IsNull() { + in.Skip() + v40 = nil + } else { + if v40 == nil { + v40 = new(RuleMatch) + } + (*v40).UnmarshalEasyJSON(in) + } + out.MatchedCSSRules = append(out.MatchedCSSRules, v40) + in.WantComma() + } + in.Delim(']') } default: in.SkipRecursive() @@ -6132,7 +3896,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(out *jwriter.Writer, in InheritedStyleEntry) { out.RawByte('{') first := true _ = first @@ -6148,45 +3912,305 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in (*in.InlineStyle).MarshalEasyJSON(out) } } - if in.AttributesStyle != nil { + if len(in.MatchedCSSRules) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"attributesStyle\":") - if in.AttributesStyle == nil { + out.RawString("\"matchedCSSRules\":") + if in.MatchedCSSRules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { - (*in.AttributesStyle).MarshalEasyJSON(out) + out.RawByte('[') + for v41, v42 := range in.MatchedCSSRules { + if v41 > 0 { + out.RawByte(',') + } + if v42 == nil { + out.RawString("null") + } else { + (*v42).MarshalEasyJSON(out) + } + } + out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) { +func (v InheritedStyleEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v) +func (v InheritedStyleEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error { +func (v *InheritedStyleEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v) +func (v *InheritedStyleEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(in *jlexer.Lexer, out *GetStyleSheetTextReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "text": + out.Text = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(out *jwriter.Writer, in GetStyleSheetTextReturns) { + out.RawByte('{') + first := true + _ = first + if in.Text != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetStyleSheetTextReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetStyleSheetTextReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetStyleSheetTextReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetStyleSheetTextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(in *jlexer.Lexer, out *GetStyleSheetTextParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(out *jwriter.Writer, in GetStyleSheetTextParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetStyleSheetTextParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetStyleSheetTextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetStyleSheetTextParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetStyleSheetTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(in *jlexer.Lexer, out *GetPlatformFontsForNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "fonts": + if in.IsNull() { + in.Skip() + out.Fonts = nil + } else { + in.Delim('[') + if out.Fonts == nil { + if !in.IsDelim(']') { + out.Fonts = make([]*PlatformFontUsage, 0, 8) + } else { + out.Fonts = []*PlatformFontUsage{} + } + } else { + out.Fonts = (out.Fonts)[:0] + } + for !in.IsDelim(']') { + var v43 *PlatformFontUsage + if in.IsNull() { + in.Skip() + v43 = nil + } else { + if v43 == nil { + v43 = new(PlatformFontUsage) + } + (*v43).UnmarshalEasyJSON(in) + } + out.Fonts = append(out.Fonts, v43) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(out *jwriter.Writer, in GetPlatformFontsForNodeReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Fonts) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"fonts\":") + if in.Fonts == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v44, v45 := range in.Fonts { + if v44 > 0 { + out.RawByte(',') + } + if v45 == nil { + out.RawString("null") + } else { + (*v45).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPlatformFontsForNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPlatformFontsForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPlatformFontsForNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPlatformFontsForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss37(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(in *jlexer.Lexer, out *GetPlatformFontsForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6217,7 +4241,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in GetInlineStylesForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(out *jwriter.Writer, in GetPlatformFontsForNodeParams) { out.RawByte('{') first := true _ = first @@ -6231,29 +4255,201 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) { +func (v GetPlatformFontsForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v) +func (v GetPlatformFontsForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error { +func (v *GetPlatformFontsForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v) +func (v *GetPlatformFontsForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(in *jlexer.Lexer, out *GetMediaQueriesReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "medias": + if in.IsNull() { + in.Skip() + out.Medias = nil + } else { + in.Delim('[') + if out.Medias == nil { + if !in.IsDelim(']') { + out.Medias = make([]*Media, 0, 8) + } else { + out.Medias = []*Media{} + } + } else { + out.Medias = (out.Medias)[:0] + } + for !in.IsDelim(']') { + var v46 *Media + if in.IsNull() { + in.Skip() + v46 = nil + } else { + if v46 == nil { + v46 = new(Media) + } + (*v46).UnmarshalEasyJSON(in) + } + out.Medias = append(out.Medias, v46) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(out *jwriter.Writer, in GetMediaQueriesReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Medias) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"medias\":") + if in.Medias == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v47, v48 := range in.Medias { + if v47 > 0 { + out.RawByte(',') + } + if v48 == nil { + out.RawString("null") + } else { + (*v48).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetMediaQueriesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetMediaQueriesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetMediaQueriesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetMediaQueriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(in *jlexer.Lexer, out *GetMediaQueriesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(out *jwriter.Writer, in GetMediaQueriesParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetMediaQueriesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetMediaQueriesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetMediaQueriesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetMediaQueriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss40(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(in *jlexer.Lexer, out *GetMatchedStylesForNodeReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6298,23 +4494,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *G out.MatchedCSSRules = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.MatchedCSSRules = make([]*RuleMatch, 0, 8) + if out.MatchedCSSRules == nil { + if !in.IsDelim(']') { + out.MatchedCSSRules = make([]*RuleMatch, 0, 8) + } else { + out.MatchedCSSRules = []*RuleMatch{} + } } else { - out.MatchedCSSRules = []*RuleMatch{} + out.MatchedCSSRules = (out.MatchedCSSRules)[:0] } for !in.IsDelim(']') { - var v73 *RuleMatch + var v49 *RuleMatch if in.IsNull() { in.Skip() - v73 = nil + v49 = nil } else { - if v73 == nil { - v73 = new(RuleMatch) + if v49 == nil { + v49 = new(RuleMatch) } - (*v73).UnmarshalEasyJSON(in) + (*v49).UnmarshalEasyJSON(in) } - out.MatchedCSSRules = append(out.MatchedCSSRules, v73) + out.MatchedCSSRules = append(out.MatchedCSSRules, v49) in.WantComma() } in.Delim(']') @@ -6325,23 +4525,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *G out.PseudoElements = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.PseudoElements = make([]*PseudoElementMatches, 0, 8) + if out.PseudoElements == nil { + if !in.IsDelim(']') { + out.PseudoElements = make([]*PseudoElementMatches, 0, 8) + } else { + out.PseudoElements = []*PseudoElementMatches{} + } } else { - out.PseudoElements = []*PseudoElementMatches{} + out.PseudoElements = (out.PseudoElements)[:0] } for !in.IsDelim(']') { - var v74 *PseudoElementMatches + var v50 *PseudoElementMatches if in.IsNull() { in.Skip() - v74 = nil + v50 = nil } else { - if v74 == nil { - v74 = new(PseudoElementMatches) + if v50 == nil { + v50 = new(PseudoElementMatches) } - (*v74).UnmarshalEasyJSON(in) + (*v50).UnmarshalEasyJSON(in) } - out.PseudoElements = append(out.PseudoElements, v74) + out.PseudoElements = append(out.PseudoElements, v50) in.WantComma() } in.Delim(']') @@ -6352,23 +4556,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *G out.Inherited = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Inherited = make([]*InheritedStyleEntry, 0, 8) + if out.Inherited == nil { + if !in.IsDelim(']') { + out.Inherited = make([]*InheritedStyleEntry, 0, 8) + } else { + out.Inherited = []*InheritedStyleEntry{} + } } else { - out.Inherited = []*InheritedStyleEntry{} + out.Inherited = (out.Inherited)[:0] } for !in.IsDelim(']') { - var v75 *InheritedStyleEntry + var v51 *InheritedStyleEntry if in.IsNull() { in.Skip() - v75 = nil + v51 = nil } else { - if v75 == nil { - v75 = new(InheritedStyleEntry) + if v51 == nil { + v51 = new(InheritedStyleEntry) } - (*v75).UnmarshalEasyJSON(in) + (*v51).UnmarshalEasyJSON(in) } - out.Inherited = append(out.Inherited, v75) + out.Inherited = append(out.Inherited, v51) in.WantComma() } in.Delim(']') @@ -6379,23 +4587,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *G out.CSSKeyframesRules = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.CSSKeyframesRules = make([]*KeyframesRule, 0, 8) + if out.CSSKeyframesRules == nil { + if !in.IsDelim(']') { + out.CSSKeyframesRules = make([]*KeyframesRule, 0, 8) + } else { + out.CSSKeyframesRules = []*KeyframesRule{} + } } else { - out.CSSKeyframesRules = []*KeyframesRule{} + out.CSSKeyframesRules = (out.CSSKeyframesRules)[:0] } for !in.IsDelim(']') { - var v76 *KeyframesRule + var v52 *KeyframesRule if in.IsNull() { in.Skip() - v76 = nil + v52 = nil } else { - if v76 == nil { - v76 = new(KeyframesRule) + if v52 == nil { + v52 = new(KeyframesRule) } - (*v76).UnmarshalEasyJSON(in) + (*v52).UnmarshalEasyJSON(in) } - out.CSSKeyframesRules = append(out.CSSKeyframesRules, v76) + out.CSSKeyframesRules = append(out.CSSKeyframesRules, v52) in.WantComma() } in.Delim(']') @@ -6410,7 +4622,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(out *jwriter.Writer, in GetMatchedStylesForNodeReturns) { out.RawByte('{') first := true _ = first @@ -6448,14 +4660,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v77, v78 := range in.MatchedCSSRules { - if v77 > 0 { + for v53, v54 := range in.MatchedCSSRules { + if v53 > 0 { out.RawByte(',') } - if v78 == nil { + if v54 == nil { out.RawString("null") } else { - (*v78).MarshalEasyJSON(out) + (*v54).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6471,14 +4683,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v79, v80 := range in.PseudoElements { - if v79 > 0 { + for v55, v56 := range in.PseudoElements { + if v55 > 0 { out.RawByte(',') } - if v80 == nil { + if v56 == nil { out.RawString("null") } else { - (*v80).MarshalEasyJSON(out) + (*v56).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6494,14 +4706,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v81, v82 := range in.Inherited { - if v81 > 0 { + for v57, v58 := range in.Inherited { + if v57 > 0 { out.RawByte(',') } - if v82 == nil { + if v58 == nil { out.RawString("null") } else { - (*v82).MarshalEasyJSON(out) + (*v58).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6517,14 +4729,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v83, v84 := range in.CSSKeyframesRules { - if v83 > 0 { + for v59, v60 := range in.CSSKeyframesRules { + if v59 > 0 { out.RawByte(',') } - if v84 == nil { + if v60 == nil { out.RawString("null") } else { - (*v84).MarshalEasyJSON(out) + (*v60).MarshalEasyJSON(out) } } out.RawByte(']') @@ -6536,27 +4748,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMatchedStylesForNodeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMatchedStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMatchedStylesForNodeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMatchedStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss41(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(in *jlexer.Lexer, out *GetMatchedStylesForNodeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6587,7 +4799,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in GetMatchedStylesForNodeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(out *jwriter.Writer, in GetMatchedStylesForNodeParams) { out.RawByte('{') first := true _ = first @@ -6603,27 +4815,1137 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetMatchedStylesForNodeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetMatchedStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetMatchedStylesForNodeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetMatchedStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(in *jlexer.Lexer, out *GetLayoutTreeAndStylesReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "layoutTreeNodes": + if in.IsNull() { + in.Skip() + out.LayoutTreeNodes = nil + } else { + in.Delim('[') + if out.LayoutTreeNodes == nil { + if !in.IsDelim(']') { + out.LayoutTreeNodes = make([]*LayoutTreeNode, 0, 8) + } else { + out.LayoutTreeNodes = []*LayoutTreeNode{} + } + } else { + out.LayoutTreeNodes = (out.LayoutTreeNodes)[:0] + } + for !in.IsDelim(']') { + var v61 *LayoutTreeNode + if in.IsNull() { + in.Skip() + v61 = nil + } else { + if v61 == nil { + v61 = new(LayoutTreeNode) + } + (*v61).UnmarshalEasyJSON(in) + } + out.LayoutTreeNodes = append(out.LayoutTreeNodes, v61) + in.WantComma() + } + in.Delim(']') + } + case "computedStyles": + if in.IsNull() { + in.Skip() + out.ComputedStyles = nil + } else { + in.Delim('[') + if out.ComputedStyles == nil { + if !in.IsDelim(']') { + out.ComputedStyles = make([]*ComputedStyle, 0, 8) + } else { + out.ComputedStyles = []*ComputedStyle{} + } + } else { + out.ComputedStyles = (out.ComputedStyles)[:0] + } + for !in.IsDelim(']') { + var v62 *ComputedStyle + if in.IsNull() { + in.Skip() + v62 = nil + } else { + if v62 == nil { + v62 = new(ComputedStyle) + } + (*v62).UnmarshalEasyJSON(in) + } + out.ComputedStyles = append(out.ComputedStyles, v62) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(out *jwriter.Writer, in GetLayoutTreeAndStylesReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.LayoutTreeNodes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"layoutTreeNodes\":") + if in.LayoutTreeNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v63, v64 := range in.LayoutTreeNodes { + if v63 > 0 { + out.RawByte(',') + } + if v64 == nil { + out.RawString("null") + } else { + (*v64).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if len(in.ComputedStyles) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"computedStyles\":") + if in.ComputedStyles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v65, v66 := range in.ComputedStyles { + if v65 > 0 { + out.RawByte(',') + } + if v66 == nil { + out.RawString("null") + } else { + (*v66).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayoutTreeAndStylesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutTreeAndStylesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutTreeAndStylesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutTreeAndStylesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss43(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(in *jlexer.Lexer, out *GetLayoutTreeAndStylesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "computedStyleWhitelist": + if in.IsNull() { + in.Skip() + out.ComputedStyleWhitelist = nil + } else { + in.Delim('[') + if out.ComputedStyleWhitelist == nil { + if !in.IsDelim(']') { + out.ComputedStyleWhitelist = make([]string, 0, 4) + } else { + out.ComputedStyleWhitelist = []string{} + } + } else { + out.ComputedStyleWhitelist = (out.ComputedStyleWhitelist)[:0] + } + for !in.IsDelim(']') { + var v67 string + v67 = string(in.String()) + out.ComputedStyleWhitelist = append(out.ComputedStyleWhitelist, v67) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(out *jwriter.Writer, in GetLayoutTreeAndStylesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"computedStyleWhitelist\":") + if in.ComputedStyleWhitelist == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v68, v69 := range in.ComputedStyleWhitelist { + if v68 > 0 { + out.RawByte(',') + } + out.String(string(v69)) + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayoutTreeAndStylesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutTreeAndStylesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss44(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutTreeAndStylesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutTreeAndStylesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss44(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(in *jlexer.Lexer, out *GetInlineStylesForNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "inlineStyle": + if in.IsNull() { + in.Skip() + out.InlineStyle = nil + } else { + if out.InlineStyle == nil { + out.InlineStyle = new(Style) + } + (*out.InlineStyle).UnmarshalEasyJSON(in) + } + case "attributesStyle": + if in.IsNull() { + in.Skip() + out.AttributesStyle = nil + } else { + if out.AttributesStyle == nil { + out.AttributesStyle = new(Style) + } + (*out.AttributesStyle).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(out *jwriter.Writer, in GetInlineStylesForNodeReturns) { + out.RawByte('{') + first := true + _ = first + if in.InlineStyle != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"inlineStyle\":") + if in.InlineStyle == nil { + out.RawString("null") + } else { + (*in.InlineStyle).MarshalEasyJSON(out) + } + } + if in.AttributesStyle != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"attributesStyle\":") + if in.AttributesStyle == nil { + out.RawString("null") + } else { + (*in.AttributesStyle).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetInlineStylesForNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetInlineStylesForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss45(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetInlineStylesForNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetInlineStylesForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss45(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(in *jlexer.Lexer, out *GetInlineStylesForNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(out *jwriter.Writer, in GetInlineStylesForNodeParams) { + 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 GetInlineStylesForNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetInlineStylesForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss46(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetInlineStylesForNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetInlineStylesForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss46(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(in *jlexer.Lexer, out *GetComputedStyleForNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "computedStyle": + if in.IsNull() { + in.Skip() + out.ComputedStyle = nil + } else { + in.Delim('[') + if out.ComputedStyle == nil { + if !in.IsDelim(']') { + out.ComputedStyle = make([]*ComputedProperty, 0, 8) + } else { + out.ComputedStyle = []*ComputedProperty{} + } + } else { + out.ComputedStyle = (out.ComputedStyle)[:0] + } + for !in.IsDelim(']') { + var v70 *ComputedProperty + if in.IsNull() { + in.Skip() + v70 = nil + } else { + if v70 == nil { + v70 = new(ComputedProperty) + } + (*v70).UnmarshalEasyJSON(in) + } + out.ComputedStyle = append(out.ComputedStyle, v70) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(out *jwriter.Writer, in GetComputedStyleForNodeReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.ComputedStyle) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"computedStyle\":") + if in.ComputedStyle == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v71, v72 := range in.ComputedStyle { + if v71 > 0 { + out.RawByte(',') + } + if v72 == nil { + out.RawString("null") + } else { + (*v72).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetComputedStyleForNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetComputedStyleForNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss47(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetComputedStyleForNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetComputedStyleForNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss47(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(in *jlexer.Lexer, out *GetComputedStyleForNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(out *jwriter.Writer, in GetComputedStyleForNodeParams) { + 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 GetComputedStyleForNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetComputedStyleForNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetComputedStyleForNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetComputedStyleForNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(in *jlexer.Lexer, out *GetBackgroundColorsReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "backgroundColors": + if in.IsNull() { + in.Skip() + out.BackgroundColors = nil + } else { + in.Delim('[') + if out.BackgroundColors == nil { + if !in.IsDelim(']') { + out.BackgroundColors = make([]string, 0, 4) + } else { + out.BackgroundColors = []string{} + } + } else { + out.BackgroundColors = (out.BackgroundColors)[:0] + } + for !in.IsDelim(']') { + var v73 string + v73 = string(in.String()) + out.BackgroundColors = append(out.BackgroundColors, v73) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(out *jwriter.Writer, in GetBackgroundColorsReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.BackgroundColors) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backgroundColors\":") + if in.BackgroundColors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v74, v75 := range in.BackgroundColors { + if v74 > 0 { + out.RawByte(',') + } + out.String(string(v75)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetBackgroundColorsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBackgroundColorsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss49(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBackgroundColorsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBackgroundColorsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss49(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(in *jlexer.Lexer, out *GetBackgroundColorsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(out *jwriter.Writer, in GetBackgroundColorsParams) { + 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 GetBackgroundColorsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetBackgroundColorsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss50(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetBackgroundColorsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetBackgroundColorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss50(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(in *jlexer.Lexer, out *ForcePseudoStateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "forcedPseudoClasses": + if in.IsNull() { + in.Skip() + out.ForcedPseudoClasses = nil + } else { + in.Delim('[') + if out.ForcedPseudoClasses == nil { + if !in.IsDelim(']') { + out.ForcedPseudoClasses = make([]PseudoClass, 0, 4) + } else { + out.ForcedPseudoClasses = []PseudoClass{} + } + } else { + out.ForcedPseudoClasses = (out.ForcedPseudoClasses)[:0] + } + for !in.IsDelim(']') { + var v76 PseudoClass + (v76).UnmarshalEasyJSON(in) + out.ForcedPseudoClasses = append(out.ForcedPseudoClasses, v76) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(out *jwriter.Writer, in ForcePseudoStateParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"forcedPseudoClasses\":") + if in.ForcedPseudoClasses == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v77, v78 := range in.ForcedPseudoClasses { + if v77 > 0 { + out.RawByte(',') + } + (v78).MarshalEasyJSON(out) + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ForcePseudoStateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ForcePseudoStateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss51(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ForcePseudoStateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ForcePseudoStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss51(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(in *jlexer.Lexer, out *EventStyleSheetRemoved) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(out *jwriter.Writer, in EventStyleSheetRemoved) { + out.RawByte('{') + first := true + _ = first + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventStyleSheetRemoved) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventStyleSheetRemoved) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss52(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventStyleSheetRemoved) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventStyleSheetRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss52(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(in *jlexer.Lexer, out *EventStyleSheetChanged) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(out *jwriter.Writer, in EventStyleSheetChanged) { + out.RawByte('{') + first := true + _ = first + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventStyleSheetChanged) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventStyleSheetChanged) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss53(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventStyleSheetChanged) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventStyleSheetChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss53(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(in *jlexer.Lexer, out *EventStyleSheetAdded) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "header": + if in.IsNull() { + in.Skip() + out.Header = nil + } else { + if out.Header == nil { + out.Header = new(StyleSheetHeader) + } + (*out.Header).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(out *jwriter.Writer, in EventStyleSheetAdded) { + out.RawByte('{') + first := true + _ = first + if in.Header != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"header\":") + if in.Header == nil { + out.RawString("null") + } else { + (*in.Header).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventStyleSheetAdded) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventStyleSheetAdded) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss54(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventStyleSheetAdded) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventStyleSheetAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss54(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(in *jlexer.Lexer, out *EventMediaQueryResultChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6652,7 +5974,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(in *jlexer.Lexer, out *D in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(out *jwriter.Writer, in EventMediaQueryResultChanged) { out.RawByte('{') first := true _ = first @@ -6660,29 +5982,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v DisableParams) MarshalJSON() ([]byte, error) { +func (v EventMediaQueryResultChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(w, v) +func (v EventMediaQueryResultChanged) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *EventMediaQueryResultChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(l, v) +func (v *EventMediaQueryResultChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss55(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(in *jlexer.Lexer, out *EventFontsUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6711,7 +6033,66 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(out *jwriter.Writer, in EventFontsUpdated) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventFontsUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFontsUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFontsUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFontsUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -6721,23 +6102,754 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss57(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss57(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss58(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss58(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(in *jlexer.Lexer, out *CreateStyleSheetReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(out *jwriter.Writer, in CreateStyleSheetReturns) { + out.RawByte('{') + first := true + _ = first + if in.StyleSheetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateStyleSheetReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateStyleSheetReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss59(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateStyleSheetReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateStyleSheetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss59(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(in *jlexer.Lexer, out *CreateStyleSheetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(out *jwriter.Writer, in CreateStyleSheetParams) { + 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 CreateStyleSheetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateStyleSheetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss60(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateStyleSheetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateStyleSheetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss60(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(in *jlexer.Lexer, out *ComputedStyle) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "properties": + if in.IsNull() { + in.Skip() + out.Properties = nil + } else { + in.Delim('[') + if out.Properties == nil { + if !in.IsDelim(']') { + out.Properties = make([]*ComputedProperty, 0, 8) + } else { + out.Properties = []*ComputedProperty{} + } + } else { + out.Properties = (out.Properties)[:0] + } + for !in.IsDelim(']') { + var v79 *ComputedProperty + if in.IsNull() { + in.Skip() + v79 = nil + } else { + if v79 == nil { + v79 = new(ComputedProperty) + } + (*v79).UnmarshalEasyJSON(in) + } + out.Properties = append(out.Properties, v79) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(out *jwriter.Writer, in ComputedStyle) { + out.RawByte('{') + first := true + _ = first + if len(in.Properties) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"properties\":") + if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v80, v81 := range in.Properties { + if v80 > 0 { + out.RawByte(',') + } + if v81 == nil { + out.RawString("null") + } else { + (*v81).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ComputedStyle) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ComputedStyle) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss61(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ComputedStyle) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ComputedStyle) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss61(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(in *jlexer.Lexer, out *ComputedProperty) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(out *jwriter.Writer, in ComputedProperty) { + out.RawByte('{') + first := true + _ = first + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Value != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ComputedProperty) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ComputedProperty) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss62(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ComputedProperty) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ComputedProperty) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss62(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(in *jlexer.Lexer, out *CollectClassNamesReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "classNames": + if in.IsNull() { + in.Skip() + out.ClassNames = nil + } else { + in.Delim('[') + if out.ClassNames == nil { + if !in.IsDelim(']') { + out.ClassNames = make([]string, 0, 4) + } else { + out.ClassNames = []string{} + } + } else { + out.ClassNames = (out.ClassNames)[:0] + } + for !in.IsDelim(']') { + var v82 string + v82 = string(in.String()) + out.ClassNames = append(out.ClassNames, v82) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(out *jwriter.Writer, in CollectClassNamesReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.ClassNames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"classNames\":") + if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v83, v84 := range in.ClassNames { + if v83 > 0 { + out.RawByte(',') + } + out.String(string(v84)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CollectClassNamesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CollectClassNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss63(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CollectClassNamesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CollectClassNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss63(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(in *jlexer.Lexer, out *CollectClassNamesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(out *jwriter.Writer, in CollectClassNamesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CollectClassNamesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CollectClassNamesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss64(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CollectClassNamesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CollectClassNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss64(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(in *jlexer.Lexer, out *AddRuleReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "rule": + if in.IsNull() { + in.Skip() + out.Rule = nil + } else { + if out.Rule == nil { + out.Rule = new(Rule) + } + (*out.Rule).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(out *jwriter.Writer, in AddRuleReturns) { + out.RawByte('{') + first := true + _ = first + if in.Rule != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"rule\":") + if in.Rule == nil { + out.RawString("null") + } else { + (*in.Rule).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddRuleReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddRuleReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss65(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddRuleReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AddRuleReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss65(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(in *jlexer.Lexer, out *AddRuleParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "styleSheetId": + out.StyleSheetID = StyleSheetID(in.String()) + case "ruleText": + out.RuleText = string(in.String()) + case "location": + if in.IsNull() { + in.Skip() + out.Location = nil + } else { + if out.Location == nil { + out.Location = new(SourceRange) + } + (*out.Location).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(out *jwriter.Writer, in AddRuleParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"styleSheetId\":") + out.String(string(in.StyleSheetID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ruleText\":") + out.String(string(in.RuleText)) + 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 AddRuleParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddRuleParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss66(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddRuleParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AddRuleParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss66(l, v) } diff --git a/cdp/database/easyjson.go b/cdp/database/easyjson.go index 62ef1c8..fa68999 100644 --- a/cdp/database/easyjson.go +++ b/cdp/database/easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(in *jlexer.Lexer, out *Error) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(in *jlexer.Lexer, out *GetDatabaseTableNamesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -36,10 +36,29 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(in *jlexer.Lexer, out continue } switch key { - case "message": - out.Message = string(in.String()) - case "code": - out.Code = int64(in.Int64()) + 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 v1 string + v1 = string(in.String()) + out.TableNames = append(out.TableNames, v1) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -50,53 +69,56 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase(out *jwriter.Writer, in Error) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase(out *jwriter.Writer, in GetDatabaseTableNamesReturns) { out.RawByte('{') first := true _ = first - if in.Message != "" { + if len(in.TableNames) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"message\":") - out.String(string(in.Message)) - } - if in.Code != 0 { - if !first { - out.RawByte(',') + out.RawString("\"tableNames\":") + if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.TableNames { + if v2 > 0 { + out.RawByte(',') + } + out.String(string(v3)) + } + out.RawByte(']') } - first = false - out.RawString("\"code\":") - out.Int64(int64(in.Code)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Error) MarshalJSON() ([]byte, error) { +func (v GetDatabaseTableNamesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Error) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetDatabaseTableNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Error) UnmarshalJSON(data []byte) error { +func (v *GetDatabaseTableNamesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetDatabaseTableNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(in *jlexer.Lexer, out *Database) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(in *jlexer.Lexer, out *GetDatabaseTableNamesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -115,14 +137,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(in *jlexer.Lexer, ou continue } switch key { - case "id": - out.ID = ID(in.String()) - case "domain": - out.Domain = string(in.String()) - case "name": - out.Name = string(in.String()) - case "version": - out.Version = string(in.String()) + case "databaseId": + out.DatabaseID = ID(in.String()) default: in.SkipRecursive() } @@ -133,69 +149,283 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(out *jwriter.Writer, in Database) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(out *jwriter.Writer, in GetDatabaseTableNamesParams) { out.RawByte('{') first := true _ = first - if in.ID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"id\":") - out.String(string(in.ID)) - } - if in.Domain != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"domain\":") - out.String(string(in.Domain)) - } - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Version != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"version\":") - out.String(string(in.Version)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"databaseId\":") + out.String(string(in.DatabaseID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Database) MarshalJSON() ([]byte, error) { +func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Database) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Database) UnmarshalJSON(data []byte) error { +func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Database) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(in *jlexer.Lexer, out *EventAddDatabase) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(in *jlexer.Lexer, out *ExecuteSQLReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "columnNames": + if in.IsNull() { + in.Skip() + out.ColumnNames = nil + } else { + in.Delim('[') + if out.ColumnNames == nil { + if !in.IsDelim(']') { + out.ColumnNames = make([]string, 0, 4) + } else { + out.ColumnNames = []string{} + } + } else { + out.ColumnNames = (out.ColumnNames)[:0] + } + for !in.IsDelim(']') { + var v4 string + v4 = string(in.String()) + out.ColumnNames = append(out.ColumnNames, v4) + in.WantComma() + } + in.Delim(']') + } + case "values": + if in.IsNull() { + in.Skip() + out.Values = nil + } else { + in.Delim('[') + if out.Values == nil { + if !in.IsDelim(']') { + out.Values = make([]easyjson.RawMessage, 0, 2) + } else { + out.Values = []easyjson.RawMessage{} + } + } else { + out.Values = (out.Values)[:0] + } + for !in.IsDelim(']') { + var v5 easyjson.RawMessage + (v5).UnmarshalEasyJSON(in) + out.Values = append(out.Values, v5) + in.WantComma() + } + in.Delim(']') + } + case "sqlError": + if in.IsNull() { + in.Skip() + out.SQLError = nil + } else { + if out.SQLError == nil { + out.SQLError = new(Error) + } + (*out.SQLError).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer, in ExecuteSQLReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.ColumnNames) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"columnNames\":") + if in.ColumnNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.ColumnNames { + if v6 > 0 { + out.RawByte(',') + } + out.String(string(v7)) + } + out.RawByte(']') + } + } + if len(in.Values) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"values\":") + if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Values { + if v8 > 0 { + out.RawByte(',') + } + (v9).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + if in.SQLError != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sqlError\":") + if in.SQLError == nil { + out.RawString("null") + } else { + (*in.SQLError).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ExecuteSQLReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ExecuteSQLReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ExecuteSQLReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ExecuteSQLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(in *jlexer.Lexer, out *ExecuteSQLParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "databaseId": + out.DatabaseID = ID(in.String()) + case "query": + out.Query = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(out *jwriter.Writer, in ExecuteSQLParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"databaseId\":") + out.String(string(in.DatabaseID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"query\":") + out.String(string(in.Query)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ExecuteSQLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase4(in *jlexer.Lexer, out *EventAddDatabase) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -234,7 +464,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer, in EventAddDatabase) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(out *jwriter.Writer, in EventAddDatabase) { out.RawByte('{') first := true _ = first @@ -255,260 +485,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventAddDatabase) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventAddDatabase) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventAddDatabase) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAddDatabase) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(in *jlexer.Lexer, out *ExecuteSQLReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "columnNames": - if in.IsNull() { - in.Skip() - out.ColumnNames = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ColumnNames = make([]string, 0, 4) - } else { - out.ColumnNames = []string{} - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.ColumnNames = append(out.ColumnNames, v1) - in.WantComma() - } - in.Delim(']') - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Values = make([]easyjson.RawMessage, 0, 2) - } else { - out.Values = []easyjson.RawMessage{} - } - for !in.IsDelim(']') { - var v2 easyjson.RawMessage - (v2).UnmarshalEasyJSON(in) - out.Values = append(out.Values, v2) - in.WantComma() - } - in.Delim(']') - } - case "sqlError": - if in.IsNull() { - in.Skip() - out.SQLError = nil - } else { - if out.SQLError == nil { - out.SQLError = new(Error) - } - (*out.SQLError).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(out *jwriter.Writer, in ExecuteSQLReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.ColumnNames) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"columnNames\":") - if in.ColumnNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v3, v4 := range in.ColumnNames { - if v3 > 0 { - out.RawByte(',') - } - out.String(string(v4)) - } - out.RawByte(']') - } - } - if len(in.Values) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"values\":") - if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.Values { - if v5 > 0 { - out.RawByte(',') - } - (v6).MarshalEasyJSON(out) - } - out.RawByte(']') - } - } - if in.SQLError != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"sqlError\":") - if in.SQLError == nil { - out.RawString("null") - } else { - (*in.SQLError).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ExecuteSQLReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ExecuteSQLReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ExecuteSQLReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ExecuteSQLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase4(in *jlexer.Lexer, out *ExecuteSQLParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "databaseId": - out.DatabaseID = ID(in.String()) - case "query": - out.Query = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(out *jwriter.Writer, in ExecuteSQLParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseId\":") - out.String(string(in.DatabaseID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"query\":") - out.String(string(in.Query)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ExecuteSQLParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventAddDatabase) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error { +func (v *EventAddDatabase) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventAddDatabase) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(in *jlexer.Lexer, out *GetDatabaseTableNamesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(in *jlexer.Lexer, out *Error) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -527,25 +525,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(in *jlexer.Lexer, ou continue } switch key { - case "tableNames": - if in.IsNull() { - in.Skip() - out.TableNames = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.TableNames = make([]string, 0, 4) - } else { - out.TableNames = []string{} - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.TableNames = append(out.TableNames, v7) - in.WantComma() - } - in.Delim(']') - } + case "message": + out.Message = string(in.String()) + case "code": + out.Code = int64(in.Int64()) default: in.SkipRecursive() } @@ -556,56 +539,53 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(out *jwriter.Writer, in GetDatabaseTableNamesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(out *jwriter.Writer, in Error) { out.RawByte('{') first := true _ = first - if len(in.TableNames) != 0 { + if in.Message != "" { 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 v8, v9 := range in.TableNames { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') + out.RawString("\"message\":") + out.String(string(in.Message)) + } + if in.Code != 0 { + if !first { + out.RawByte(',') } + first = false + out.RawString("\"code\":") + out.Int64(int64(in.Code)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetDatabaseTableNamesReturns) MarshalJSON() ([]byte, error) { +func (v Error) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetDatabaseTableNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v Error) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetDatabaseTableNamesReturns) UnmarshalJSON(data []byte) error { +func (v *Error) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetDatabaseTableNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(in *jlexer.Lexer, out *GetDatabaseTableNamesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -624,8 +604,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(in *jlexer.Lexer, ou continue } switch key { - case "databaseId": - out.DatabaseID = ID(in.String()) default: in.SkipRecursive() } @@ -636,40 +614,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase6(out *jwriter.Writer, in GetDatabaseTableNamesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase6(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseId\":") - out.String(string(in.DatabaseID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error) { +func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error { +func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase6(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase7(in *jlexer.Lexer, out *DisableParams) { @@ -731,7 +703,7 @@ func (v *DisableParams) UnmarshalJSON(data []byte) error { func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(in *jlexer.Lexer, out *Database) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -750,6 +722,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(in *jlexer.Lexer, ou continue } switch key { + case "id": + out.ID = ID(in.String()) + case "domain": + out.Domain = string(in.String()) + case "name": + out.Name = string(in.String()) + case "version": + out.Version = string(in.String()) default: in.SkipRecursive() } @@ -760,33 +740,65 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(out *jwriter.Writer, in Database) { out.RawByte('{') first := true _ = first + if in.ID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Version != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"version\":") + out.String(string(in.Version)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EnableParams) MarshalJSON() ([]byte, error) { +func (v Database) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v Database) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDatabase8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *Database) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Database) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDatabase8(l, v) } diff --git a/cdp/debugger/easyjson.go b/cdp/debugger/easyjson.go index 1bb543d..955567d 100644 --- a/cdp/debugger/easyjson.go +++ b/cdp/debugger/easyjson.go @@ -18,7 +18,1435 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(in *jlexer.Lexer, out *SearchMatch) { +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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StepOverParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepOverParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StepOutParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepOutParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StepIntoParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StepIntoParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetVariableValueParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v) + return r.Error() +} + +// 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 { @@ -51,7 +1479,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(out *jwriter.Writer, in SearchMatch) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer, in SearchMatch) { out.RawByte('{') first := true _ = first @@ -77,27 +1505,314 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SearchMatch) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SearchMatch) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(in *jlexer.Lexer, out *Scope) { +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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SearchInContentReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SearchInContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v) + return r.Error() +} + +// 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 in.LineNumber != 0 { + 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 ScriptPosition) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScriptPosition) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v) + return r.Error() +} + +// 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 { @@ -160,7 +1875,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(out *jwriter.Writer, in Scope) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(out *jwriter.Writer, in Scope) { out.RawByte('{') first := true _ = first @@ -222,27 +1937,221 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Scope) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Scope) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Scope) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(in *jlexer.Lexer, out *CallFrame) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResumeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(in *jlexer.Lexer, out *RestartFrameParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -263,75 +2172,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(in *jlexer.Lexer, ou 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 !in.IsDelim(']') { - out.ScopeChain = make([]*Scope, 0, 8) - } else { - out.ScopeChain = []*Scope{} - } - for !in.IsDelim(']') { - var v1 *Scope - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Scope) - } - (*v1).UnmarshalEasyJSON(in) - } - out.ScopeChain = append(out.ScopeChain, v1) - 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() } @@ -342,124 +2182,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(out *jwriter.Writer, in CallFrame) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(out *jwriter.Writer, in RestartFrameParams) { out.RawByte('{') first := true _ = first - if in.CallFrameID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"callFrameId\":") - out.String(string(in.CallFrameID)) - } - if in.FunctionName != "" { - 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 in.Location != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"location\":") - if in.Location == nil { - out.RawString("null") - } else { - (*in.Location).MarshalEasyJSON(out) - } - } - if len(in.ScopeChain) != 0 { - 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 v2, v3 := range in.ScopeChain { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.This != nil { - 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) - } + if !first { + out.RawByte(',') } + first = false + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CallFrame) MarshalJSON() ([]byte, error) { +func (v RestartFrameParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger2(w, v) +func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CallFrame) UnmarshalJSON(data []byte) error { +func (v *RestartFrameParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger2(l, v) +func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(in *jlexer.Lexer, out *ScriptPosition) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(in *jlexer.Lexer, out *RemoveBreakpointParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -478,10 +2237,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(in *jlexer.Lexer, ou continue } switch key { - case "lineNumber": - out.LineNumber = int64(in.Int64()) - case "columnNumber": - out.ColumnNumber = int64(in.Int64()) + case "breakpointId": + out.BreakpointID = BreakpointID(in.String()) default: in.SkipRecursive() } @@ -492,53 +2249,102 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(out *jwriter.Writer, in ScriptPosition) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(out *jwriter.Writer, in RemoveBreakpointParams) { out.RawByte('{') first := true _ = first - if in.LineNumber != 0 { - 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 !first { + out.RawByte(',') } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v ScriptPosition) MarshalJSON() ([]byte, error) { +func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger3(w, v) +func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ScriptPosition) UnmarshalJSON(data []byte) error { +func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger3(l, v) +func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(in *jlexer.Lexer, out *Location) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PauseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(in *jlexer.Lexer, out *Location) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -573,7 +2379,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(out *jwriter.Writer, in Location) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(out *jwriter.Writer, in Location) { out.RawByte('{') first := true _ = first @@ -607,27 +2413,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Location) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Location) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Location) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger26(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, out *EventResumed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(in *jlexer.Lexer, out *GetScriptSourceReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -646,6 +2452,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, ou continue } switch key { + case "scriptSource": + out.ScriptSource = string(in.String()) default: in.SkipRecursive() } @@ -656,317 +2464,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(out *jwriter.Writer, in EventResumed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(out *jwriter.Writer, in GetScriptSourceReturns) { out.RawByte('{') first := true _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventResumed) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventResumed) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(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 !in.IsDelim(']') { - out.CallFrames = make([]*CallFrame, 0, 8) - } else { - out.CallFrames = []*CallFrame{} - } - for !in.IsDelim(']') { - var v4 *CallFrame - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(CallFrame) - } - (*v4).UnmarshalEasyJSON(in) - } - out.CallFrames = append(out.CallFrames, v4) - 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 !in.IsDelim(']') { - out.HitBreakpoints = make([]string, 0, 4) - } else { - out.HitBreakpoints = []string{} - } - for !in.IsDelim(']') { - var v5 string - v5 = string(in.String()) - out.HitBreakpoints = append(out.HitBreakpoints, v5) - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(out *jwriter.Writer, in EventPaused) { - out.RawByte('{') - first := true - _ = first - if len(in.CallFrames) != 0 { + if in.ScriptSource != "" { 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 v6, v7 := range in.CallFrames { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - (*v7).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Reason != "" { - 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 v8, v9 := range in.HitBreakpoints { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - 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.RawString("\"scriptSource\":") + out.String(string(in.ScriptSource)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventPaused) MarshalJSON() ([]byte, error) { +func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger6(w, v) +func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventPaused) UnmarshalJSON(data []byte) error { +func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger6(l, v) +func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(out *jwriter.Writer, in EventBreakpointResolved) { - out.RawByte('{') - first := true - _ = first - if in.BreakpointID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"breakpointId\":") - out.String(string(in.BreakpointID)) - } - if in.Location != nil { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, out *EventScriptFailedToParse) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(in *jlexer.Lexer, out *GetScriptSourceParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -987,28 +2523,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, ou 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()) default: in.SkipRecursive() } @@ -1019,133 +2533,257 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(out *jwriter.Writer, in EventScriptFailedToParse) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(out *jwriter.Writer, in GetScriptSourceParams) { out.RawByte('{') first := true _ = first - if in.ScriptID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptId\":") - out.String(string(in.ScriptID)) + if !first { + out.RawByte(',') } - if in.URL != "" { - 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(in *jlexer.Lexer, out *GetPossibleBreakpointsReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) + in.Skip() + return } - if in.StartLine != 0 { - if !first { - out.RawByte(',') + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue } - first = false - out.RawString("\"startLine\":") - out.Int64(int64(in.StartLine)) + 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([]*Location, 0, 8) + } else { + out.Locations = []*Location{} + } + } else { + out.Locations = (out.Locations)[:0] + } + for !in.IsDelim(']') { + var v19 *Location + if in.IsNull() { + in.Skip() + v19 = nil + } else { + if v19 == nil { + v19 = new(Location) + } + (*v19).UnmarshalEasyJSON(in) + } + out.Locations = append(out.Locations, v19) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() } - if in.StartColumn != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startColumn\":") - out.Int64(int64(in.StartColumn)) + in.Delim('}') + if isTopLevel { + in.Consumed() } - if in.EndLine != 0 { +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(out *jwriter.Writer, in GetPossibleBreakpointsReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Locations) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"endLine\":") - out.Int64(int64(in.EndLine)) - } - if in.EndColumn != 0 { - if !first { - out.RawByte(',') + 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(']') } - first = false - out.RawString("\"endColumn\":") - out.Int64(int64(in.EndColumn)) - } - if in.ExecutionContextID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"executionContextId\":") - out.Int64(int64(in.ExecutionContextID)) - } - if in.Hash != "" { - 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)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) { +func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger8(w, v) +func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error { +func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger8(l, v) +func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(in *jlexer.Lexer, out *EventScriptParsed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(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) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(in *jlexer.Lexer, out *EventScriptParsed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1200,7 +2838,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(out *jwriter.Writer, in EventScriptParsed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(out *jwriter.Writer, in EventScriptParsed) { out.RawByte('{') first := true _ = first @@ -1314,27 +2952,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventScriptParsed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScriptParsed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(in *jlexer.Lexer, out *SetBlackboxedRangesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(in *jlexer.Lexer, out *EventScriptFailedToParse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1355,297 +2993,310 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(in *jlexer.Lexer, o switch key { case "scriptId": out.ScriptID = runtime.ScriptID(in.String()) - case "positions": + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(out *jwriter.Writer, in EventScriptFailedToParse) { + out.RawByte('{') + first := true + _ = first + if in.ScriptID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.StartLine != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startLine\":") + out.Int64(int64(in.StartLine)) + } + if in.StartColumn != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startColumn\":") + out.Int64(int64(in.StartColumn)) + } + if in.EndLine != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endLine\":") + out.Int64(int64(in.EndLine)) + } + if in.EndColumn != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"endColumn\":") + out.Int64(int64(in.EndColumn)) + } + if in.ExecutionContextID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextId\":") + out.Int64(int64(in.ExecutionContextID)) + } + if in.Hash != "" { + 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)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventResumed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(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.Positions = nil + out.CallFrames = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Positions = make([]*ScriptPosition, 0, 8) + if out.CallFrames == nil { + if !in.IsDelim(']') { + out.CallFrames = make([]*CallFrame, 0, 8) + } else { + out.CallFrames = []*CallFrame{} + } } else { - out.Positions = []*ScriptPosition{} + out.CallFrames = (out.CallFrames)[:0] } for !in.IsDelim(']') { - var v10 *ScriptPosition + var v22 *CallFrame if in.IsNull() { in.Skip() - v10 = nil + v22 = nil } else { - if v10 == nil { - v10 = new(ScriptPosition) + if v22 == nil { + v22 = new(CallFrame) } - (*v10).UnmarshalEasyJSON(in) + (*v22).UnmarshalEasyJSON(in) } - out.Positions = append(out.Positions, v10) + out.CallFrames = append(out.CallFrames, v22) in.WantComma() } in.Delim(']') } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(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 v11, v12 := range in.Positions { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(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": + case "reason": + (out.Reason).UnmarshalEasyJSON(in) + case "data": + (out.Data).UnmarshalEasyJSON(in) + case "hitBreakpoints": if in.IsNull() { in.Skip() - out.Patterns = nil + out.HitBreakpoints = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Patterns = make([]string, 0, 4) + if out.HitBreakpoints == nil { + if !in.IsDelim(']') { + out.HitBreakpoints = make([]string, 0, 4) + } else { + out.HitBreakpoints = []string{} + } } else { - out.Patterns = []string{} + out.HitBreakpoints = (out.HitBreakpoints)[:0] } for !in.IsDelim(']') { - var v13 string - v13 = string(in.String()) - out.Patterns = append(out.Patterns, v13) + var v23 string + v23 = string(in.String()) + out.HitBreakpoints = append(out.HitBreakpoints, v23) in.WantComma() } in.Delim(']') } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(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 v14, v15 := range in.Patterns { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(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": + case "asyncStackTrace": if in.IsNull() { in.Skip() - out.NewValue = nil + out.AsyncStackTrace = nil } else { - if out.NewValue == nil { - out.NewValue = new(runtime.CallArgument) + if out.AsyncStackTrace == nil { + out.AsyncStackTrace = new(runtime.StackTrace) } - (*out.NewValue).UnmarshalEasyJSON(in) + (*out.AsyncStackTrace).UnmarshalEasyJSON(in) } - case "callFrameId": - out.CallFrameID = CallFrameID(in.String()) default: in.SkipRecursive() } @@ -1656,65 +3307,198 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(out *jwriter.Writer, in SetVariableValueParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(out *jwriter.Writer, in EventPaused) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + 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 v24, v25 := range in.CallFrames { + if v24 > 0 { + out.RawByte(',') + } + if v25 == nil { + out.RawString("null") + } else { + (*v25).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } - first = false - out.RawString("\"scopeNumber\":") - out.Int64(int64(in.ScopeNumber)) - if !first { - out.RawByte(',') + if in.Reason != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"reason\":") + (in.Reason).MarshalEasyJSON(out) } - first = false - out.RawString("\"variableName\":") - out.String(string(in.VariableName)) - if !first { - out.RawByte(',') + if (in.Data).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + (in.Data).MarshalEasyJSON(out) } - first = false - out.RawString("\"newValue\":") - if in.NewValue == nil { - out.RawString("null") - } else { - (*in.NewValue).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 !first { - 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) + } } - first = false - out.RawString("\"callFrameId\":") - out.String(string(in.CallFrameID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetVariableValueParams) MarshalJSON() ([]byte, error) { +func (v EventPaused) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger13(w, v) +func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error { +func (v *EventPaused) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger13(l, v) +func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(out *jwriter.Writer, in EventBreakpointResolved) { + out.RawByte('{') + first := true + _ = first + if in.BreakpointID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"breakpointId\":") + out.String(string(in.BreakpointID)) + } + if in.Location != nil { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(in *jlexer.Lexer, out *EvaluateOnCallFrameReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1763,7 +3547,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(out *jwriter.Writer, in EvaluateOnCallFrameReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer, in EvaluateOnCallFrameReturns) { out.RawByte('{') first := true _ = first @@ -1797,27 +3581,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(in *jlexer.Lexer, out *EvaluateOnCallFrameParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1862,7 +3646,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(out *jwriter.Writer, in EvaluateOnCallFrameParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(out *jwriter.Writer, in EvaluateOnCallFrameParams) { out.RawByte('{') first := true _ = first @@ -1932,27 +3716,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, out *SetPauseOnExceptionsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1971,8 +3755,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, o continue } switch key { - case "state": - (out.State).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -1983,7 +3765,135 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer, in SetPauseOnExceptionsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(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) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(out *jwriter.Writer, in ContinueToLocationParams) { out.RawByte('{') first := true _ = first @@ -1991,302 +3901,39 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(out *jwriter.Writer out.RawByte(',') } first = false - out.RawString("\"state\":") - (in.State).MarshalEasyJSON(out) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(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.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error) { +func (v ContinueToLocationParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger17(w, v) +func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error { +func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger17(l, v) +func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(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 !in.IsDelim(']') { - out.CallFrames = make([]*CallFrame, 0, 8) - } else { - out.CallFrames = []*CallFrame{} - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(in *jlexer.Lexer, out *RestartFrameParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(in *jlexer.Lexer, out *CallFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2307,818 +3954,18 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(in *jlexer.Lexer, o switch key { case "callFrameId": out.CallFrameID = CallFrameID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RestartFrameParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(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": + case "functionName": + out.FunctionName = string(in.String()) + case "functionLocation": if in.IsNull() { in.Skip() - out.CallFrames = nil + out.FunctionLocation = nil } else { - in.Delim('[') - if !in.IsDelim(']') { - out.CallFrames = make([]*CallFrame, 0, 8) - } else { - out.CallFrames = []*CallFrame{} + if out.FunctionLocation == nil { + out.FunctionLocation = new(Location) } - for !in.IsDelim(']') { - var v19 *CallFrame - if in.IsNull() { - in.Skip() - v19 = nil - } else { - if v19 == nil { - v19 = new(CallFrame) - } - (*v19).UnmarshalEasyJSON(in) - } - out.CallFrames = append(out.CallFrames, v19) - in.WantComma() - } - in.Delim(']') + (*out.FunctionLocation).UnmarshalEasyJSON(in) } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(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 v20, v21 := range in.CallFrames { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - (*v21).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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetScriptSourceParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(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 !in.IsDelim(']') { - out.Result = make([]*SearchMatch, 0, 8) - } else { - out.Result = []*SearchMatch{} - } - for !in.IsDelim(']') { - var v22 *SearchMatch - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(SearchMatch) - } - (*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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(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 v23, v24 := range in.Result { - if v23 > 0 { - out.RawByte(',') - } - if v24 == nil { - out.RawString("null") - } else { - (*v24).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SearchInContentReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger23(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger23(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SearchInContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger24(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger24(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger25(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResumeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger25(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResumeParams) 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 *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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(out *jwriter.Writer, in StepOutParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StepOutParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger27(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepOutParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger27(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(out *jwriter.Writer, in StepIntoParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StepIntoParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger28(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepIntoParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StepIntoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger28(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(out *jwriter.Writer, in StepOverParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StepOverParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger29(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StepOverParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger29(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(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() @@ -3129,561 +3976,57 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(in *jlexer.Lexer, o } (*out.Location).UnmarshalEasyJSON(in) } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(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) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContinueToLocationParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger30(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger30(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(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": + case "scopeChain": if in.IsNull() { in.Skip() - out.Locations = nil + out.ScopeChain = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Locations = make([]*Location, 0, 8) - } else { - out.Locations = []*Location{} - } - for !in.IsDelim(']') { - var v25 *Location - if in.IsNull() { - in.Skip() - v25 = nil + if out.ScopeChain == nil { + if !in.IsDelim(']') { + out.ScopeChain = make([]*Scope, 0, 8) } else { - if v25 == nil { - v25 = new(Location) - } - (*v25).UnmarshalEasyJSON(in) + out.ScopeChain = []*Scope{} } - out.Locations = append(out.Locations, v25) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(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 v26, v27 := range in.Locations { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") } else { - (*v27).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(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) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger33(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger33(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(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 !in.IsDelim(']') { - out.Locations = make([]*Location, 0, 8) - } else { - out.Locations = []*Location{} + out.ScopeChain = (out.ScopeChain)[:0] } for !in.IsDelim(']') { - var v28 *Location + var v28 *Scope if in.IsNull() { in.Skip() v28 = nil } else { if v28 == nil { - v28 = new(Location) + v28 = new(Scope) } (*v28).UnmarshalEasyJSON(in) } - out.Locations = append(out.Locations, v28) + 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() } @@ -3694,29 +4037,61 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer, in SetBreakpointByURLReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(out *jwriter.Writer, in CallFrame) { out.RawByte('{') first := true _ = first - if in.BreakpointID != "" { + if in.CallFrameID != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"breakpointId\":") - out.String(string(in.BreakpointID)) + out.RawString("\"callFrameId\":") + out.String(string(in.CallFrameID)) } - if len(in.Locations) != 0 { + if in.FunctionName != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"locations\":") - if in.Locations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + 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 in.Location != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"location\":") + if in.Location == nil { + out.RawString("null") + } else { + (*in.Location).MarshalEasyJSON(out) + } + } + if len(in.ScopeChain) != 0 { + 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.Locations { + for v29, v30 := range in.ScopeChain { if v29 > 0 { out.RawByte(',') } @@ -3729,388 +4104,53 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(out *jwriter.Writer out.RawByte(']') } } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger36(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger36(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(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 in.This != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"url\":") - out.String(string(in.URL)) + out.RawString("\"this\":") + if in.This == nil { + out.RawString("null") + } else { + (*in.This).MarshalEasyJSON(out) + } } - if in.URLRegex != "" { + if in.ReturnValue != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"urlRegex\":") - out.String(string(in.URLRegex)) - } - if in.ColumnNumber != 0 { - if !first { - out.RawByte(',') + out.RawString("\"returnValue\":") + if in.ReturnValue == nil { + out.RawString("null") + } else { + (*in.ReturnValue).MarshalEasyJSON(out) } - 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('}') } // MarshalJSON supports json.Marshaler interface -func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger37(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger37(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger38(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger38(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger39(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger39(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBreakpointsActiveParams) 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 *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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(out *jwriter.Writer, in EnableParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EnableParams) MarshalJSON() ([]byte, error) { +func (v CallFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDebugger41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *CallFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDebugger41(l, v) } diff --git a/cdp/deviceorientation/easyjson.go b/cdp/deviceorientation/easyjson.go index b6a5e8e..75e5b6c 100644 --- a/cdp/deviceorientation/easyjson.go +++ b/cdp/deviceorientation/easyjson.go @@ -17,66 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(in *jlexer.Lexer, out *ClearDeviceOrientationOverrideParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(out *jwriter.Writer, in ClearDeviceOrientationOverrideParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ClearDeviceOrientationOverrideParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearDeviceOrientationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearDeviceOrientationOverrideParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation1(in *jlexer.Lexer, out *SetDeviceOrientationOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(in *jlexer.Lexer, out *SetDeviceOrientationOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -111,7 +52,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation1(in *jlexer. in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(out *jwriter.Writer, in SetDeviceOrientationOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(out *jwriter.Writer, in SetDeviceOrientationOverrideParams) { out.RawByte('{') first := true _ = first @@ -139,23 +80,82 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(out *jwrite // MarshalJSON supports json.Marshaler interface func (v SetDeviceOrientationOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDeviceOrientationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDeviceOrientationOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation1(in *jlexer.Lexer, out *ClearDeviceOrientationOverrideParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(out *jwriter.Writer, in ClearDeviceOrientationOverrideParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearDeviceOrientationOverrideParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearDeviceOrientationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDeviceorientation1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearDeviceOrientationOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ClearDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDeviceorientation1(l, v) } diff --git a/cdp/dom/easyjson.go b/cdp/dom/easyjson.go index cc72c81..ba0fa57 100644 --- a/cdp/dom/easyjson.go +++ b/cdp/dom/easyjson.go @@ -19,7 +19,3180 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(in *jlexer.Lexer, out *HighlightConfig) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(in *jlexer.Lexer, out *UndoParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(out *jwriter.Writer, in UndoParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v UndoParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *UndoParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(in *jlexer.Lexer, out *ShapeOutsideInfo) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "bounds": + if in.IsNull() { + in.Skip() + out.Bounds = nil + } else { + in.Delim('[') + if out.Bounds == nil { + if !in.IsDelim(']') { + out.Bounds = make(Quad, 0, 8) + } else { + out.Bounds = Quad{} + } + } else { + out.Bounds = (out.Bounds)[:0] + } + for !in.IsDelim(']') { + var v1 float64 + v1 = float64(in.Float64()) + out.Bounds = append(out.Bounds, v1) + in.WantComma() + } + in.Delim(']') + } + case "shape": + if in.IsNull() { + in.Skip() + out.Shape = nil + } else { + in.Delim('[') + if out.Shape == nil { + if !in.IsDelim(']') { + out.Shape = make([]easyjson.RawMessage, 0, 2) + } else { + out.Shape = []easyjson.RawMessage{} + } + } else { + out.Shape = (out.Shape)[:0] + } + for !in.IsDelim(']') { + var v2 easyjson.RawMessage + (v2).UnmarshalEasyJSON(in) + out.Shape = append(out.Shape, v2) + in.WantComma() + } + in.Delim(']') + } + case "marginShape": + if in.IsNull() { + in.Skip() + out.MarginShape = nil + } else { + in.Delim('[') + if out.MarginShape == nil { + if !in.IsDelim(']') { + out.MarginShape = make([]easyjson.RawMessage, 0, 2) + } else { + out.MarginShape = []easyjson.RawMessage{} + } + } else { + out.MarginShape = (out.MarginShape)[:0] + } + for !in.IsDelim(']') { + var v3 easyjson.RawMessage + (v3).UnmarshalEasyJSON(in) + out.MarginShape = append(out.MarginShape, v3) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(out *jwriter.Writer, in ShapeOutsideInfo) { + out.RawByte('{') + first := true + _ = first + if len(in.Bounds) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"bounds\":") + if in.Bounds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v4, v5 := range in.Bounds { + if v4 > 0 { + out.RawByte(',') + } + out.Float64(float64(v5)) + } + out.RawByte(']') + } + } + if len(in.Shape) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"shape\":") + if in.Shape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.Shape { + if v6 > 0 { + out.RawByte(',') + } + (v7).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + if len(in.MarginShape) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"marginShape\":") + if in.MarginShape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.MarginShape { + if v8 > 0 { + out.RawByte(',') + } + (v9).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(in *jlexer.Lexer, out *SetOuterHTMLParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "outerHTML": + out.OuterHTML = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(out *jwriter.Writer, in SetOuterHTMLParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"outerHTML\":") + out.String(string(in.OuterHTML)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(in *jlexer.Lexer, out *SetNodeValueParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "value": + out.Value = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(out *jwriter.Writer, in SetNodeValueParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetNodeValueParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(in *jlexer.Lexer, out *SetNodeNameReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(out *jwriter.Writer, in SetNodeNameReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetNodeNameReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(in *jlexer.Lexer, out *SetNodeNameParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "name": + out.Name = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(out *jwriter.Writer, in SetNodeNameParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetNodeNameParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(in *jlexer.Lexer, out *SetInspectedNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(out *jwriter.Writer, in SetInspectedNodeParams) { + 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 SetInspectedNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetInspectModeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(in *jlexer.Lexer, out *SetFileInputFilesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "files": + if in.IsNull() { + in.Skip() + out.Files = nil + } else { + in.Delim('[') + if out.Files == nil { + if !in.IsDelim(']') { + out.Files = make([]string, 0, 4) + } else { + out.Files = []string{} + } + } else { + out.Files = (out.Files)[:0] + } + for !in.IsDelim(']') { + var v10 string + v10 = string(in.String()) + out.Files = append(out.Files, v10) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(out *jwriter.Writer, in SetFileInputFilesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"files\":") + if in.Files == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Files { + if v11 > 0 { + out.RawByte(',') + } + out.String(string(v12)) + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(in *jlexer.Lexer, out *SetAttributesAsTextParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "text": + out.Text = string(in.String()) + case "name": + out.Name = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(out *jwriter.Writer, in SetAttributesAsTextParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(in *jlexer.Lexer, out *SetAttributeValueParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "name": + out.Name = string(in.String()) + case "value": + out.Value = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(out *jwriter.Writer, in SetAttributeValueParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + 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)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAttributeValueParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(in *jlexer.Lexer, out *ResolveNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "object": + if in.IsNull() { + in.Skip() + out.Object = nil + } else { + if out.Object == nil { + out.Object = new(runtime.RemoteObject) + } + (*out.Object).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(out *jwriter.Writer, in ResolveNodeReturns) { + out.RawByte('{') + first := true + _ = first + if in.Object != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"object\":") + if in.Object == nil { + out.RawString("null") + } else { + (*in.Object).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ResolveNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(in *jlexer.Lexer, out *ResolveNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "objectGroup": + out.ObjectGroup = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(out *jwriter.Writer, in ResolveNodeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if in.ObjectGroup != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectGroup\":") + out.String(string(in.ObjectGroup)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ResolveNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(in *jlexer.Lexer, out *RequestNodeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(out *jwriter.Writer, in RequestNodeReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestNodeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(in *jlexer.Lexer, out *RequestNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectId": + out.ObjectID = runtime.RemoteObjectID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(out *jwriter.Writer, in RequestNodeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(in *jlexer.Lexer, out *RequestChildNodesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "depth": + out.Depth = int64(in.Int64()) + case "pierce": + out.Pierce = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(out *jwriter.Writer, in RequestChildNodesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if in.Depth != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"depth\":") + out.Int64(int64(in.Depth)) + } + if in.Pierce { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pierce\":") + out.Bool(bool(in.Pierce)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestChildNodesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(in *jlexer.Lexer, out *RemoveNodeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(out *jwriter.Writer, in RemoveNodeParams) { + 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 RemoveNodeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(in *jlexer.Lexer, out *RemoveAttributeParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "name": + out.Name = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(out *jwriter.Writer, in RemoveAttributeParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveAttributeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(in *jlexer.Lexer, out *RedoParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(out *jwriter.Writer, in RedoParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RedoParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RedoParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(in *jlexer.Lexer, out *Rect) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(out *jwriter.Writer, in Rect) { + out.RawByte('{') + first := true + _ = first + if in.X != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"x\":") + out.Float64(float64(in.X)) + } + if in.Y != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"y\":") + out.Float64(float64(in.Y)) + } + if in.Width != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Float64(float64(in.Width)) + } + if in.Height != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Float64(float64(in.Height)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Rect) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Rect) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Rect) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Rect) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(in *jlexer.Lexer, out *QuerySelectorReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(out *jwriter.Writer, in QuerySelectorReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v QuerySelectorReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(in *jlexer.Lexer, out *QuerySelectorParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "selector": + out.Selector = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(out *jwriter.Writer, in QuerySelectorParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selector\":") + out.String(string(in.Selector)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v QuerySelectorParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(in *jlexer.Lexer, out *QuerySelectorAllReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "nodeIds": + if in.IsNull() { + in.Skip() + out.NodeIds = nil + } else { + in.Delim('[') + if out.NodeIds == nil { + if !in.IsDelim(']') { + out.NodeIds = make([]cdp.NodeID, 0, 8) + } else { + out.NodeIds = []cdp.NodeID{} + } + } else { + out.NodeIds = (out.NodeIds)[:0] + } + for !in.IsDelim(']') { + var v13 cdp.NodeID + (v13).UnmarshalEasyJSON(in) + out.NodeIds = append(out.NodeIds, v13) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(out *jwriter.Writer, in QuerySelectorAllReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.NodeIds) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeIds\":") + if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.NodeIds { + if v14 > 0 { + out.RawByte(',') + } + out.Int64(int64(v15)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(in *jlexer.Lexer, out *QuerySelectorAllParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "selector": + out.Selector = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(out *jwriter.Writer, in QuerySelectorAllParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selector\":") + out.String(string(in.Selector)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(in *jlexer.Lexer, out *PushNodesByBackendIdsToFrontendReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "nodeIds": + if in.IsNull() { + in.Skip() + out.NodeIds = nil + } else { + in.Delim('[') + if out.NodeIds == nil { + if !in.IsDelim(']') { + out.NodeIds = make([]cdp.NodeID, 0, 8) + } else { + out.NodeIds = []cdp.NodeID{} + } + } else { + out.NodeIds = (out.NodeIds)[:0] + } + for !in.IsDelim(']') { + var v16 cdp.NodeID + (v16).UnmarshalEasyJSON(in) + out.NodeIds = append(out.NodeIds, v16) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(out *jwriter.Writer, in PushNodesByBackendIdsToFrontendReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.NodeIds) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeIds\":") + if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.NodeIds { + if v17 > 0 { + out.RawByte(',') + } + out.Int64(int64(v18)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(in *jlexer.Lexer, out *PushNodesByBackendIdsToFrontendParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "backendNodeIds": + if in.IsNull() { + in.Skip() + out.BackendNodeIds = nil + } else { + in.Delim('[') + if out.BackendNodeIds == nil { + if !in.IsDelim(']') { + out.BackendNodeIds = make([]cdp.BackendNodeID, 0, 8) + } else { + out.BackendNodeIds = []cdp.BackendNodeID{} + } + } else { + out.BackendNodeIds = (out.BackendNodeIds)[:0] + } + for !in.IsDelim(']') { + var v19 cdp.BackendNodeID + (v19).UnmarshalEasyJSON(in) + out.BackendNodeIds = append(out.BackendNodeIds, v19) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(out *jwriter.Writer, in PushNodesByBackendIdsToFrontendParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeIds\":") + if in.BackendNodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.BackendNodeIds { + if v20 > 0 { + out.RawByte(',') + } + out.Int64(int64(v21)) + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(in *jlexer.Lexer, out *PushNodeByPathToFrontendReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(out *jwriter.Writer, in PushNodeByPathToFrontendReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(in *jlexer.Lexer, out *PushNodeByPathToFrontendParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "path": + out.Path = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(out *jwriter.Writer, in PushNodeByPathToFrontendParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(in *jlexer.Lexer, out *PerformSearchReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "searchId": + out.SearchID = string(in.String()) + case "resultCount": + out.ResultCount = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(out *jwriter.Writer, in PerformSearchReturns) { + out.RawByte('{') + first := true + _ = first + if in.SearchID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"searchId\":") + out.String(string(in.SearchID)) + } + if in.ResultCount != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"resultCount\":") + out.Int64(int64(in.ResultCount)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PerformSearchReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(in *jlexer.Lexer, out *PerformSearchParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "query": + out.Query = string(in.String()) + case "includeUserAgentShadowDOM": + out.IncludeUserAgentShadowDOM = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(out *jwriter.Writer, in PerformSearchParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"query\":") + out.String(string(in.Query)) + if in.IncludeUserAgentShadowDOM { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"includeUserAgentShadowDOM\":") + out.Bool(bool(in.IncludeUserAgentShadowDOM)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v PerformSearchParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *PerformSearchParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(in *jlexer.Lexer, out *MoveToReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(out *jwriter.Writer, in MoveToReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MoveToReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MoveToReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(in *jlexer.Lexer, out *MoveToParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "targetNodeId": + (out.TargetNodeID).UnmarshalEasyJSON(in) + case "insertBeforeNodeId": + (out.InsertBeforeNodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(out *jwriter.Writer, in MoveToParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetNodeId\":") + out.Int64(int64(in.TargetNodeID)) + if in.InsertBeforeNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"insertBeforeNodeId\":") + out.Int64(int64(in.InsertBeforeNodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MoveToParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MoveToParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(in *jlexer.Lexer, out *MarkUndoableStateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(out *jwriter.Writer, in MarkUndoableStateParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HighlightRectParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightRectParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(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(Quad, 0, 8) + } else { + out.Quad = Quad{} + } + } else { + out.Quad = (out.Quad)[:0] + } + for !in.IsDelim(']') { + var v22 float64 + v22 = float64(in.Float64()) + out.Quad = append(out.Quad, v22) + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(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 v23, v24 := range in.Quad { + if v23 > 0 { + out.RawByte(',') + } + out.Float64(float64(v24)) + } + 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HighlightQuadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(in *jlexer.Lexer, out *HighlightConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -128,7 +3301,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(in *jlexer.Lexer, out *Hig in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(out *jwriter.Writer, in HighlightConfig) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(out *jwriter.Writer, in HighlightConfig) { out.RawByte('{') first := true _ = first @@ -262,1286 +3435,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(out *jwriter.Writer, in Hi // MarshalJSON supports json.Marshaler interface func (v HighlightConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v HighlightConfig) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *HighlightConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *HighlightConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(in *jlexer.Lexer, out *Rect) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(out *jwriter.Writer, in Rect) { - out.RawByte('{') - first := true - _ = first - if in.X != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"x\":") - out.Float64(float64(in.X)) - } - if in.Y != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"y\":") - out.Float64(float64(in.Y)) - } - if in.Width != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"width\":") - out.Float64(float64(in.Width)) - } - if in.Height != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"height\":") - out.Float64(float64(in.Height)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Rect) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Rect) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Rect) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Rect) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(in *jlexer.Lexer, out *ShapeOutsideInfo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "bounds": - if in.IsNull() { - in.Skip() - out.Bounds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Bounds = make(Quad, 0, 8) - } else { - out.Bounds = Quad{} - } - for !in.IsDelim(']') { - var v1 float64 - v1 = float64(in.Float64()) - out.Bounds = append(out.Bounds, v1) - in.WantComma() - } - in.Delim(']') - } - case "shape": - if in.IsNull() { - in.Skip() - out.Shape = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Shape = make([]easyjson.RawMessage, 0, 2) - } else { - out.Shape = []easyjson.RawMessage{} - } - for !in.IsDelim(']') { - var v2 easyjson.RawMessage - (v2).UnmarshalEasyJSON(in) - out.Shape = append(out.Shape, v2) - in.WantComma() - } - in.Delim(']') - } - case "marginShape": - if in.IsNull() { - in.Skip() - out.MarginShape = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.MarginShape = make([]easyjson.RawMessage, 0, 2) - } else { - out.MarginShape = []easyjson.RawMessage{} - } - for !in.IsDelim(']') { - var v3 easyjson.RawMessage - (v3).UnmarshalEasyJSON(in) - out.MarginShape = append(out.MarginShape, v3) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(out *jwriter.Writer, in ShapeOutsideInfo) { - out.RawByte('{') - first := true - _ = first - if len(in.Bounds) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"bounds\":") - if in.Bounds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v4, v5 := range in.Bounds { - if v4 > 0 { - out.RawByte(',') - } - out.Float64(float64(v5)) - } - out.RawByte(']') - } - } - if len(in.Shape) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"shape\":") - if in.Shape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v6, v7 := range in.Shape { - if v6 > 0 { - out.RawByte(',') - } - (v7).MarshalEasyJSON(out) - } - out.RawByte(']') - } - } - if len(in.MarginShape) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"marginShape\":") - if in.MarginShape == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.MarginShape { - if v8 > 0 { - out.RawByte(',') - } - (v9).MarshalEasyJSON(out) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ShapeOutsideInfo) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ShapeOutsideInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ShapeOutsideInfo) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ShapeOutsideInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(in *jlexer.Lexer, out *BoxModel) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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": - if in.IsNull() { - in.Skip() - out.Content = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Content = make(Quad, 0, 8) - } else { - out.Content = Quad{} - } - for !in.IsDelim(']') { - var v10 float64 - v10 = float64(in.Float64()) - out.Content = append(out.Content, v10) - in.WantComma() - } - in.Delim(']') - } - case "padding": - if in.IsNull() { - in.Skip() - out.Padding = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Padding = make(Quad, 0, 8) - } else { - out.Padding = Quad{} - } - for !in.IsDelim(']') { - var v11 float64 - v11 = float64(in.Float64()) - out.Padding = append(out.Padding, v11) - in.WantComma() - } - in.Delim(']') - } - case "border": - if in.IsNull() { - in.Skip() - out.Border = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Border = make(Quad, 0, 8) - } else { - out.Border = Quad{} - } - for !in.IsDelim(']') { - var v12 float64 - v12 = float64(in.Float64()) - out.Border = append(out.Border, v12) - in.WantComma() - } - in.Delim(']') - } - case "margin": - if in.IsNull() { - in.Skip() - out.Margin = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Margin = make(Quad, 0, 8) - } else { - out.Margin = Quad{} - } - for !in.IsDelim(']') { - var v13 float64 - v13 = float64(in.Float64()) - out.Margin = append(out.Margin, v13) - in.WantComma() - } - in.Delim(']') - } - case "width": - out.Width = int64(in.Int64()) - case "height": - out.Height = int64(in.Int64()) - case "shapeOutside": - if in.IsNull() { - in.Skip() - out.ShapeOutside = nil - } else { - if out.ShapeOutside == nil { - out.ShapeOutside = new(ShapeOutsideInfo) - } - (*out.ShapeOutside).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(out *jwriter.Writer, in BoxModel) { - out.RawByte('{') - first := true - _ = first - if len(in.Content) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"content\":") - if in.Content == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v14, v15 := range in.Content { - if v14 > 0 { - out.RawByte(',') - } - out.Float64(float64(v15)) - } - out.RawByte(']') - } - } - if len(in.Padding) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"padding\":") - if in.Padding == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v16, v17 := range in.Padding { - if v16 > 0 { - out.RawByte(',') - } - out.Float64(float64(v17)) - } - out.RawByte(']') - } - } - if len(in.Border) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"border\":") - if in.Border == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v18, v19 := range in.Border { - if v18 > 0 { - out.RawByte(',') - } - out.Float64(float64(v19)) - } - out.RawByte(']') - } - } - if len(in.Margin) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"margin\":") - if in.Margin == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v20, v21 := range in.Margin { - if v20 > 0 { - out.RawByte(',') - } - out.Float64(float64(v21)) - } - out.RawByte(']') - } - } - if in.Width != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"width\":") - out.Int64(int64(in.Width)) - } - if in.Height != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"height\":") - out.Int64(int64(in.Height)) - } - if in.ShapeOutside != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"shapeOutside\":") - if in.ShapeOutside == nil { - out.RawString("null") - } else { - (*in.ShapeOutside).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v BoxModel) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v BoxModel) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *BoxModel) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BoxModel) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(in *jlexer.Lexer, out *GetRelayoutBoundaryReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(out *jwriter.Writer, in GetRelayoutBoundaryReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(in *jlexer.Lexer, out *GetRelayoutBoundaryParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(out *jwriter.Writer, in GetRelayoutBoundaryParams) { - 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 GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(in *jlexer.Lexer, out *GetNodeForLocationReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(out *jwriter.Writer, in GetNodeForLocationReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(in *jlexer.Lexer, out *GetNodeForLocationParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(out *jwriter.Writer, in GetNodeForLocationParams) { - 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)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(in *jlexer.Lexer, out *GetBoxModelReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "model": - if in.IsNull() { - in.Skip() - out.Model = nil - } else { - if out.Model == nil { - out.Model = new(BoxModel) - } - (*out.Model).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(out *jwriter.Writer, in GetBoxModelReturns) { - out.RawByte('{') - first := true - _ = first - if in.Model != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"model\":") - if in.Model == nil { - out.RawString("null") - } else { - (*in.Model).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetBoxModelReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(in *jlexer.Lexer, out *GetBoxModelParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(out *jwriter.Writer, in GetBoxModelParams) { - 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 GetBoxModelParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(in *jlexer.Lexer, out *SetFileInputFilesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "files": - if in.IsNull() { - in.Skip() - out.Files = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Files = make([]string, 0, 4) - } else { - out.Files = []string{} - } - for !in.IsDelim(']') { - var v22 string - v22 = string(in.String()) - out.Files = append(out.Files, v22) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(out *jwriter.Writer, in SetFileInputFilesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"files\":") - if in.Files == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v23, v24 := range in.Files { - if v23 > 0 { - out.RawByte(',') - } - out.String(string(v24)) - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetFileInputFilesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetFileInputFilesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetFileInputFilesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetFileInputFilesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(in *jlexer.Lexer, out *FocusParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(out *jwriter.Writer, in FocusParams) { - 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 FocusParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FocusParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(in *jlexer.Lexer, out *MarkUndoableStateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom38(in *jlexer.Lexer, out *HideHighlightParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1570,1320 +3484,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(in *jlexer.Lexer, out *M in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(out *jwriter.Writer, in MarkUndoableStateParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MarkUndoableStateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v MarkUndoableStateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *MarkUndoableStateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MarkUndoableStateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(in *jlexer.Lexer, out *RedoParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(out *jwriter.Writer, in RedoParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RedoParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RedoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RedoParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RedoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(in *jlexer.Lexer, out *UndoParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(out *jwriter.Writer, in UndoParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UndoParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v UndoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *UndoParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UndoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(in *jlexer.Lexer, out *MoveToReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(out *jwriter.Writer, in MoveToReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MoveToReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v MoveToReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *MoveToReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MoveToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(in *jlexer.Lexer, out *MoveToParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "targetNodeId": - (out.TargetNodeID).UnmarshalEasyJSON(in) - case "insertBeforeNodeId": - (out.InsertBeforeNodeID).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(out *jwriter.Writer, in MoveToParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetNodeId\":") - out.Int64(int64(in.TargetNodeID)) - if in.InsertBeforeNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"insertBeforeNodeId\":") - out.Int64(int64(in.InsertBeforeNodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MoveToParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v MoveToParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *MoveToParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MoveToParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(in *jlexer.Lexer, out *CopyToReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(out *jwriter.Writer, in CopyToReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CopyToReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CopyToReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(in *jlexer.Lexer, out *CopyToParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "targetNodeId": - (out.TargetNodeID).UnmarshalEasyJSON(in) - case "insertBeforeNodeId": - (out.InsertBeforeNodeID).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(out *jwriter.Writer, in CopyToParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetNodeId\":") - out.Int64(int64(in.TargetNodeID)) - if in.InsertBeforeNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"insertBeforeNodeId\":") - out.Int64(int64(in.InsertBeforeNodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CopyToParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CopyToParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(in *jlexer.Lexer, out *GetAttributesReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "attributes": - if in.IsNull() { - in.Skip() - out.Attributes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Attributes = make([]string, 0, 4) - } else { - out.Attributes = []string{} - } - for !in.IsDelim(']') { - var v25 string - v25 = string(in.String()) - out.Attributes = append(out.Attributes, v25) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(out *jwriter.Writer, in GetAttributesReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.Attributes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"attributes\":") - if in.Attributes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v26, v27 := range in.Attributes { - if v26 > 0 { - out.RawByte(',') - } - out.String(string(v27)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetAttributesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(in *jlexer.Lexer, out *GetAttributesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(out *jwriter.Writer, in GetAttributesParams) { - 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 GetAttributesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAttributesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(in *jlexer.Lexer, out *ResolveNodeReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "object": - if in.IsNull() { - in.Skip() - out.Object = nil - } else { - if out.Object == nil { - out.Object = new(runtime.RemoteObject) - } - (*out.Object).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(out *jwriter.Writer, in ResolveNodeReturns) { - out.RawByte('{') - first := true - _ = first - if in.Object != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"object\":") - if in.Object == nil { - out.RawString("null") - } else { - (*in.Object).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResolveNodeReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResolveNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom23(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResolveNodeReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResolveNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom23(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(in *jlexer.Lexer, out *ResolveNodeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "objectGroup": - out.ObjectGroup = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(out *jwriter.Writer, in ResolveNodeParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if in.ObjectGroup != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectGroup\":") - out.String(string(in.ObjectGroup)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResolveNodeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResolveNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom24(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResolveNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResolveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom24(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(in *jlexer.Lexer, out *SetInspectedNodeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(out *jwriter.Writer, in SetInspectedNodeParams) { - 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 SetInspectedNodeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetInspectedNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom25(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetInspectedNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetInspectedNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom25(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(in *jlexer.Lexer, out *PushNodesByBackendIdsToFrontendReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeIds": - if in.IsNull() { - in.Skip() - out.NodeIds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.NodeIds = make([]cdp.NodeID, 0, 8) - } else { - out.NodeIds = []cdp.NodeID{} - } - for !in.IsDelim(']') { - var v28 cdp.NodeID - (v28).UnmarshalEasyJSON(in) - out.NodeIds = append(out.NodeIds, v28) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(out *jwriter.Writer, in PushNodesByBackendIdsToFrontendReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.NodeIds) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeIds\":") - if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v29, v30 := range in.NodeIds { - if v29 > 0 { - out.RawByte(',') - } - out.Int64(int64(v30)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PushNodesByBackendIdsToFrontendReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PushNodesByBackendIdsToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom26(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PushNodesByBackendIdsToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom26(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(in *jlexer.Lexer, out *PushNodesByBackendIdsToFrontendParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "backendNodeIds": - if in.IsNull() { - in.Skip() - out.BackendNodeIds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.BackendNodeIds = make([]cdp.BackendNodeID, 0, 8) - } else { - out.BackendNodeIds = []cdp.BackendNodeID{} - } - for !in.IsDelim(']') { - var v31 cdp.BackendNodeID - (v31).UnmarshalEasyJSON(in) - out.BackendNodeIds = append(out.BackendNodeIds, v31) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(out *jwriter.Writer, in PushNodesByBackendIdsToFrontendParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendNodeIds\":") - if in.BackendNodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v32, v33 := range in.BackendNodeIds { - if v32 > 0 { - out.RawByte(',') - } - out.Int64(int64(v33)) - } - out.RawByte(']') - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PushNodesByBackendIdsToFrontendParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PushNodesByBackendIdsToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom27(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PushNodesByBackendIdsToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom27(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(in *jlexer.Lexer, out *PushNodeByPathToFrontendReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(out *jwriter.Writer, in PushNodeByPathToFrontendReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PushNodeByPathToFrontendReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PushNodeByPathToFrontendReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom28(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PushNodeByPathToFrontendReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PushNodeByPathToFrontendReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom28(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(in *jlexer.Lexer, out *PushNodeByPathToFrontendParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "path": - out.Path = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(out *jwriter.Writer, in PushNodeByPathToFrontendParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"path\":") - out.String(string(in.Path)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PushNodeByPathToFrontendParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PushNodeByPathToFrontendParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom29(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PushNodeByPathToFrontendParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PushNodeByPathToFrontendParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom29(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightFrameParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom30(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightFrameParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HighlightFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom30(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(out *jwriter.Writer, in HideHighlightParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom38(out *jwriter.Writer, in HideHighlightParams) { out.RawByte('{') first := true _ = first @@ -2892,700 +3493,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v HideHighlightParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HideHighlightParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HighlightNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(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 !in.IsDelim(']') { - out.Quad = make(Quad, 0, 8) - } else { - out.Quad = Quad{} - } - for !in.IsDelim(']') { - var v34 float64 - v34 = float64(in.Float64()) - out.Quad = append(out.Quad, v34) - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(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 v35, v36 := range in.Quad { - if v35 > 0 { - out.RawByte(',') - } - out.Float64(float64(v36)) - } - 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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HighlightQuadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightQuadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom33(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightQuadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HighlightQuadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom33(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HighlightRectParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HighlightRectParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HighlightRectParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HighlightRectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetInspectModeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetInspectModeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetInspectModeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetInspectModeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(in *jlexer.Lexer, out *RequestNodeReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(out *jwriter.Writer, in RequestNodeReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestNodeReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestNodeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom36(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestNodeReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestNodeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom36(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(in *jlexer.Lexer, out *RequestNodeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectId": - out.ObjectID = runtime.RemoteObjectID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(out *jwriter.Writer, in RequestNodeParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestNodeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom38(in *jlexer.Lexer, out *DiscardSearchResultsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "searchId": - out.SearchID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom38(out *jwriter.Writer, in DiscardSearchResultsParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"searchId\":") - out.String(string(in.SearchID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v HideHighlightParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error { +func (v *HideHighlightParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *HideHighlightParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom38(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom39(in *jlexer.Lexer, out *GetSearchResultsReturns) { @@ -3613,15 +3539,19 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom39(in *jlexer.Lexer, out *G out.NodeIds = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.NodeIds = make([]cdp.NodeID, 0, 8) + if out.NodeIds == nil { + if !in.IsDelim(']') { + out.NodeIds = make([]cdp.NodeID, 0, 8) + } else { + out.NodeIds = []cdp.NodeID{} + } } else { - out.NodeIds = []cdp.NodeID{} + out.NodeIds = (out.NodeIds)[:0] } for !in.IsDelim(']') { - var v37 cdp.NodeID - (v37).UnmarshalEasyJSON(in) - out.NodeIds = append(out.NodeIds, v37) + var v25 cdp.NodeID + (v25).UnmarshalEasyJSON(in) + out.NodeIds = append(out.NodeIds, v25) in.WantComma() } in.Delim(']') @@ -3650,11 +3580,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom39(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v38, v39 := range in.NodeIds { - if v38 > 0 { + for v26, v27 := range in.NodeIds { + if v26 > 0 { out.RawByte(',') } - out.Int64(int64(v39)) + out.Int64(int64(v27)) } out.RawByte(']') } @@ -3768,163 +3698,7 @@ func (v *GetSearchResultsParams) UnmarshalJSON(data []byte) error { func (v *GetSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(in *jlexer.Lexer, out *PerformSearchReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "searchId": - out.SearchID = string(in.String()) - case "resultCount": - out.ResultCount = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(out *jwriter.Writer, in PerformSearchReturns) { - out.RawByte('{') - first := true - _ = first - if in.SearchID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"searchId\":") - out.String(string(in.SearchID)) - } - if in.ResultCount != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"resultCount\":") - out.Int64(int64(in.ResultCount)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PerformSearchReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PerformSearchReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PerformSearchReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PerformSearchReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(in *jlexer.Lexer, out *PerformSearchParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "query": - out.Query = string(in.String()) - case "includeUserAgentShadowDOM": - out.IncludeUserAgentShadowDOM = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(out *jwriter.Writer, in PerformSearchParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"query\":") - out.String(string(in.Query)) - if in.IncludeUserAgentShadowDOM { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"includeUserAgentShadowDOM\":") - out.Bool(bool(in.IncludeUserAgentShadowDOM)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PerformSearchParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PerformSearchParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PerformSearchParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PerformSearchParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(in *jlexer.Lexer, out *SetOuterHTMLParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(in *jlexer.Lexer, out *GetRelayoutBoundaryReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3945,8 +3719,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(in *jlexer.Lexer, out *S switch key { case "nodeId": (out.NodeID).UnmarshalEasyJSON(in) - case "outerHTML": - out.OuterHTML = string(in.String()) default: in.SkipRecursive() } @@ -3957,7 +3729,76 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(out *jwriter.Writer, in SetOuterHTMLParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(out *jwriter.Writer, in GetRelayoutBoundaryReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetRelayoutBoundaryReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetRelayoutBoundaryReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetRelayoutBoundaryReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetRelayoutBoundaryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(in *jlexer.Lexer, out *GetRelayoutBoundaryParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(out *jwriter.Writer, in GetRelayoutBoundaryParams) { out.RawByte('{') first := true _ = first @@ -3967,39 +3808,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(out *jwriter.Writer, in first = false out.RawString("\"nodeId\":") out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"outerHTML\":") - out.String(string(in.OuterHTML)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetOuterHTMLParams) MarshalJSON() ([]byte, error) { +func (v GetRelayoutBoundaryParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(w, v) +func (v GetRelayoutBoundaryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetOuterHTMLParams) UnmarshalJSON(data []byte) error { +func (v *GetRelayoutBoundaryParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(l, v) +func (v *GetRelayoutBoundaryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(in *jlexer.Lexer, out *GetOuterHTMLReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(in *jlexer.Lexer, out *GetOuterHTMLReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4030,7 +3865,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(out *jwriter.Writer, in GetOuterHTMLReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(out *jwriter.Writer, in GetOuterHTMLReturns) { out.RawByte('{') first := true _ = first @@ -4048,27 +3883,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetOuterHTMLReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetOuterHTMLReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetOuterHTMLReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetOuterHTMLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom43(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom45(in *jlexer.Lexer, out *GetOuterHTMLParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(in *jlexer.Lexer, out *GetOuterHTMLParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4099,7 +3934,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom45(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(out *jwriter.Writer, in GetOuterHTMLParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(out *jwriter.Writer, in GetOuterHTMLParams) { out.RawByte('{') first := true _ = first @@ -4115,27 +3950,96 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetOuterHTMLParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetOuterHTMLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetOuterHTMLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom44(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom45(in *jlexer.Lexer, out *GetNodeForLocationReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(out *jwriter.Writer, in GetNodeForLocationReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetNodeForLocationReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetNodeForLocationReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom45(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetNodeForLocationReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetOuterHTMLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetNodeForLocationReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(in *jlexer.Lexer, out *RemoveAttributeParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(in *jlexer.Lexer, out *GetNodeForLocationParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4154,10 +4058,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(in *jlexer.Lexer, out *R continue } switch key { - case "nodeId": - (out.NodeID).UnmarshalEasyJSON(in) - case "name": - out.Name = string(in.String()) + case "x": + out.X = int64(in.Int64()) + case "y": + out.Y = int64(in.Int64()) default: in.SkipRecursive() } @@ -4168,7 +4072,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(in *jlexer.Lexer, out *R in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom46(out *jwriter.Writer, in RemoveAttributeParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom46(out *jwriter.Writer, in GetNodeForLocationParams) { out.RawByte('{') first := true _ = first @@ -4176,41 +4080,41 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom46(out *jwriter.Writer, in out.RawByte(',') } first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) + out.RawString("\"x\":") + out.Int64(int64(in.X)) if !first { out.RawByte(',') } first = false - out.RawString("\"name\":") - out.String(string(in.Name)) + out.RawString("\"y\":") + out.Int64(int64(in.Y)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v RemoveAttributeParams) MarshalJSON() ([]byte, error) { +func (v GetNodeForLocationParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveAttributeParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetNodeForLocationParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveAttributeParams) UnmarshalJSON(data []byte) error { +func (v *GetNodeForLocationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveAttributeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetNodeForLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(in *jlexer.Lexer, out *SetAttributesAsTextParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(in *jlexer.Lexer, out *GetHighlightObjectForTestReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4229,12 +4133,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(in *jlexer.Lexer, out *S continue } switch key { - case "nodeId": - (out.NodeID).UnmarshalEasyJSON(in) - case "text": - out.Text = string(in.String()) - case "name": - out.Name = string(in.String()) + case "highlight": + (out.Highlight).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -4245,57 +4145,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom47(out *jwriter.Writer, in SetAttributesAsTextParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom47(out *jwriter.Writer, in GetHighlightObjectForTestReturns) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - if in.Name != "" { + if (in.Highlight).IsDefined() { if !first { out.RawByte(',') } first = false - out.RawString("\"name\":") - out.String(string(in.Name)) + out.RawString("\"highlight\":") + (in.Highlight).MarshalEasyJSON(out) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetAttributesAsTextParams) MarshalJSON() ([]byte, error) { +func (v GetHighlightObjectForTestReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAttributesAsTextParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetHighlightObjectForTestReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAttributesAsTextParams) UnmarshalJSON(data []byte) error { +func (v *GetHighlightObjectForTestReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAttributesAsTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetHighlightObjectForTestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom47(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(in *jlexer.Lexer, out *SetAttributeValueParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(in *jlexer.Lexer, out *GetHighlightObjectForTestParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4316,10 +4204,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(in *jlexer.Lexer, out *S switch key { case "nodeId": (out.NodeID).UnmarshalEasyJSON(in) - case "name": - out.Name = string(in.String()) - case "value": - out.Value = string(in.String()) default: in.SkipRecursive() } @@ -4330,7 +4214,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom48(out *jwriter.Writer, in SetAttributeValueParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom48(out *jwriter.Writer, in GetHighlightObjectForTestParams) { out.RawByte('{') first := true _ = first @@ -4340,898 +4224,33 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom48(out *jwriter.Writer, in first = false out.RawString("\"nodeId\":") out.Int64(int64(in.NodeID)) - 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)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetAttributeValueParams) MarshalJSON() ([]byte, error) { +func (v GetHighlightObjectForTestParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom48(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAttributeValueParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetHighlightObjectForTestParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom48(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAttributeValueParams) UnmarshalJSON(data []byte) error { +func (v *GetHighlightObjectForTestParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAttributeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetHighlightObjectForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom48(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(in *jlexer.Lexer, out *RemoveNodeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(out *jwriter.Writer, in RemoveNodeParams) { - 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 RemoveNodeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveNodeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveNodeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveNodeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(in *jlexer.Lexer, out *SetNodeValueParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(out *jwriter.Writer, in SetNodeValueParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetNodeValueParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetNodeValueParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetNodeValueParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetNodeValueParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(in *jlexer.Lexer, out *SetNodeNameReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(out *jwriter.Writer, in SetNodeNameReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetNodeNameReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetNodeNameReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetNodeNameReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetNodeNameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(in *jlexer.Lexer, out *SetNodeNameParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(out *jwriter.Writer, in SetNodeNameParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetNodeNameParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetNodeNameParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetNodeNameParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetNodeNameParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(in *jlexer.Lexer, out *QuerySelectorAllReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeIds": - if in.IsNull() { - in.Skip() - out.NodeIds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.NodeIds = make([]cdp.NodeID, 0, 8) - } else { - out.NodeIds = []cdp.NodeID{} - } - for !in.IsDelim(']') { - var v40 cdp.NodeID - (v40).UnmarshalEasyJSON(in) - out.NodeIds = append(out.NodeIds, v40) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(out *jwriter.Writer, in QuerySelectorAllReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.NodeIds) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeIds\":") - if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v41, v42 := range in.NodeIds { - if v41 > 0 { - out.RawByte(',') - } - out.Int64(int64(v42)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v QuerySelectorAllReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v QuerySelectorAllReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *QuerySelectorAllReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *QuerySelectorAllReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(in *jlexer.Lexer, out *QuerySelectorAllParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "selector": - out.Selector = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(out *jwriter.Writer, in QuerySelectorAllParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"selector\":") - out.String(string(in.Selector)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v QuerySelectorAllParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v QuerySelectorAllParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *QuerySelectorAllParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *QuerySelectorAllParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(in *jlexer.Lexer, out *QuerySelectorReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(out *jwriter.Writer, in QuerySelectorReturns) { - out.RawByte('{') - first := true - _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v QuerySelectorReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v QuerySelectorReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *QuerySelectorReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *QuerySelectorReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(in *jlexer.Lexer, out *QuerySelectorParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "selector": - out.Selector = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(out *jwriter.Writer, in QuerySelectorParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"selector\":") - out.String(string(in.Selector)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v QuerySelectorParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v QuerySelectorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *QuerySelectorParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *QuerySelectorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(in *jlexer.Lexer, out *RequestChildNodesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "depth": - out.Depth = int64(in.Int64()) - case "pierce": - out.Pierce = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(out *jwriter.Writer, in RequestChildNodesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if in.Depth != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"depth\":") - out.Int64(int64(in.Depth)) - } - if in.Pierce { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pierce\":") - out.Bool(bool(in.Pierce)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestChildNodesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestChildNodesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestChildNodesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestChildNodesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "classNames": - if in.IsNull() { - in.Skip() - out.ClassNames = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ClassNames = make([]string, 0, 4) - } else { - out.ClassNames = []string{} - } - for !in.IsDelim(']') { - var v43 string - v43 = string(in.String()) - out.ClassNames = append(out.ClassNames, v43) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(out *jwriter.Writer, in CollectClassNamesFromSubtreeReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.ClassNames) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"classNames\":") - if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v44, v45 := range in.ClassNames { - if v44 > 0 { - out.RawByte(',') - } - out.String(string(v45)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(out *jwriter.Writer, in CollectClassNamesFromSubtreeParams) { - 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 CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(in *jlexer.Lexer, out *GetFlattenedDocumentReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(in *jlexer.Lexer, out *GetFlattenedDocumentReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5256,23 +4275,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(in *jlexer.Lexer, out *G out.Nodes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Nodes = make([]*cdp.Node, 0, 8) + if out.Nodes == nil { + if !in.IsDelim(']') { + out.Nodes = make([]*cdp.Node, 0, 8) + } else { + out.Nodes = []*cdp.Node{} + } } else { - out.Nodes = []*cdp.Node{} + out.Nodes = (out.Nodes)[:0] } for !in.IsDelim(']') { - var v46 *cdp.Node + var v28 *cdp.Node if in.IsNull() { in.Skip() - v46 = nil + v28 = nil } else { - if v46 == nil { - v46 = new(cdp.Node) + if v28 == nil { + v28 = new(cdp.Node) } - (*v46).UnmarshalEasyJSON(in) + (*v28).UnmarshalEasyJSON(in) } - out.Nodes = append(out.Nodes, v46) + out.Nodes = append(out.Nodes, v28) in.WantComma() } in.Delim(']') @@ -5287,7 +4310,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(out *jwriter.Writer, in GetFlattenedDocumentReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(out *jwriter.Writer, in GetFlattenedDocumentReturns) { out.RawByte('{') first := true _ = first @@ -5301,14 +4324,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v47, v48 := range in.Nodes { - if v47 > 0 { + for v29, v30 := range in.Nodes { + if v29 > 0 { out.RawByte(',') } - if v48 == nil { + if v30 == nil { out.RawString("null") } else { - (*v48).MarshalEasyJSON(out) + (*v30).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5320,27 +4343,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetFlattenedDocumentReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetFlattenedDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetFlattenedDocumentReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetFlattenedDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(in *jlexer.Lexer, out *GetFlattenedDocumentParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(in *jlexer.Lexer, out *GetFlattenedDocumentParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5373,7 +4396,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(out *jwriter.Writer, in GetFlattenedDocumentParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(out *jwriter.Writer, in GetFlattenedDocumentParams) { out.RawByte('{') first := true _ = first @@ -5399,27 +4422,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetFlattenedDocumentParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetFlattenedDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetFlattenedDocumentParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetFlattenedDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom50(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(in *jlexer.Lexer, out *GetDocumentReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(in *jlexer.Lexer, out *GetDocumentReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5458,7 +4481,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(out *jwriter.Writer, in GetDocumentReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(out *jwriter.Writer, in GetDocumentReturns) { out.RawByte('{') first := true _ = first @@ -5480,27 +4503,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetDocumentReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetDocumentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetDocumentReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetDocumentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom51(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(in *jlexer.Lexer, out *GetDocumentParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(in *jlexer.Lexer, out *GetDocumentParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5533,7 +4556,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(in *jlexer.Lexer, out *G in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(out *jwriter.Writer, in GetDocumentParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(out *jwriter.Writer, in GetDocumentParams) { out.RawByte('{') first := true _ = first @@ -5559,27 +4582,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v GetDocumentParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetDocumentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetDocumentParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetDocumentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom52(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(in *jlexer.Lexer, out *GetBoxModelReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5598,6 +4621,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(in *jlexer.Lexer, out *D continue } switch key { + case "model": + if in.IsNull() { + in.Skip() + out.Model = nil + } else { + if out.Model == nil { + out.Model = new(BoxModel) + } + (*out.Model).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -5608,96 +4641,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(in *jlexer.Lexer, out *D in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(out *jwriter.Writer, in GetBoxModelReturns) { out.RawByte('{') first := true _ = first + if in.Model != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"model\":") + if in.Model == nil { + out.RawString("null") + } else { + (*in.Model).MarshalEasyJSON(out) + } + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v DisableParams) MarshalJSON() ([]byte, error) { +func (v GetBoxModelReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(w, v) +func (v GetBoxModelReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *GetBoxModelReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(l, v) +func (v *GetBoxModelReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom53(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(in *jlexer.Lexer, out *EventNodeHighlightRequested) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(in *jlexer.Lexer, out *GetBoxModelParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5728,45 +4714,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(out *jwriter.Writer, in EventNodeHighlightRequested) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(out *jwriter.Writer, in GetBoxModelParams) { out.RawByte('{') first := true _ = first - if in.NodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) + 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) { +func (v GetBoxModelParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(w, v) +func (v GetBoxModelParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error { +func (v *GetBoxModelParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(l, v) +func (v *GetBoxModelParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom54(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(in *jlexer.Lexer, out *EventDistributedNodesUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(in *jlexer.Lexer, out *GetAttributesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5785,31 +4769,25 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(in *jlexer.Lexer, out *E continue } switch key { - case "insertionPointId": - (out.InsertionPointID).UnmarshalEasyJSON(in) - case "distributedNodes": + case "attributes": if in.IsNull() { in.Skip() - out.DistributedNodes = nil + out.Attributes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.DistributedNodes = make([]*cdp.BackendNode, 0, 8) + if out.Attributes == nil { + if !in.IsDelim(']') { + out.Attributes = make([]string, 0, 4) + } else { + out.Attributes = []string{} + } } else { - out.DistributedNodes = []*cdp.BackendNode{} + out.Attributes = (out.Attributes)[:0] } for !in.IsDelim(']') { - var v49 *cdp.BackendNode - if in.IsNull() { - in.Skip() - v49 = nil - } else { - if v49 == nil { - v49 = new(cdp.BackendNode) - } - (*v49).UnmarshalEasyJSON(in) - } - out.DistributedNodes = append(out.DistributedNodes, v49) + var v31 string + v31 = string(in.String()) + out.Attributes = append(out.Attributes, v31) in.WantComma() } in.Delim(']') @@ -5824,36 +4802,451 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(out *jwriter.Writer, in EventDistributedNodesUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(out *jwriter.Writer, in GetAttributesReturns) { out.RawByte('{') first := true _ = first - if in.InsertionPointID != 0 { + if len(in.Attributes) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"insertionPointId\":") - out.Int64(int64(in.InsertionPointID)) - } - if len(in.DistributedNodes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"distributedNodes\":") - if in.DistributedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"attributes\":") + if in.Attributes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v50, v51 := range in.DistributedNodes { - if v50 > 0 { + for v32, v33 := range in.Attributes { + if v32 > 0 { out.RawByte(',') } - if v51 == nil { + out.String(string(v33)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetAttributesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAttributesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom55(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAttributesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAttributesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom55(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(in *jlexer.Lexer, out *GetAttributesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(out *jwriter.Writer, in GetAttributesParams) { + 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 GetAttributesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAttributesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAttributesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAttributesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(in *jlexer.Lexer, out *FocusParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(out *jwriter.Writer, in FocusParams) { + 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 FocusParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v FocusParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom57(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *FocusParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *FocusParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom57(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(in *jlexer.Lexer, out *EventShadowRootPushed) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "hostId": + (out.HostID).UnmarshalEasyJSON(in) + case "root": + if in.IsNull() { + in.Skip() + out.Root = nil + } else { + if out.Root == nil { + out.Root = new(cdp.Node) + } + (*out.Root).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(out *jwriter.Writer, in EventShadowRootPushed) { + out.RawByte('{') + first := true + _ = first + if in.HostID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hostId\":") + out.Int64(int64(in.HostID)) + } + if in.Root != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"root\":") + if in.Root == nil { + out.RawString("null") + } else { + (*in.Root).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventShadowRootPushed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom58(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom58(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(in *jlexer.Lexer, out *EventShadowRootPopped) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "hostId": + (out.HostID).UnmarshalEasyJSON(in) + case "rootId": + (out.RootID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(out *jwriter.Writer, in EventShadowRootPopped) { + out.RawByte('{') + first := true + _ = first + if in.HostID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hostId\":") + out.Int64(int64(in.HostID)) + } + if in.RootID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"rootId\":") + out.Int64(int64(in.RootID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventShadowRootPopped) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom59(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom59(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(in *jlexer.Lexer, out *EventSetChildNodes) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "parentId": + (out.ParentID).UnmarshalEasyJSON(in) + case "nodes": + if in.IsNull() { + in.Skip() + out.Nodes = nil + } else { + in.Delim('[') + if out.Nodes == nil { + if !in.IsDelim(']') { + out.Nodes = make([]*cdp.Node, 0, 8) + } else { + out.Nodes = []*cdp.Node{} + } + } else { + out.Nodes = (out.Nodes)[:0] + } + for !in.IsDelim(']') { + var v34 *cdp.Node + if in.IsNull() { + in.Skip() + v34 = nil + } else { + if v34 == nil { + v34 = new(cdp.Node) + } + (*v34).UnmarshalEasyJSON(in) + } + out.Nodes = append(out.Nodes, v34) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(out *jwriter.Writer, in EventSetChildNodes) { + out.RawByte('{') + first := true + _ = first + if in.ParentID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"parentId\":") + out.Int64(int64(in.ParentID)) + } + if len(in.Nodes) != 0 { + 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 v35, v36 := range in.Nodes { + if v35 > 0 { + out.RawByte(',') + } + if v36 == nil { out.RawString("null") } else { - (*v51).MarshalEasyJSON(out) + (*v36).MarshalEasyJSON(out) } } out.RawByte(']') @@ -5863,29 +5256,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error) { +func (v EventSetChildNodes) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(w, v) +func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom60(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error { +func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(l, v) +func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom60(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(in *jlexer.Lexer, out *EventPseudoElementRemoved) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(in *jlexer.Lexer, out *EventPseudoElementRemoved) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5918,7 +5311,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(out *jwriter.Writer, in EventPseudoElementRemoved) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(out *jwriter.Writer, in EventPseudoElementRemoved) { out.RawByte('{') first := true _ = first @@ -5944,27 +5337,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventPseudoElementRemoved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventPseudoElementRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom61(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventPseudoElementRemoved) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventPseudoElementRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom61(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(in *jlexer.Lexer, out *EventPseudoElementAdded) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(in *jlexer.Lexer, out *EventPseudoElementAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6005,7 +5398,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(out *jwriter.Writer, in EventPseudoElementAdded) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(out *jwriter.Writer, in EventPseudoElementAdded) { out.RawByte('{') first := true _ = first @@ -6035,27 +5428,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventPseudoElementAdded) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventPseudoElementAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom62(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventPseudoElementAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventPseudoElementAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom62(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(in *jlexer.Lexer, out *EventShadowRootPopped) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(in *jlexer.Lexer, out *EventNodeHighlightRequested) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6074,10 +5467,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(in *jlexer.Lexer, out *E continue } switch key { - case "hostId": - (out.HostID).UnmarshalEasyJSON(in) - case "rootId": - (out.RootID).UnmarshalEasyJSON(in) + case "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -6088,53 +5479,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(out *jwriter.Writer, in EventShadowRootPopped) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(out *jwriter.Writer, in EventNodeHighlightRequested) { out.RawByte('{') first := true _ = first - if in.HostID != 0 { + if in.NodeID != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"hostId\":") - out.Int64(int64(in.HostID)) - } - if in.RootID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"rootId\":") - out.Int64(int64(in.RootID)) + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventShadowRootPopped) MarshalJSON() ([]byte, error) { +func (v EventNodeHighlightRequested) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventShadowRootPopped) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(w, v) +func (v EventNodeHighlightRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom63(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventShadowRootPopped) UnmarshalJSON(data []byte) error { +func (v *EventNodeHighlightRequested) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventShadowRootPopped) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(l, v) +func (v *EventNodeHighlightRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom63(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(in *jlexer.Lexer, out *EventShadowRootPushed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(in *jlexer.Lexer, out *EventInspectNodeRequested) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6153,17 +5536,97 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(in *jlexer.Lexer, out *E continue } switch key { - case "hostId": - (out.HostID).UnmarshalEasyJSON(in) - case "root": + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(out *jwriter.Writer, in EventInspectNodeRequested) { + out.RawByte('{') + first := true + _ = first + if in.BackendNodeID != 0 { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom64(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom64(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(in *jlexer.Lexer, out *EventInlineStyleInvalidated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "nodeIds": if in.IsNull() { in.Skip() - out.Root = nil + out.NodeIds = nil } else { - if out.Root == nil { - out.Root = new(cdp.Node) + in.Delim('[') + if out.NodeIds == nil { + if !in.IsDelim(']') { + out.NodeIds = make([]cdp.NodeID, 0, 8) + } else { + out.NodeIds = []cdp.NodeID{} + } + } else { + out.NodeIds = (out.NodeIds)[:0] } - (*out.Root).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v37 cdp.NodeID + (v37).UnmarshalEasyJSON(in) + out.NodeIds = append(out.NodeIds, v37) + in.WantComma() + } + in.Delim(']') } default: in.SkipRecursive() @@ -6175,57 +5638,238 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(out *jwriter.Writer, in EventShadowRootPushed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(out *jwriter.Writer, in EventInlineStyleInvalidated) { out.RawByte('{') first := true _ = first - if in.HostID != 0 { + if len(in.NodeIds) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"hostId\":") - out.Int64(int64(in.HostID)) - } - if in.Root != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"root\":") - if in.Root == nil { + out.RawString("\"nodeIds\":") + if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { - (*in.Root).MarshalEasyJSON(out) + out.RawByte('[') + for v38, v39 := range in.NodeIds { + if v38 > 0 { + out.RawByte(',') + } + out.Int64(int64(v39)) + } + out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventShadowRootPushed) MarshalJSON() ([]byte, error) { +func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventShadowRootPushed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(w, v) +func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom65(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventShadowRootPushed) UnmarshalJSON(data []byte) error { +func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventShadowRootPushed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(l, v) +func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom65(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(in *jlexer.Lexer, out *EventChildNodeRemoved) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(in *jlexer.Lexer, out *EventDocumentUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(out *jwriter.Writer, in EventDocumentUpdated) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDocumentUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom66(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom66(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(in *jlexer.Lexer, out *EventDistributedNodesUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "insertionPointId": + (out.InsertionPointID).UnmarshalEasyJSON(in) + case "distributedNodes": + if in.IsNull() { + in.Skip() + out.DistributedNodes = nil + } else { + in.Delim('[') + if out.DistributedNodes == nil { + if !in.IsDelim(']') { + out.DistributedNodes = make([]*cdp.BackendNode, 0, 8) + } else { + out.DistributedNodes = []*cdp.BackendNode{} + } + } else { + out.DistributedNodes = (out.DistributedNodes)[:0] + } + for !in.IsDelim(']') { + var v40 *cdp.BackendNode + if in.IsNull() { + in.Skip() + v40 = nil + } else { + if v40 == nil { + v40 = new(cdp.BackendNode) + } + (*v40).UnmarshalEasyJSON(in) + } + out.DistributedNodes = append(out.DistributedNodes, v40) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(out *jwriter.Writer, in EventDistributedNodesUpdated) { + out.RawByte('{') + first := true + _ = first + if in.InsertionPointID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"insertionPointId\":") + out.Int64(int64(in.InsertionPointID)) + } + if len(in.DistributedNodes) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"distributedNodes\":") + if in.DistributedNodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v41, v42 := range in.DistributedNodes { + if v41 > 0 { + out.RawByte(',') + } + if v42 == nil { + out.RawString("null") + } else { + (*v42).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDistributedNodesUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDistributedNodesUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom67(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDistributedNodesUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDistributedNodesUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom67(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(in *jlexer.Lexer, out *EventChildNodeRemoved) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6258,7 +5902,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(out *jwriter.Writer, in EventChildNodeRemoved) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(out *jwriter.Writer, in EventChildNodeRemoved) { out.RawByte('{') first := true _ = first @@ -6284,27 +5928,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventChildNodeRemoved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventChildNodeRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom68(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventChildNodeRemoved) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventChildNodeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom68(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(in *jlexer.Lexer, out *EventChildNodeInserted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(in *jlexer.Lexer, out *EventChildNodeInserted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6347,7 +5991,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(out *jwriter.Writer, in EventChildNodeInserted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(out *jwriter.Writer, in EventChildNodeInserted) { out.RawByte('{') first := true _ = first @@ -6385,27 +6029,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventChildNodeInserted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventChildNodeInserted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom69(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventChildNodeInserted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventChildNodeInserted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom69(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(in *jlexer.Lexer, out *EventChildNodeCountUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(in *jlexer.Lexer, out *EventChildNodeCountUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6438,7 +6082,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(out *jwriter.Writer, in EventChildNodeCountUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(out *jwriter.Writer, in EventChildNodeCountUpdated) { out.RawByte('{') first := true _ = first @@ -6464,27 +6108,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventChildNodeCountUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventChildNodeCountUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom70(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventChildNodeCountUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventChildNodeCountUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom70(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(in *jlexer.Lexer, out *EventCharacterDataModified) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(in *jlexer.Lexer, out *EventCharacterDataModified) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6517,7 +6161,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(out *jwriter.Writer, in EventCharacterDataModified) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(out *jwriter.Writer, in EventCharacterDataModified) { out.RawByte('{') first := true _ = first @@ -6543,124 +6187,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventCharacterDataModified) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventCharacterDataModified) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom71(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventCharacterDataModified) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventCharacterDataModified) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom71(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(in *jlexer.Lexer, out *EventInlineStyleInvalidated) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeIds": - if in.IsNull() { - in.Skip() - out.NodeIds = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.NodeIds = make([]cdp.NodeID, 0, 8) - } else { - out.NodeIds = []cdp.NodeID{} - } - for !in.IsDelim(']') { - var v52 cdp.NodeID - (v52).UnmarshalEasyJSON(in) - out.NodeIds = append(out.NodeIds, v52) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(out *jwriter.Writer, in EventInlineStyleInvalidated) { - out.RawByte('{') - first := true - _ = first - if len(in.NodeIds) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeIds\":") - if in.NodeIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v53, v54 := range in.NodeIds { - if v53 > 0 { - out.RawByte(',') - } - out.Int64(int64(v54)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventInlineStyleInvalidated) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventInlineStyleInvalidated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventInlineStyleInvalidated) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventInlineStyleInvalidated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(in *jlexer.Lexer, out *EventAttributeRemoved) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(in *jlexer.Lexer, out *EventAttributeRemoved) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6693,7 +6240,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(out *jwriter.Writer, in EventAttributeRemoved) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(out *jwriter.Writer, in EventAttributeRemoved) { out.RawByte('{') first := true _ = first @@ -6719,27 +6266,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventAttributeRemoved) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAttributeRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom72(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAttributeRemoved) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAttributeRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom72(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(in *jlexer.Lexer, out *EventAttributeModified) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(in *jlexer.Lexer, out *EventAttributeModified) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6774,7 +6321,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(out *jwriter.Writer, in EventAttributeModified) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(out *jwriter.Writer, in EventAttributeModified) { out.RawByte('{') first := true _ = first @@ -6808,27 +6355,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventAttributeModified) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAttributeModified) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom73(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAttributeModified) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAttributeModified) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom73(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(in *jlexer.Lexer, out *EventSetChildNodes) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6847,31 +6394,364 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(in *jlexer.Lexer, out *E continue } switch key { - case "parentId": - (out.ParentID).UnmarshalEasyJSON(in) - case "nodes": + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom74(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom74(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(in *jlexer.Lexer, out *DiscardSearchResultsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "searchId": + out.SearchID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(out *jwriter.Writer, in DiscardSearchResultsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"searchId\":") + out.String(string(in.SearchID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DiscardSearchResultsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DiscardSearchResultsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom75(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DiscardSearchResultsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DiscardSearchResultsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom75(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom76(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom76(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(in *jlexer.Lexer, out *CopyToReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(out *jwriter.Writer, in CopyToReturns) { + out.RawByte('{') + first := true + _ = first + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CopyToReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CopyToReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom77(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CopyToReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CopyToReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom77(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(in *jlexer.Lexer, out *CopyToParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "targetNodeId": + (out.TargetNodeID).UnmarshalEasyJSON(in) + case "insertBeforeNodeId": + (out.InsertBeforeNodeID).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(out *jwriter.Writer, in CopyToParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetNodeId\":") + out.Int64(int64(in.TargetNodeID)) + if in.InsertBeforeNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"insertBeforeNodeId\":") + out.Int64(int64(in.InsertBeforeNodeID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CopyToParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CopyToParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom78(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CopyToParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CopyToParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom78(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "classNames": if in.IsNull() { in.Skip() - out.Nodes = nil + out.ClassNames = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Nodes = make([]*cdp.Node, 0, 8) + if out.ClassNames == nil { + if !in.IsDelim(']') { + out.ClassNames = make([]string, 0, 4) + } else { + out.ClassNames = []string{} + } } else { - out.Nodes = []*cdp.Node{} + out.ClassNames = (out.ClassNames)[:0] } for !in.IsDelim(']') { - var v55 *cdp.Node - if in.IsNull() { - in.Skip() - v55 = nil - } else { - if v55 == nil { - v55 = new(cdp.Node) - } - (*v55).UnmarshalEasyJSON(in) - } - out.Nodes = append(out.Nodes, v55) + var v43 string + v43 = string(in.String()) + out.ClassNames = append(out.ClassNames, v43) in.WantComma() } in.Delim(']') @@ -6886,37 +6766,25 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom79(out *jwriter.Writer, in EventSetChildNodes) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom79(out *jwriter.Writer, in CollectClassNamesFromSubtreeReturns) { out.RawByte('{') first := true _ = first - if in.ParentID != 0 { + if len(in.ClassNames) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"parentId\":") - out.Int64(int64(in.ParentID)) - } - if len(in.Nodes) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodes\":") - if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"classNames\":") + if in.ClassNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v56, v57 := range in.Nodes { - if v56 > 0 { + for v44, v45 := range in.ClassNames { + if v44 > 0 { out.RawByte(',') } - if v57 == nil { - out.RawString("null") - } else { - (*v57).MarshalEasyJSON(out) - } + out.String(string(v45)) } out.RawByte(']') } @@ -6925,29 +6793,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom79(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v EventSetChildNodes) MarshalJSON() ([]byte, error) { +func (v CollectClassNamesFromSubtreeReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom79(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventSetChildNodes) MarshalEasyJSON(w *jwriter.Writer) { +func (v CollectClassNamesFromSubtreeReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom79(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventSetChildNodes) UnmarshalJSON(data []byte) error { +func (v *CollectClassNamesFromSubtreeReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventSetChildNodes) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CollectClassNamesFromSubtreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom79(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(in *jlexer.Lexer, out *EventInspectNodeRequested) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(in *jlexer.Lexer, out *CollectClassNamesFromSubtreeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6966,8 +6834,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(in *jlexer.Lexer, out *E continue } switch key { - case "backendNodeId": - (out.BackendNodeID).UnmarshalEasyJSON(in) + case "nodeId": + (out.NodeID).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -6978,45 +6846,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom80(out *jwriter.Writer, in EventInspectNodeRequested) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom80(out *jwriter.Writer, in CollectClassNamesFromSubtreeParams) { out.RawByte('{') first := true _ = first - if in.BackendNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendNodeId\":") - out.Int64(int64(in.BackendNodeID)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventInspectNodeRequested) MarshalJSON() ([]byte, error) { +func (v CollectClassNamesFromSubtreeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom80(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventInspectNodeRequested) MarshalEasyJSON(w *jwriter.Writer) { +func (v CollectClassNamesFromSubtreeParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom80(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventInspectNodeRequested) UnmarshalJSON(data []byte) error { +func (v *CollectClassNamesFromSubtreeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventInspectNodeRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CollectClassNamesFromSubtreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom80(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(in *jlexer.Lexer, out *EventDocumentUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(in *jlexer.Lexer, out *BoxModel) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -7035,6 +6901,112 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(in *jlexer.Lexer, out *E continue } switch key { + case "content": + if in.IsNull() { + in.Skip() + out.Content = nil + } else { + in.Delim('[') + if out.Content == nil { + if !in.IsDelim(']') { + out.Content = make(Quad, 0, 8) + } else { + out.Content = Quad{} + } + } else { + out.Content = (out.Content)[:0] + } + for !in.IsDelim(']') { + var v46 float64 + v46 = float64(in.Float64()) + out.Content = append(out.Content, v46) + in.WantComma() + } + in.Delim(']') + } + case "padding": + if in.IsNull() { + in.Skip() + out.Padding = nil + } else { + in.Delim('[') + if out.Padding == nil { + if !in.IsDelim(']') { + out.Padding = make(Quad, 0, 8) + } else { + out.Padding = Quad{} + } + } else { + out.Padding = (out.Padding)[:0] + } + for !in.IsDelim(']') { + var v47 float64 + v47 = float64(in.Float64()) + out.Padding = append(out.Padding, v47) + in.WantComma() + } + in.Delim(']') + } + case "border": + if in.IsNull() { + in.Skip() + out.Border = nil + } else { + in.Delim('[') + if out.Border == nil { + if !in.IsDelim(']') { + out.Border = make(Quad, 0, 8) + } else { + out.Border = Quad{} + } + } else { + out.Border = (out.Border)[:0] + } + for !in.IsDelim(']') { + var v48 float64 + v48 = float64(in.Float64()) + out.Border = append(out.Border, v48) + in.WantComma() + } + in.Delim(']') + } + case "margin": + if in.IsNull() { + in.Skip() + out.Margin = nil + } else { + in.Delim('[') + if out.Margin == nil { + if !in.IsDelim(']') { + out.Margin = make(Quad, 0, 8) + } else { + out.Margin = Quad{} + } + } else { + out.Margin = (out.Margin)[:0] + } + for !in.IsDelim(']') { + var v49 float64 + v49 = float64(in.Float64()) + out.Margin = append(out.Margin, v49) + in.WantComma() + } + in.Delim(']') + } + case "width": + out.Width = int64(in.Int64()) + case "height": + out.Height = int64(in.Int64()) + case "shapeOutside": + if in.IsNull() { + in.Skip() + out.ShapeOutside = nil + } else { + if out.ShapeOutside == nil { + out.ShapeOutside = new(ShapeOutsideInfo) + } + (*out.ShapeOutside).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -7045,33 +7017,137 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(in *jlexer.Lexer, out *E in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom81(out *jwriter.Writer, in EventDocumentUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom81(out *jwriter.Writer, in BoxModel) { out.RawByte('{') first := true _ = first + if len(in.Content) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"content\":") + if in.Content == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v50, v51 := range in.Content { + if v50 > 0 { + out.RawByte(',') + } + out.Float64(float64(v51)) + } + out.RawByte(']') + } + } + if len(in.Padding) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"padding\":") + if in.Padding == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v52, v53 := range in.Padding { + if v52 > 0 { + out.RawByte(',') + } + out.Float64(float64(v53)) + } + out.RawByte(']') + } + } + if len(in.Border) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"border\":") + if in.Border == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v54, v55 := range in.Border { + if v54 > 0 { + out.RawByte(',') + } + out.Float64(float64(v55)) + } + out.RawByte(']') + } + } + if len(in.Margin) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"margin\":") + if in.Margin == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v56, v57 := range in.Margin { + if v56 > 0 { + out.RawByte(',') + } + out.Float64(float64(v57)) + } + out.RawByte(']') + } + } + if in.Width != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Int64(int64(in.Width)) + } + if in.Height != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Int64(int64(in.Height)) + } + if in.ShapeOutside != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"shapeOutside\":") + if in.ShapeOutside == nil { + out.RawString("null") + } else { + (*in.ShapeOutside).MarshalEasyJSON(out) + } + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventDocumentUpdated) MarshalJSON() ([]byte, error) { +func (v BoxModel) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom81(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDocumentUpdated) MarshalEasyJSON(w *jwriter.Writer) { +func (v BoxModel) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom81(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDocumentUpdated) UnmarshalJSON(data []byte) error { +func (v *BoxModel) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDocumentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *BoxModel) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom81(l, v) } diff --git a/cdp/domdebugger/easyjson.go b/cdp/domdebugger/easyjson.go index 99b3609..0f873ce 100644 --- a/cdp/domdebugger/easyjson.go +++ b/cdp/domdebugger/easyjson.go @@ -18,7 +18,779 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(in *jlexer.Lexer, out *EventListener) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(in *jlexer.Lexer, out *SetXHRBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(out *jwriter.Writer, in SetXHRBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetXHRBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetXHRBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(in *jlexer.Lexer, out *SetInstrumentationBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "eventName": + out.EventName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(out *jwriter.Writer, in SetInstrumentationBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(in *jlexer.Lexer, out *SetEventListenerBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "eventName": + out.EventName = string(in.String()) + case "targetName": + out.TargetName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(out *jwriter.Writer, in SetEventListenerBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + if in.TargetName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetName\":") + out.String(string(in.TargetName)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(in *jlexer.Lexer, out *SetDOMBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "type": + (out.Type).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(out *jwriter.Writer, in SetDOMBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetDOMBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDOMBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(in *jlexer.Lexer, out *RemoveXHRBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(out *jwriter.Writer, in RemoveXHRBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveXHRBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveXHRBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(in *jlexer.Lexer, out *RemoveInstrumentationBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "eventName": + out.EventName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(out *jwriter.Writer, in RemoveInstrumentationBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(in *jlexer.Lexer, out *RemoveEventListenerBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "eventName": + out.EventName = string(in.String()) + case "targetName": + out.TargetName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(out *jwriter.Writer, in RemoveEventListenerBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + if in.TargetName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetName\":") + out.String(string(in.TargetName)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(in *jlexer.Lexer, out *RemoveDOMBreakpointParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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) + case "type": + (out.Type).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(out *jwriter.Writer, in RemoveDOMBreakpointParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveDOMBreakpointParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveDOMBreakpointParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(in *jlexer.Lexer, out *GetEventListenersReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "listeners": + if in.IsNull() { + in.Skip() + out.Listeners = nil + } else { + in.Delim('[') + if out.Listeners == nil { + if !in.IsDelim(']') { + out.Listeners = make([]*EventListener, 0, 8) + } else { + out.Listeners = []*EventListener{} + } + } else { + out.Listeners = (out.Listeners)[:0] + } + for !in.IsDelim(']') { + var v1 *EventListener + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(EventListener) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Listeners = append(out.Listeners, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(out *jwriter.Writer, in GetEventListenersReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.Listeners) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"listeners\":") + if in.Listeners == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.Listeners { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetEventListenersReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEventListenersReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEventListenersReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEventListenersReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(in *jlexer.Lexer, out *GetEventListenersParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectId": + out.ObjectID = runtime.RemoteObjectID(in.String()) + case "depth": + out.Depth = int64(in.Int64()) + case "pierce": + out.Pierce = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(out *jwriter.Writer, in GetEventListenersParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + if in.Depth != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"depth\":") + out.Int64(int64(in.Depth)) + } + if in.Pierce { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pierce\":") + out.Bool(bool(in.Pierce)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetEventListenersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEventListenersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEventListenersParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEventListenersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger10(in *jlexer.Lexer, out *EventListener) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -83,7 +855,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(out *jwriter.Writer, in EventListener) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(out *jwriter.Writer, in EventListener) { out.RawByte('{') first := true _ = first @@ -180,792 +952,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventListener) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventListener) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventListener) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventListener) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(in *jlexer.Lexer, out *GetEventListenersReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "listeners": - if in.IsNull() { - in.Skip() - out.Listeners = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Listeners = make([]*EventListener, 0, 8) - } else { - out.Listeners = []*EventListener{} - } - for !in.IsDelim(']') { - var v1 *EventListener - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(EventListener) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Listeners = append(out.Listeners, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(out *jwriter.Writer, in GetEventListenersReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.Listeners) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"listeners\":") - if in.Listeners == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Listeners { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetEventListenersReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetEventListenersReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetEventListenersReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetEventListenersReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(in *jlexer.Lexer, out *GetEventListenersParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectId": - out.ObjectID = runtime.RemoteObjectID(in.String()) - case "depth": - out.Depth = int64(in.Int64()) - case "pierce": - out.Pierce = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(out *jwriter.Writer, in GetEventListenersParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - if in.Depth != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"depth\":") - out.Int64(int64(in.Depth)) - } - if in.Pierce { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pierce\":") - out.Bool(bool(in.Pierce)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetEventListenersParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetEventListenersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetEventListenersParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetEventListenersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(in *jlexer.Lexer, out *RemoveXHRBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(out *jwriter.Writer, in RemoveXHRBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveXHRBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveXHRBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(in *jlexer.Lexer, out *SetXHRBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(out *jwriter.Writer, in SetXHRBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetXHRBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetXHRBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetXHRBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetXHRBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(in *jlexer.Lexer, out *RemoveInstrumentationBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "eventName": - out.EventName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(out *jwriter.Writer, in RemoveInstrumentationBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"eventName\":") - out.String(string(in.EventName)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(in *jlexer.Lexer, out *SetInstrumentationBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "eventName": - out.EventName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(out *jwriter.Writer, in SetInstrumentationBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"eventName\":") - out.String(string(in.EventName)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetInstrumentationBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetInstrumentationBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetInstrumentationBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetInstrumentationBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(in *jlexer.Lexer, out *RemoveEventListenerBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "eventName": - out.EventName = string(in.String()) - case "targetName": - out.TargetName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(out *jwriter.Writer, in RemoveEventListenerBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"eventName\":") - out.String(string(in.EventName)) - if in.TargetName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetName\":") - out.String(string(in.TargetName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(in *jlexer.Lexer, out *SetEventListenerBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "eventName": - out.EventName = string(in.String()) - case "targetName": - out.TargetName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(out *jwriter.Writer, in SetEventListenerBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"eventName\":") - out.String(string(in.EventName)) - if in.TargetName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetName\":") - out.String(string(in.TargetName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetEventListenerBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetEventListenerBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetEventListenerBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetEventListenerBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(in *jlexer.Lexer, out *RemoveDOMBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "type": - (out.Type).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(out *jwriter.Writer, in RemoveDOMBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveDOMBreakpointParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveDOMBreakpointParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger10(in *jlexer.Lexer, out *SetDOMBreakpointParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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) - case "type": - (out.Type).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(out *jwriter.Writer, in SetDOMBreakpointParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetDOMBreakpointParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDOMBreakpointParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventListener) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomdebugger10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDOMBreakpointParams) UnmarshalJSON(data []byte) error { +func (v *EventListener) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDOMBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventListener) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomdebugger10(l, v) } diff --git a/cdp/domstorage/easyjson.go b/cdp/domstorage/easyjson.go index 346a236..bda7d41 100644 --- a/cdp/domstorage/easyjson.go +++ b/cdp/domstorage/easyjson.go @@ -96,7 +96,482 @@ func (v *StorageID) UnmarshalJSON(data []byte) error { func (v *StorageID) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(in *jlexer.Lexer, out *EventDomStorageItemUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(in *jlexer.Lexer, out *SetDOMStorageItemParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } + case "key": + out.Key = string(in.String()) + case "value": + out.Value = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(out *jwriter.Writer, in SetDOMStorageItemParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"key\":") + out.String(string(in.Key)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(in *jlexer.Lexer, out *RemoveDOMStorageItemParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } + case "key": + out.Key = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(out *jwriter.Writer, in RemoveDOMStorageItemParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"key\":") + out.String(string(in.Key)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(in *jlexer.Lexer, out *GetDOMStorageItemsReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "entries": + if in.IsNull() { + in.Skip() + out.Entries = nil + } else { + in.Delim('[') + if out.Entries == nil { + if !in.IsDelim(']') { + out.Entries = make([]Item, 0, 2) + } else { + out.Entries = []Item{} + } + } else { + out.Entries = (out.Entries)[:0] + } + for !in.IsDelim(']') { + var v1 Item + if in.IsNull() { + in.Skip() + v1 = nil + } else { + in.Delim('[') + if v1 == nil { + if !in.IsDelim(']') { + v1 = make(Item, 0, 4) + } else { + v1 = Item{} + } + } else { + v1 = (v1)[:0] + } + for !in.IsDelim(']') { + var v2 string + v2 = string(in.String()) + v1 = append(v1, v2) + in.WantComma() + } + in.Delim(']') + } + out.Entries = append(out.Entries, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(out *jwriter.Writer, in GetDOMStorageItemsReturns) { + out.RawByte('{') + first := true + _ = first + 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 v3, v4 := range in.Entries { + if v3 > 0 { + out.RawByte(',') + } + if v4 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range v4 { + if v5 > 0 { + out.RawByte(',') + } + out.String(string(v6)) + } + out.RawByte(']') + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetDOMStorageItemsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetDOMStorageItemsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetDOMStorageItemsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetDOMStorageItemsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(in *jlexer.Lexer, out *GetDOMStorageItemsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(out *jwriter.Writer, in GetDOMStorageItemsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(in *jlexer.Lexer, out *EventDomStorageItemsCleared) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(out *jwriter.Writer, in EventDomStorageItemsCleared) { + out.RawByte('{') + first := true + _ = first + if in.StorageID != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDomStorageItemsCleared) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDomStorageItemsCleared) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDomStorageItemsCleared) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDomStorageItemsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(in *jlexer.Lexer, out *EventDomStorageItemUpdated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -141,7 +616,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(out *jwriter.Writer, in EventDomStorageItemUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(out *jwriter.Writer, in EventDomStorageItemUpdated) { out.RawByte('{') first := true _ = first @@ -187,27 +662,118 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventDomStorageItemUpdated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDomStorageItemUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDomStorageItemUpdated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDomStorageItemUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(in *jlexer.Lexer, out *EventDomStorageItemAdded) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(in *jlexer.Lexer, out *EventDomStorageItemRemoved) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } + case "key": + out.Key = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(out *jwriter.Writer, in EventDomStorageItemRemoved) { + out.RawByte('{') + first := true + _ = first + if in.StorageID != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } + } + if in.Key != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"key\":") + out.String(string(in.Key)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDomStorageItemRemoved) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDomStorageItemRemoved) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDomStorageItemRemoved) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDomStorageItemRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage8(in *jlexer.Lexer, out *EventDomStorageItemAdded) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -250,7 +816,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(out *jwriter.Writer, in EventDomStorageItemAdded) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage8(out *jwriter.Writer, in EventDomStorageItemAdded) { out.RawByte('{') first := true _ = first @@ -287,586 +853,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v EventDomStorageItemAdded) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDomStorageItemAdded) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDomStorageItemAdded) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDomStorageItemAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(in *jlexer.Lexer, out *EventDomStorageItemRemoved) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } - case "key": - out.Key = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(out *jwriter.Writer, in EventDomStorageItemRemoved) { - out.RawByte('{') - first := true - _ = first - if in.StorageID != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } - } - if in.Key != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"key\":") - out.String(string(in.Key)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventDomStorageItemRemoved) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDomStorageItemRemoved) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDomStorageItemRemoved) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDomStorageItemRemoved) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(in *jlexer.Lexer, out *EventDomStorageItemsCleared) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(out *jwriter.Writer, in EventDomStorageItemsCleared) { - out.RawByte('{') - first := true - _ = first - if in.StorageID != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventDomStorageItemsCleared) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDomStorageItemsCleared) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDomStorageItemsCleared) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDomStorageItemsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(in *jlexer.Lexer, out *RemoveDOMStorageItemParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } - case "key": - out.Key = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(out *jwriter.Writer, in RemoveDOMStorageItemParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"key\":") - out.String(string(in.Key)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveDOMStorageItemParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveDOMStorageItemParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(in *jlexer.Lexer, out *SetDOMStorageItemParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } - case "key": - out.Key = string(in.String()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(out *jwriter.Writer, in SetDOMStorageItemParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"key\":") - out.String(string(in.Key)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetDOMStorageItemParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDOMStorageItemParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDOMStorageItemParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDOMStorageItemParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(in *jlexer.Lexer, out *GetDOMStorageItemsReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "entries": - if in.IsNull() { - in.Skip() - out.Entries = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Entries = make([]Item, 0, 2) - } else { - out.Entries = []Item{} - } - for !in.IsDelim(']') { - var v1 Item - if in.IsNull() { - in.Skip() - v1 = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - v1 = make(Item, 0, 4) - } else { - v1 = Item{} - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - v1 = append(v1, v2) - in.WantComma() - } - in.Delim(']') - } - out.Entries = append(out.Entries, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(out *jwriter.Writer, in GetDOMStorageItemsReturns) { - out.RawByte('{') - first := true - _ = first - 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 v3, v4 := range in.Entries { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range v4 { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetDOMStorageItemsReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetDOMStorageItemsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetDOMStorageItemsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetDOMStorageItemsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage8(in *jlexer.Lexer, out *GetDOMStorageItemsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage8(out *jwriter.Writer, in GetDOMStorageItemsParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetDOMStorageItemsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetDOMStorageItemsParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventDomStorageItemAdded) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetDOMStorageItemsParams) UnmarshalJSON(data []byte) error { +func (v *EventDomStorageItemAdded) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetDOMStorageItemsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventDomStorageItemAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(in *jlexer.Lexer, out *ClearParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -885,16 +893,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(in *jlexer.Lexer, continue } switch key { - case "storageId": - if in.IsNull() { - in.Skip() - out.StorageID = nil - } else { - if out.StorageID == nil { - out.StorageID = new(StorageID) - } - (*out.StorageID).UnmarshalEasyJSON(in) - } default: in.SkipRecursive() } @@ -905,44 +903,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage9(out *jwriter.Writer, in ClearParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage9(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"storageId\":") - if in.StorageID == nil { - out.RawString("null") - } else { - (*in.StorageID).MarshalEasyJSON(out) - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v ClearParams) MarshalJSON() ([]byte, error) { +func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearParams) UnmarshalJSON(data []byte) error { +func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage9(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage10(in *jlexer.Lexer, out *DisableParams) { @@ -1004,7 +992,7 @@ func (v *DisableParams) UnmarshalJSON(data []byte) error { func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(in *jlexer.Lexer, out *ClearParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1023,6 +1011,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(in *jlexer.Lexer, continue } switch key { + case "storageId": + if in.IsNull() { + in.Skip() + out.StorageID = nil + } else { + if out.StorageID == nil { + out.StorageID = new(StorageID) + } + (*out.StorageID).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1033,33 +1031,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage11(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage11(out *jwriter.Writer, in ClearParams) { out.RawByte('{') first := true _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"storageId\":") + if in.StorageID == nil { + out.RawString("null") + } else { + (*in.StorageID).MarshalEasyJSON(out) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EnableParams) MarshalJSON() ([]byte, error) { +func (v ClearParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDomstorage11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *ClearParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDomstorage11(l, v) } diff --git a/cdp/easyjson.go b/cdp/easyjson.go index 1e758ba..3aeefec 100644 --- a/cdp/easyjson.go +++ b/cdp/easyjson.go @@ -157,10 +157,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(in *jlexer.Lexer, out *Node) out.Children = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Children = make([]*Node, 0, 8) + if out.Children == nil { + if !in.IsDelim(']') { + out.Children = make([]*Node, 0, 8) + } else { + out.Children = []*Node{} + } } else { - out.Children = []*Node{} + out.Children = (out.Children)[:0] } for !in.IsDelim(']') { var v1 *Node @@ -184,10 +188,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(in *jlexer.Lexer, out *Node) out.Attributes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Attributes = make([]string, 0, 4) + if out.Attributes == nil { + if !in.IsDelim(']') { + out.Attributes = make([]string, 0, 4) + } else { + out.Attributes = []string{} + } } else { - out.Attributes = []string{} + out.Attributes = (out.Attributes)[:0] } for !in.IsDelim(']') { var v2 string @@ -235,10 +243,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(in *jlexer.Lexer, out *Node) out.ShadowRoots = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.ShadowRoots = make([]*Node, 0, 8) + if out.ShadowRoots == nil { + if !in.IsDelim(']') { + out.ShadowRoots = make([]*Node, 0, 8) + } else { + out.ShadowRoots = []*Node{} + } } else { - out.ShadowRoots = []*Node{} + out.ShadowRoots = (out.ShadowRoots)[:0] } for !in.IsDelim(']') { var v3 *Node @@ -272,10 +284,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(in *jlexer.Lexer, out *Node) out.PseudoElements = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.PseudoElements = make([]*Node, 0, 8) + if out.PseudoElements == nil { + if !in.IsDelim(']') { + out.PseudoElements = make([]*Node, 0, 8) + } else { + out.PseudoElements = []*Node{} + } } else { - out.PseudoElements = []*Node{} + out.PseudoElements = (out.PseudoElements)[:0] } for !in.IsDelim(']') { var v4 *Node @@ -309,10 +325,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(in *jlexer.Lexer, out *Node) out.DistributedNodes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.DistributedNodes = make([]*BackendNode, 0, 8) + if out.DistributedNodes == nil { + if !in.IsDelim(']') { + out.DistributedNodes = make([]*BackendNode, 0, 8) + } else { + out.DistributedNodes = []*BackendNode{} + } } else { - out.DistributedNodes = []*BackendNode{} + out.DistributedNodes = (out.DistributedNodes)[:0] } for !in.IsDelim(']') { var v5 *BackendNode @@ -679,7 +699,7 @@ func (v *Node) UnmarshalJSON(data []byte) error { func (v *Node) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdp1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(in *jlexer.Lexer, out *BackendNode) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(in *jlexer.Lexer, out *MessageError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -698,12 +718,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(in *jlexer.Lexer, out *Backe continue } switch key { - case "nodeType": - (out.NodeType).UnmarshalEasyJSON(in) - case "nodeName": - out.NodeName = string(in.String()) - case "backendNodeId": - (out.BackendNodeID).UnmarshalEasyJSON(in) + case "code": + out.Code = int64(in.Int64()) + case "message": + out.Message = string(in.String()) default: in.SkipRecursive() } @@ -714,61 +732,174 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(in *jlexer.Lexer, out *Backe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp2(out *jwriter.Writer, in BackendNode) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp2(out *jwriter.Writer, in MessageError) { out.RawByte('{') first := true _ = first - if in.NodeType != 0 { + if in.Code != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"nodeType\":") - (in.NodeType).MarshalEasyJSON(out) + out.RawString("\"code\":") + out.Int64(int64(in.Code)) } - if in.NodeName != "" { + if in.Message != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"nodeName\":") - out.String(string(in.NodeName)) - } - if in.BackendNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendNodeId\":") - out.Int64(int64(in.BackendNodeID)) + out.RawString("\"message\":") + out.String(string(in.Message)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v BackendNode) MarshalJSON() ([]byte, error) { +func (v MessageError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdp2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v BackendNode) MarshalEasyJSON(w *jwriter.Writer) { +func (v MessageError) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdp2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *BackendNode) UnmarshalJSON(data []byte) error { +func (v *MessageError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *BackendNode) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *MessageError) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdp2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(in *jlexer.Lexer, out *Frame) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(in *jlexer.Lexer, out *Message) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "method": + (out.Method).UnmarshalEasyJSON(in) + case "params": + (out.Params).UnmarshalEasyJSON(in) + case "result": + (out.Result).UnmarshalEasyJSON(in) + case "error": + if in.IsNull() { + in.Skip() + out.Error = nil + } else { + if out.Error == nil { + out.Error = new(MessageError) + } + (*out.Error).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(out *jwriter.Writer, in Message) { + out.RawByte('{') + first := true + _ = first + if in.ID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.Int64(int64(in.ID)) + } + if in.Method != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"method\":") + (in.Method).MarshalEasyJSON(out) + } + if (in.Params).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"params\":") + (in.Params).MarshalEasyJSON(out) + } + if (in.Result).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"result\":") + (in.Result).MarshalEasyJSON(out) + } + if in.Error != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"error\":") + if in.Error == nil { + out.RawString("null") + } else { + (*in.Error).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Message) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Message) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Message) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp4(in *jlexer.Lexer, out *Frame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -811,7 +942,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(in *jlexer.Lexer, out *Frame in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(out *jwriter.Writer, in Frame) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp4(out *jwriter.Writer, in Frame) { out.RawByte('{') first := true _ = first @@ -876,149 +1007,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(out *jwriter.Writer, in Fram // MarshalJSON supports json.Marshaler interface func (v Frame) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Frame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdp3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Frame) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Frame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdp3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp4(in *jlexer.Lexer, out *Message) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "method": - (out.Method).UnmarshalEasyJSON(in) - case "params": - (out.Params).UnmarshalEasyJSON(in) - case "result": - (out.Result).UnmarshalEasyJSON(in) - case "error": - if in.IsNull() { - in.Skip() - out.Error = nil - } else { - if out.Error == nil { - out.Error = new(MessageError) - } - (*out.Error).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp4(out *jwriter.Writer, in Message) { - out.RawByte('{') - first := true - _ = first - if in.ID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"id\":") - out.Int64(int64(in.ID)) - } - if in.Method != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"method\":") - (in.Method).MarshalEasyJSON(out) - } - if (in.Params).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"params\":") - (in.Params).MarshalEasyJSON(out) - } - if (in.Result).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"result\":") - (in.Result).MarshalEasyJSON(out) - } - if in.Error != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"error\":") - if in.Error == nil { - out.RawString("null") - } else { - (*in.Error).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Message) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdp4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Message) MarshalEasyJSON(w *jwriter.Writer) { +func (v Frame) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdp4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Message) UnmarshalJSON(data []byte) error { +func (v *Frame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdp4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Frame) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdp4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(in *jlexer.Lexer, out *MessageError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(in *jlexer.Lexer, out *BackendNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1037,10 +1047,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(in *jlexer.Lexer, out *Messa continue } switch key { - case "code": - out.Code = int64(in.Int64()) - case "message": - out.Message = string(in.String()) + case "nodeType": + (out.NodeType).UnmarshalEasyJSON(in) + case "nodeName": + out.NodeName = string(in.String()) + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -1051,49 +1063,57 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(in *jlexer.Lexer, out *Messa in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp5(out *jwriter.Writer, in MessageError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdp5(out *jwriter.Writer, in BackendNode) { out.RawByte('{') first := true _ = first - if in.Code != 0 { + if in.NodeType != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"code\":") - out.Int64(int64(in.Code)) + out.RawString("\"nodeType\":") + (in.NodeType).MarshalEasyJSON(out) } - if in.Message != "" { + if in.NodeName != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"message\":") - out.String(string(in.Message)) + out.RawString("\"nodeName\":") + out.String(string(in.NodeName)) + } + if in.BackendNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v MessageError) MarshalJSON() ([]byte, error) { +func (v BackendNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdp5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v MessageError) MarshalEasyJSON(w *jwriter.Writer) { +func (v BackendNode) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdp5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *MessageError) UnmarshalJSON(data []byte) error { +func (v *BackendNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MessageError) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *BackendNode) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdp5(l, v) } diff --git a/cdp/emulation/easyjson.go b/cdp/emulation/easyjson.go index 7b88d2f..38ba90c 100644 --- a/cdp/emulation/easyjson.go +++ b/cdp/emulation/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(in *jlexer.Lexer, out *ScreenOrientation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(in *jlexer.Lexer, out *SetVisibleSizeParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,10 +37,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(in *jlexer.Lexer, ou continue } switch key { - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "angle": - out.Angle = int64(in.Int64()) + case "width": + out.Width = int64(in.Int64()) + case "height": + out.Height = int64(in.Int64()) default: in.SkipRecursive() } @@ -51,193 +51,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(out *jwriter.Writer, in ScreenOrientation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(out *jwriter.Writer, in SetVisibleSizeParams) { out.RawByte('{') first := true _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') } - if in.Angle != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"angle\":") - out.Int64(int64(in.Angle)) + first = false + out.RawString("\"width\":") + out.Int64(int64(in.Width)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"height\":") + out.Int64(int64(in.Height)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v ScreenOrientation) MarshalJSON() ([]byte, error) { +func (v SetVisibleSizeParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) { +func (v SetVisibleSizeParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ScreenOrientation) UnmarshalJSON(data []byte) error { +func (v *SetVisibleSizeParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SetVisibleSizeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "color": - if in.IsNull() { - in.Skip() - out.Color = nil - } else { - if out.Color == nil { - out.Color = new(cdp.RGBA) - } - (*out.Color).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) { - out.RawByte('{') - first := true - _ = first - 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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(in *jlexer.Lexer, out *SetVirtualTimePolicyParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(in *jlexer.Lexer, out *SetVirtualTimePolicyParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -270,7 +126,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(out *jwriter.Writer, in SetVirtualTimePolicyParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(out *jwriter.Writer, in SetVirtualTimePolicyParams) { out.RawByte('{') first := true _ = first @@ -294,289 +150,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetVirtualTimePolicyParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetVirtualTimePolicyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetVirtualTimePolicyParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetVirtualTimePolicyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *CanEmulateReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in CanEmulateReturns) { - 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 CanEmulateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *CanEmulateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in CanEmulateParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CanEmulateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rate": - out.Rate = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetCPUThrottlingRateParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"rate\":") - out.Float64(float64(in.Rate)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetEmulatedMediaParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "media": - out.Media = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetEmulatedMediaParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"media\":") - out.String(string(in.Media)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetTouchEmulationEnabledParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(in *jlexer.Lexer, out *SetTouchEmulationEnabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -609,7 +203,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetTouchEmulationEnabledParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(out *jwriter.Writer, in SetTouchEmulationEnabledParams) { out.RawByte('{') first := true _ = first @@ -633,27 +227,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetTouchEmulationEnabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetTouchEmulationEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetTouchEmulationEnabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetTouchEmulationEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(in *jlexer.Lexer, out *SetScriptExecutionDisabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -672,6 +266,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, o continue } switch key { + case "value": + out.Value = bool(in.Bool()) default: in.SkipRecursive() } @@ -682,37 +278,110 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in ClearGeolocationOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(out *jwriter.Writer, in SetScriptExecutionDisabledParams) { out.RawByte('{') first := true _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.Bool(bool(in.Value)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) { +func (v SetScriptExecutionDisabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v) +func (v SetScriptExecutionDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error { +func (v *SetScriptExecutionDisabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v) +func (v *SetScriptExecutionDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *SetGeolocationOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetPageScaleFactorParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "pageScaleFactor": + out.PageScaleFactor = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetPageScaleFactorParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageScaleFactor\":") + out.Float64(float64(in.PageScaleFactor)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetPageScaleFactorParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetGeolocationOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -747,7 +416,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in SetGeolocationOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetGeolocationOverrideParams) { out.RawByte('{') first := true _ = first @@ -781,27 +450,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *SetScriptExecutionDisabledParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetEmulatedMediaParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -820,8 +489,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, continue } switch key { - case "value": - out.Value = bool(in.Bool()) + case "media": + out.Media = string(in.String()) default: in.SkipRecursive() } @@ -832,7 +501,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in SetScriptExecutionDisabledParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetEmulatedMediaParams) { out.RawByte('{') first := true _ = first @@ -840,437 +509,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Write out.RawByte(',') } first = false - out.RawString("\"value\":") - out.Bool(bool(in.Value)) + out.RawString("\"media\":") + out.String(string(in.Media)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetScriptExecutionDisabledParams) MarshalJSON() ([]byte, error) { +func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetScriptExecutionDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v) +func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetScriptExecutionDisabledParams) UnmarshalJSON(data []byte) error { +func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetScriptExecutionDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v) +func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *SetVisibleSizeParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "width": - out.Width = int64(in.Int64()) - case "height": - out.Height = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in SetVisibleSizeParams) { - out.RawByte('{') - first := true - _ = first - 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)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetVisibleSizeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetVisibleSizeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetVisibleSizeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetVisibleSizeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *SetPageScaleFactorParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "pageScaleFactor": - out.PageScaleFactor = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in SetPageScaleFactorParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pageScaleFactor\":") - out.Float64(float64(in.PageScaleFactor)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetPageScaleFactorParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *ResetPageScaleFactorParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in ResetPageScaleFactorParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ResetViewportParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ResetViewportParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResetViewportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResetViewportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResetViewportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResetViewportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *ForceViewportParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "scale": - out.Scale = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in ForceViewportParams) { - 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("\"scale\":") - out.Float64(float64(in.Scale)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ForceViewportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ForceViewportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ForceViewportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ForceViewportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1329,7 +596,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) { out.RawByte('{') first := true _ = first @@ -1421,23 +688,756 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "color": + if in.IsNull() { + in.Skip() + out.Color = nil + } else { + if out.Color == nil { + out.Color = new(cdp.RGBA) + } + (*out.Color).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) { + out.RawByte('{') + first := true + _ = first + 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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "rate": + out.Rate = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in SetCPUThrottlingRateParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"rate\":") + out.Float64(float64(in.Rate)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *ScreenOrientation) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "angle": + out.Angle = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in ScreenOrientation) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.Angle != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"angle\":") + out.Int64(int64(in.Angle)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ScreenOrientation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScreenOrientation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *ResetViewportParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in ResetViewportParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ResetViewportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResetViewportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResetViewportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResetViewportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *ResetPageScaleFactorParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in ResetPageScaleFactorParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *ForceViewportParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "scale": + out.Scale = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in ForceViewportParams) { + 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("\"scale\":") + out.Float64(float64(in.Scale)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ForceViewportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ForceViewportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ForceViewportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ForceViewportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in ClearGeolocationOverrideParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(in *jlexer.Lexer, out *CanEmulateReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(out *jwriter.Writer, in CanEmulateReturns) { + 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 CanEmulateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(in *jlexer.Lexer, out *CanEmulateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(out *jwriter.Writer, in CanEmulateParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CanEmulateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation18(l, v) } diff --git a/cdp/heapprofiler/easyjson.go b/cdp/heapprofiler/easyjson.go index b668c17..2fd31d7 100644 --- a/cdp/heapprofiler/easyjson.go +++ b/cdp/heapprofiler/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(in *jlexer.Lexer, out *SamplingHeapProfile) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(in *jlexer.Lexer, out *TakeHeapSnapshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,16 +37,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(in *jlexer.Lexer, continue } switch key { - case "head": - if in.IsNull() { - in.Skip() - out.Head = nil - } else { - if out.Head == nil { - out.Head = new(SamplingHeapProfileNode) - } - (*out.Head).UnmarshalEasyJSON(in) - } + case "reportProgress": + out.ReportProgress = bool(in.Bool()) default: in.SkipRecursive() } @@ -57,49 +49,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler(out *jwriter.Writer, in SamplingHeapProfile) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler(out *jwriter.Writer, in TakeHeapSnapshotParams) { out.RawByte('{') first := true _ = first - if in.Head != nil { + if in.ReportProgress { if !first { out.RawByte(',') } first = false - out.RawString("\"head\":") - if in.Head == nil { - out.RawString("null") - } else { - (*in.Head).MarshalEasyJSON(out) - } + out.RawString("\"reportProgress\":") + out.Bool(bool(in.ReportProgress)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SamplingHeapProfile) MarshalJSON() ([]byte, error) { +func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer) { +func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error { +func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(in *jlexer.Lexer, out *SamplingHeapProfileNode) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(in *jlexer.Lexer, out *StopTrackingHeapObjectsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -118,45 +106,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(in *jlexer.Lexer continue } switch key { - 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 "selfSize": - out.SelfSize = float64(in.Float64()) - case "children": - if in.IsNull() { - in.Skip() - out.Children = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Children = make([]*SamplingHeapProfileNode, 0, 8) - } else { - out.Children = []*SamplingHeapProfileNode{} - } - for !in.IsDelim(']') { - var v1 *SamplingHeapProfileNode - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(SamplingHeapProfileNode) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Children = append(out.Children, v1) - in.WantComma() - } - in.Delim(']') - } + case "reportProgress": + out.ReportProgress = bool(in.Bool()) default: in.SkipRecursive() } @@ -167,77 +118,42 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler1(out *jwriter.Writer, in SamplingHeapProfileNode) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler1(out *jwriter.Writer, in StopTrackingHeapObjectsParams) { out.RawByte('{') first := true _ = first - if in.CallFrame != nil { + if in.ReportProgress { if !first { out.RawByte(',') } first = false - out.RawString("\"callFrame\":") - if in.CallFrame == nil { - out.RawString("null") - } else { - (*in.CallFrame).MarshalEasyJSON(out) - } - } - if in.SelfSize != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"selfSize\":") - out.Float64(float64(in.SelfSize)) - } - 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 v2, v3 := range in.Children { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + out.RawString("\"reportProgress\":") + out.Bool(bool(in.ReportProgress)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error) { +func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer) { +func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error { +func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler1(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler2(in *jlexer.Lexer, out *StopSamplingReturns) { @@ -380,7 +296,76 @@ func (v *StopSamplingParams) UnmarshalJSON(data []byte) error { func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(in *jlexer.Lexer, out *StartSamplingParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(in *jlexer.Lexer, out *StartTrackingHeapObjectsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "trackAllocations": + out.TrackAllocations = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(out *jwriter.Writer, in StartTrackingHeapObjectsParams) { + out.RawByte('{') + first := true + _ = first + if in.TrackAllocations { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"trackAllocations\":") + out.Bool(bool(in.TrackAllocations)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler5(in *jlexer.Lexer, out *StartSamplingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -411,7 +396,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(out *jwriter.Writer, in StartSamplingParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler5(out *jwriter.Writer, in StartSamplingParams) { out.RawByte('{') first := true _ = first @@ -428,97 +413,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(out *jwriter.Wri // MarshalJSON supports json.Marshaler interface func (v StartSamplingParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartSamplingParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler5(in *jlexer.Lexer, out *GetHeapObjectIDReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "heapSnapshotObjectId": - out.HeapSnapshotObjectID = HeapSnapshotObjectID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler5(out *jwriter.Writer, in GetHeapObjectIDReturns) { - out.RawByte('{') - first := true - _ = first - if in.HeapSnapshotObjectID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"heapSnapshotObjectId\":") - out.String(string(in.HeapSnapshotObjectID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error { +func (v *StartSamplingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(in *jlexer.Lexer, out *GetHeapObjectIDParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(in *jlexer.Lexer, out *SamplingHeapProfileNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -537,8 +453,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(in *jlexer.Lexer continue } switch key { - case "objectId": - out.ObjectID = runtime.RemoteObjectID(in.String()) + 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 "selfSize": + out.SelfSize = float64(in.Float64()) + case "children": + if in.IsNull() { + in.Skip() + out.Children = nil + } else { + in.Delim('[') + if out.Children == nil { + if !in.IsDelim(']') { + out.Children = make([]*SamplingHeapProfileNode, 0, 8) + } else { + out.Children = []*SamplingHeapProfileNode{} + } + } else { + out.Children = (out.Children)[:0] + } + for !in.IsDelim(']') { + var v1 *SamplingHeapProfileNode + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(SamplingHeapProfileNode) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Children = append(out.Children, v1) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -549,43 +506,80 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler6(out *jwriter.Writer, in GetHeapObjectIDParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler6(out *jwriter.Writer, in SamplingHeapProfileNode) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.CallFrame != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"callFrame\":") + if in.CallFrame == nil { + out.RawString("null") + } else { + (*in.CallFrame).MarshalEasyJSON(out) + } + } + if in.SelfSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"selfSize\":") + out.Float64(float64(in.SelfSize)) + } + 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 v2, v3 := range in.Children { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error) { +func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error { +func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(in *jlexer.Lexer, out *AddInspectedHeapObjectParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(in *jlexer.Lexer, out *SamplingHeapProfile) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -604,8 +598,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(in *jlexer.Lexer continue } switch key { - case "heapObjectId": - out.HeapObjectID = HeapSnapshotObjectID(in.String()) + case "head": + if in.IsNull() { + in.Skip() + out.Head = nil + } else { + if out.Head == nil { + out.Head = new(SamplingHeapProfileNode) + } + (*out.Head).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -616,40 +618,46 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(in *jlexer.Lexer in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler7(out *jwriter.Writer, in AddInspectedHeapObjectParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler7(out *jwriter.Writer, in SamplingHeapProfile) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.Head != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"head\":") + if in.Head == nil { + out.RawString("null") + } else { + (*in.Head).MarshalEasyJSON(out) + } } - first = false - out.RawString("\"heapObjectId\":") - out.String(string(in.HeapObjectID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error) { +func (v SamplingHeapProfile) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error { +func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler7(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler8(in *jlexer.Lexer, out *GetObjectByHeapObjectIDReturns) { @@ -810,7 +818,7 @@ func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error { func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(in *jlexer.Lexer, out *CollectGarbageParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(in *jlexer.Lexer, out *GetHeapObjectIDReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -829,6 +837,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(in *jlexer.Lexe continue } switch key { + case "heapSnapshotObjectId": + out.HeapSnapshotObjectID = HeapSnapshotObjectID(in.String()) default: in.SkipRecursive() } @@ -839,37 +849,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler10(out *jwriter.Writer, in CollectGarbageParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler10(out *jwriter.Writer, in GetHeapObjectIDReturns) { out.RawByte('{') first := true _ = first + if in.HeapSnapshotObjectID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"heapSnapshotObjectId\":") + out.String(string(in.HeapSnapshotObjectID)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CollectGarbageParams) MarshalJSON() ([]byte, error) { +func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error { +func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(in *jlexer.Lexer, out *TakeHeapSnapshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(in *jlexer.Lexer, out *GetHeapObjectIDParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -888,8 +906,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(in *jlexer.Lexe continue } switch key { - case "reportProgress": - out.ReportProgress = bool(in.Bool()) + case "objectId": + out.ObjectID = runtime.RemoteObjectID(in.String()) default: in.SkipRecursive() } @@ -900,45 +918,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler11(out *jwriter.Writer, in TakeHeapSnapshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler11(out *jwriter.Writer, in GetHeapObjectIDParams) { out.RawByte('{') first := true _ = first - if in.ReportProgress { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"reportProgress\":") - out.Bool(bool(in.ReportProgress)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error) { +func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error { +func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(in *jlexer.Lexer, out *StopTrackingHeapObjectsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(in *jlexer.Lexer, out *EventResetProfiles) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -957,8 +973,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(in *jlexer.Lexe continue } switch key { - case "reportProgress": - out.ReportProgress = bool(in.Bool()) default: in.SkipRecursive() } @@ -969,408 +983,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler12(out *jwriter.Writer, in StopTrackingHeapObjectsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler12(out *jwriter.Writer, in EventResetProfiles) { out.RawByte('{') first := true _ = first - if in.ReportProgress { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"reportProgress\":") - out.Bool(bool(in.ReportProgress)) - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) { +func (v EventResetProfiles) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error { +func (v *EventResetProfiles) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(in *jlexer.Lexer, out *StartTrackingHeapObjectsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "trackAllocations": - out.TrackAllocations = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(out *jwriter.Writer, in StartTrackingHeapObjectsParams) { - out.RawByte('{') - first := true - _ = first - if in.TrackAllocations { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"trackAllocations\":") - out.Bool(bool(in.TrackAllocations)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(in *jlexer.Lexer, out *EventHeapStatsUpdate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "statsUpdate": - if in.IsNull() { - in.Skip() - out.StatsUpdate = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.StatsUpdate = make([]int64, 0, 8) - } else { - out.StatsUpdate = []int64{} - } - for !in.IsDelim(']') { - var v4 int64 - v4 = int64(in.Int64()) - out.StatsUpdate = append(out.StatsUpdate, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(out *jwriter.Writer, in EventHeapStatsUpdate) { - out.RawByte('{') - first := true - _ = first - if len(in.StatsUpdate) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"statsUpdate\":") - if in.StatsUpdate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.StatsUpdate { - if v5 > 0 { - out.RawByte(',') - } - out.Int64(int64(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(in *jlexer.Lexer, out *EventLastSeenObjectID) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastSeenObjectId": - out.LastSeenObjectID = int64(in.Int64()) - case "timestamp": - (out.Timestamp).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(out *jwriter.Writer, in EventLastSeenObjectID) { - out.RawByte('{') - first := true - _ = first - if in.LastSeenObjectID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"lastSeenObjectId\":") - out.Int64(int64(in.LastSeenObjectID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(in *jlexer.Lexer, out *EventReportHeapSnapshotProgress) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(in *jlexer.Lexer, out *EventReportHeapSnapshotProgress) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1405,7 +1048,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(out *jwriter.Writer, in EventReportHeapSnapshotProgress) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(out *jwriter.Writer, in EventReportHeapSnapshotProgress) { out.RawByte('{') first := true _ = first @@ -1439,27 +1082,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v EventReportHeapSnapshotProgress) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventReportHeapSnapshotProgress) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventReportHeapSnapshotProgress) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventReportHeapSnapshotProgress) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(in *jlexer.Lexer, out *EventResetProfiles) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(in *jlexer.Lexer, out *EventLastSeenObjectID) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1478,6 +1121,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(in *jlexer.Lexe continue } switch key { + case "lastSeenObjectId": + out.LastSeenObjectID = int64(in.Int64()) + case "timestamp": + (out.Timestamp).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -1488,37 +1135,154 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(out *jwriter.Writer, in EventResetProfiles) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(out *jwriter.Writer, in EventLastSeenObjectID) { out.RawByte('{') first := true _ = first + if in.LastSeenObjectID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lastSeenObjectId\":") + out.Int64(int64(in.LastSeenObjectID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventResetProfiles) MarshalJSON() ([]byte, error) { +func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(w, v) +func (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventResetProfiles) UnmarshalJSON(data []byte) error { +func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(l, v) +func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler20(in *jlexer.Lexer, out *EventAddHeapSnapshotChunk) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(in *jlexer.Lexer, out *EventHeapStatsUpdate) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "statsUpdate": + if in.IsNull() { + in.Skip() + out.StatsUpdate = nil + } else { + in.Delim('[') + if out.StatsUpdate == nil { + if !in.IsDelim(']') { + out.StatsUpdate = make([]int64, 0, 8) + } else { + out.StatsUpdate = []int64{} + } + } else { + out.StatsUpdate = (out.StatsUpdate)[:0] + } + for !in.IsDelim(']') { + var v4 int64 + v4 = int64(in.Int64()) + out.StatsUpdate = append(out.StatsUpdate, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(out *jwriter.Writer, in EventHeapStatsUpdate) { + out.RawByte('{') + first := true + _ = first + if len(in.StatsUpdate) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"statsUpdate\":") + if in.StatsUpdate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.StatsUpdate { + if v5 > 0 { + out.RawByte(',') + } + out.Int64(int64(v6)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(in *jlexer.Lexer, out *EventAddHeapSnapshotChunk) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1549,7 +1313,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler20(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(out *jwriter.Writer, in EventAddHeapSnapshotChunk) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(out *jwriter.Writer, in EventAddHeapSnapshotChunk) { out.RawByte('{') first := true _ = first @@ -1567,23 +1331,267 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v EventAddHeapSnapshotChunk) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAddHeapSnapshotChunk) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAddHeapSnapshotChunk) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(in *jlexer.Lexer, out *CollectGarbageParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(out *jwriter.Writer, in CollectGarbageParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CollectGarbageParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler20(in *jlexer.Lexer, out *AddInspectedHeapObjectParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "heapObjectId": + out.HeapObjectID = HeapSnapshotObjectID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(out *jwriter.Writer, in AddInspectedHeapObjectParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"heapObjectId\":") + out.String(string(in.HeapObjectID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpHeapprofiler20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpHeapprofiler20(l, v) } diff --git a/cdp/indexeddb/easyjson.go b/cdp/indexeddb/easyjson.go index 9025eae..c67f4da 100644 --- a/cdp/indexeddb/easyjson.go +++ b/cdp/indexeddb/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(in *jlexer.Lexer, out *KeyPath) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(in *jlexer.Lexer, out *RequestDatabaseReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,25 +37,181 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(in *jlexer.Lexer, ou continue } switch key { - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "string": - out.String = string(in.String()) - case "array": + case "databaseWithObjectStores": if in.IsNull() { in.Skip() - out.Array = nil + out.DatabaseWithObjectStores = nil + } else { + if out.DatabaseWithObjectStores == nil { + out.DatabaseWithObjectStores = new(DatabaseWithObjectStores) + } + (*out.DatabaseWithObjectStores).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(out *jwriter.Writer, in RequestDatabaseReturns) { + out.RawByte('{') + first := true + _ = first + if in.DatabaseWithObjectStores != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"databaseWithObjectStores\":") + if in.DatabaseWithObjectStores == nil { + out.RawString("null") + } else { + (*in.DatabaseWithObjectStores).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestDatabaseReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestDatabaseReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestDatabaseReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestDatabaseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(in *jlexer.Lexer, out *RequestDatabaseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "securityOrigin": + out.SecurityOrigin = string(in.String()) + case "databaseName": + out.DatabaseName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(out *jwriter.Writer, in RequestDatabaseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityOrigin\":") + out.String(string(in.SecurityOrigin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"databaseName\":") + out.String(string(in.DatabaseName)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestDatabaseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestDatabaseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb2(in *jlexer.Lexer, out *RequestDatabaseNamesReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "databaseNames": + if in.IsNull() { + in.Skip() + out.DatabaseNames = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Array = make([]string, 0, 4) + if out.DatabaseNames == nil { + if !in.IsDelim(']') { + out.DatabaseNames = make([]string, 0, 4) + } else { + out.DatabaseNames = []string{} + } } else { - out.Array = []string{} + out.DatabaseNames = (out.DatabaseNames)[:0] } for !in.IsDelim(']') { var v1 string v1 = string(in.String()) - out.Array = append(out.Array, v1) + out.DatabaseNames = append(out.DatabaseNames, v1) in.WantComma() } in.Delim(']') @@ -70,37 +226,21 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(out *jwriter.Writer, in KeyPath) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(out *jwriter.Writer, in RequestDatabaseNamesReturns) { out.RawByte('{') first := true _ = first - if in.Type != "" { + if len(in.DatabaseNames) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.String != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"string\":") - out.String(string(in.String)) - } - if len(in.Array) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"array\":") - if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"databaseNames\":") + if in.DatabaseNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v2, v3 := range in.Array { + for v2, v3 := range in.DatabaseNames { if v2 > 0 { out.RawByte(',') } @@ -113,277 +253,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(out *jwriter.Writer, } // MarshalJSON supports json.Marshaler interface -func (v KeyPath) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyPath) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyPath) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyPath) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(in *jlexer.Lexer, out *DataEntry) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(runtime.RemoteObject) - } - (*out.Key).UnmarshalEasyJSON(in) - } - case "primaryKey": - if in.IsNull() { - in.Skip() - out.PrimaryKey = nil - } else { - if out.PrimaryKey == nil { - out.PrimaryKey = new(runtime.RemoteObject) - } - (*out.PrimaryKey).UnmarshalEasyJSON(in) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(runtime.RemoteObject) - } - (*out.Value).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(out *jwriter.Writer, in DataEntry) { - out.RawByte('{') - first := true - _ = first - if in.Key != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"key\":") - if in.Key == nil { - out.RawString("null") - } else { - (*in.Key).MarshalEasyJSON(out) - } - } - if in.PrimaryKey != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"primaryKey\":") - if in.PrimaryKey == nil { - out.RawString("null") - } else { - (*in.PrimaryKey).MarshalEasyJSON(out) - } - } - if in.Value != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - if in.Value == nil { - out.RawString("null") - } else { - (*in.Value).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DataEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DataEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb2(in *jlexer.Lexer, out *KeyRange) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lower": - if in.IsNull() { - in.Skip() - out.Lower = nil - } else { - if out.Lower == nil { - out.Lower = new(Key) - } - (*out.Lower).UnmarshalEasyJSON(in) - } - case "upper": - if in.IsNull() { - in.Skip() - out.Upper = nil - } else { - if out.Upper == nil { - out.Upper = new(Key) - } - (*out.Upper).UnmarshalEasyJSON(in) - } - case "lowerOpen": - out.LowerOpen = bool(in.Bool()) - case "upperOpen": - out.UpperOpen = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(out *jwriter.Writer, in KeyRange) { - out.RawByte('{') - first := true - _ = first - if in.Lower != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"lower\":") - if in.Lower == nil { - out.RawString("null") - } else { - (*in.Lower).MarshalEasyJSON(out) - } - } - if in.Upper != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"upper\":") - if in.Upper == nil { - out.RawString("null") - } else { - (*in.Upper).MarshalEasyJSON(out) - } - } - if in.LowerOpen { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"lowerOpen\":") - out.Bool(bool(in.LowerOpen)) - } - if in.UpperOpen { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"upperOpen\":") - out.Bool(bool(in.UpperOpen)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v KeyRange) MarshalJSON() ([]byte, error) { +func (v RequestDatabaseNamesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyRange) MarshalEasyJSON(w *jwriter.Writer) { +func (v RequestDatabaseNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyRange) UnmarshalJSON(data []byte) error { +func (v *RequestDatabaseNamesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyRange) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *RequestDatabaseNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(in *jlexer.Lexer, out *Key) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(in *jlexer.Lexer, out *RequestDatabaseNamesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -402,41 +294,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(in *jlexer.Lexer, o continue } switch key { - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "number": - out.Number = float64(in.Float64()) - case "string": - out.String = string(in.String()) - case "date": - out.Date = float64(in.Float64()) - case "array": - if in.IsNull() { - in.Skip() - out.Array = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Array = make([]*Key, 0, 8) - } else { - out.Array = []*Key{} - } - for !in.IsDelim(']') { - var v4 *Key - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(Key) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Array = append(out.Array, v4) - in.WantComma() - } - in.Delim(']') - } + case "securityOrigin": + out.SecurityOrigin = string(in.String()) default: in.SkipRecursive() } @@ -447,53 +306,119 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(out *jwriter.Writer, in Key) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(out *jwriter.Writer, in RequestDatabaseNamesParams) { out.RawByte('{') first := true _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) + if !first { + out.RawByte(',') } - if in.Number != 0 { - if !first { - out.RawByte(',') + first = false + out.RawString("\"securityOrigin\":") + out.String(string(in.SecurityOrigin)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestDatabaseNamesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestDatabaseNamesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestDatabaseNamesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestDatabaseNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(in *jlexer.Lexer, out *RequestDataReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() } - first = false - out.RawString("\"number\":") - out.Float64(float64(in.Number)) + in.Skip() + return } - if in.String != "" { - if !first { - out.RawByte(',') + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue } - first = false - out.RawString("\"string\":") - out.String(string(in.String)) + switch key { + case "objectStoreDataEntries": + if in.IsNull() { + in.Skip() + out.ObjectStoreDataEntries = nil + } else { + in.Delim('[') + if out.ObjectStoreDataEntries == nil { + if !in.IsDelim(']') { + out.ObjectStoreDataEntries = make([]*DataEntry, 0, 8) + } else { + out.ObjectStoreDataEntries = []*DataEntry{} + } + } else { + out.ObjectStoreDataEntries = (out.ObjectStoreDataEntries)[:0] + } + for !in.IsDelim(']') { + var v4 *DataEntry + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(DataEntry) + } + (*v4).UnmarshalEasyJSON(in) + } + out.ObjectStoreDataEntries = append(out.ObjectStoreDataEntries, v4) + in.WantComma() + } + in.Delim(']') + } + case "hasMore": + out.HasMore = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() } - if in.Date != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"date\":") - out.Float64(float64(in.Date)) + in.Delim('}') + if isTopLevel { + in.Consumed() } - if len(in.Array) != 0 { +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer, in RequestDataReturns) { + out.RawByte('{') + first := true + _ = first + if len(in.ObjectStoreDataEntries) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"array\":") - if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"objectStoreDataEntries\":") + if in.ObjectStoreDataEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.Array { + for v5, v6 := range in.ObjectStoreDataEntries { if v5 > 0 { out.RawByte(',') } @@ -506,33 +431,170 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(out *jwriter.Writer out.RawByte(']') } } + if in.HasMore { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hasMore\":") + out.Bool(bool(in.HasMore)) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Key) MarshalJSON() ([]byte, error) { +func (v RequestDataReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Key) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb3(w, v) +func (v RequestDataReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Key) UnmarshalJSON(data []byte) error { +func (v *RequestDataReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb3(l, v) +func (v *RequestDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(in *jlexer.Lexer, out *ObjectStoreIndex) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(in *jlexer.Lexer, out *RequestDataParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "securityOrigin": + out.SecurityOrigin = string(in.String()) + case "databaseName": + out.DatabaseName = string(in.String()) + case "objectStoreName": + out.ObjectStoreName = string(in.String()) + case "indexName": + out.IndexName = string(in.String()) + case "skipCount": + out.SkipCount = int64(in.Int64()) + case "pageSize": + out.PageSize = int64(in.Int64()) + case "keyRange": + if in.IsNull() { + in.Skip() + out.KeyRange = nil + } else { + if out.KeyRange == nil { + out.KeyRange = new(KeyRange) + } + (*out.KeyRange).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(out *jwriter.Writer, in RequestDataParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityOrigin\":") + out.String(string(in.SecurityOrigin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"databaseName\":") + out.String(string(in.DatabaseName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectStoreName\":") + out.String(string(in.ObjectStoreName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"indexName\":") + out.String(string(in.IndexName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"skipCount\":") + out.Int64(int64(in.SkipCount)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageSize\":") + out.Int64(int64(in.PageSize)) + if in.KeyRange != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"keyRange\":") + if in.KeyRange == nil { + out.RawString("null") + } else { + (*in.KeyRange).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestDataParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestDataParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestDataParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(in *jlexer.Lexer, out *ObjectStoreIndex) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -577,7 +639,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer, in ObjectStoreIndex) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer, in ObjectStoreIndex) { out.RawByte('{') first := true _ = first @@ -623,27 +685,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ObjectStoreIndex) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ObjectStoreIndex) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ObjectStoreIndex) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ObjectStoreIndex) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(in *jlexer.Lexer, out *ObjectStore) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(in *jlexer.Lexer, out *ObjectStore) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -682,10 +744,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(in *jlexer.Lexer, o out.Indexes = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Indexes = make([]*ObjectStoreIndex, 0, 8) + if out.Indexes == nil { + if !in.IsDelim(']') { + out.Indexes = make([]*ObjectStoreIndex, 0, 8) + } else { + out.Indexes = []*ObjectStoreIndex{} + } } else { - out.Indexes = []*ObjectStoreIndex{} + out.Indexes = (out.Indexes)[:0] } for !in.IsDelim(']') { var v7 *ObjectStoreIndex @@ -713,7 +779,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(out *jwriter.Writer, in ObjectStore) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(out *jwriter.Writer, in ObjectStore) { out.RawByte('{') first := true _ = first @@ -774,27 +840,617 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ObjectStore) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ObjectStore) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ObjectStore) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ObjectStore) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(in *jlexer.Lexer, out *DatabaseWithObjectStores) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(in *jlexer.Lexer, out *KeyRange) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "lower": + if in.IsNull() { + in.Skip() + out.Lower = nil + } else { + if out.Lower == nil { + out.Lower = new(Key) + } + (*out.Lower).UnmarshalEasyJSON(in) + } + case "upper": + if in.IsNull() { + in.Skip() + out.Upper = nil + } else { + if out.Upper == nil { + out.Upper = new(Key) + } + (*out.Upper).UnmarshalEasyJSON(in) + } + case "lowerOpen": + out.LowerOpen = bool(in.Bool()) + case "upperOpen": + out.UpperOpen = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(out *jwriter.Writer, in KeyRange) { + out.RawByte('{') + first := true + _ = first + if in.Lower != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lower\":") + if in.Lower == nil { + out.RawString("null") + } else { + (*in.Lower).MarshalEasyJSON(out) + } + } + if in.Upper != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"upper\":") + if in.Upper == nil { + out.RawString("null") + } else { + (*in.Upper).MarshalEasyJSON(out) + } + } + if in.LowerOpen { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"lowerOpen\":") + out.Bool(bool(in.LowerOpen)) + } + if in.UpperOpen { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"upperOpen\":") + out.Bool(bool(in.UpperOpen)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v KeyRange) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v KeyRange) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *KeyRange) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *KeyRange) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(in *jlexer.Lexer, out *KeyPath) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "string": + out.String = string(in.String()) + case "array": + if in.IsNull() { + in.Skip() + out.Array = nil + } else { + in.Delim('[') + if out.Array == nil { + if !in.IsDelim(']') { + out.Array = make([]string, 0, 4) + } else { + out.Array = []string{} + } + } else { + out.Array = (out.Array)[:0] + } + for !in.IsDelim(']') { + var v10 string + v10 = string(in.String()) + out.Array = append(out.Array, v10) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(out *jwriter.Writer, in KeyPath) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.String != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"string\":") + out.String(string(in.String)) + } + if len(in.Array) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"array\":") + if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Array { + if v11 > 0 { + out.RawByte(',') + } + out.String(string(v12)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v KeyPath) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v KeyPath) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *KeyPath) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *KeyPath) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(in *jlexer.Lexer, out *Key) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "number": + out.Number = float64(in.Float64()) + case "string": + out.String = string(in.String()) + case "date": + out.Date = float64(in.Float64()) + case "array": + if in.IsNull() { + in.Skip() + out.Array = nil + } else { + in.Delim('[') + if out.Array == nil { + if !in.IsDelim(']') { + out.Array = make([]*Key, 0, 8) + } else { + out.Array = []*Key{} + } + } else { + out.Array = (out.Array)[:0] + } + for !in.IsDelim(']') { + var v13 *Key + if in.IsNull() { + in.Skip() + v13 = nil + } else { + if v13 == nil { + v13 = new(Key) + } + (*v13).UnmarshalEasyJSON(in) + } + out.Array = append(out.Array, v13) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(out *jwriter.Writer, in Key) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.Number != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"number\":") + out.Float64(float64(in.Number)) + } + if in.String != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"string\":") + out.String(string(in.String)) + } + if in.Date != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"date\":") + out.Float64(float64(in.Date)) + } + if len(in.Array) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"array\":") + if in.Array == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Array { + 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 Key) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Key) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Key) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Key) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(in *jlexer.Lexer, out *DeleteDatabaseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "securityOrigin": + out.SecurityOrigin = string(in.String()) + case "databaseName": + out.DatabaseName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(out *jwriter.Writer, in DeleteDatabaseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityOrigin\":") + out.String(string(in.SecurityOrigin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"databaseName\":") + out.String(string(in.DatabaseName)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DeleteDatabaseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DeleteDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DeleteDatabaseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DeleteDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(in *jlexer.Lexer, out *DatabaseWithObjectStores) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -823,23 +1479,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(in *jlexer.Lexer, o out.ObjectStores = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.ObjectStores = make([]*ObjectStore, 0, 8) + if out.ObjectStores == nil { + if !in.IsDelim(']') { + out.ObjectStores = make([]*ObjectStore, 0, 8) + } else { + out.ObjectStores = []*ObjectStore{} + } } else { - out.ObjectStores = []*ObjectStore{} + out.ObjectStores = (out.ObjectStores)[:0] } for !in.IsDelim(']') { - var v10 *ObjectStore + var v16 *ObjectStore if in.IsNull() { in.Skip() - v10 = nil + v16 = nil } else { - if v10 == nil { - v10 = new(ObjectStore) + if v16 == nil { + v16 = new(ObjectStore) } - (*v10).UnmarshalEasyJSON(in) + (*v16).UnmarshalEasyJSON(in) } - out.ObjectStores = append(out.ObjectStores, v10) + out.ObjectStores = append(out.ObjectStores, v16) in.WantComma() } in.Delim(']') @@ -854,7 +1514,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer, in DatabaseWithObjectStores) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(out *jwriter.Writer, in DatabaseWithObjectStores) { out.RawByte('{') first := true _ = first @@ -884,14 +1544,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v11, v12 := range in.ObjectStores { - if v11 > 0 { + for v17, v18 := range in.ObjectStores { + if v17 > 0 { out.RawByte(',') } - if v12 == nil { + if v18 == nil { out.RawString("null") } else { - (*v12).MarshalEasyJSON(out) + (*v18).MarshalEasyJSON(out) } } out.RawByte(']') @@ -903,27 +1563,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DatabaseWithObjectStores) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DatabaseWithObjectStores) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DatabaseWithObjectStores) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DatabaseWithObjectStores) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(in *jlexer.Lexer, out *DeleteDatabaseParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(in *jlexer.Lexer, out *DataEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -942,10 +1602,36 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(in *jlexer.Lexer, o continue } switch key { - case "securityOrigin": - out.SecurityOrigin = string(in.String()) - case "databaseName": - out.DatabaseName = string(in.String()) + case "key": + if in.IsNull() { + in.Skip() + out.Key = nil + } else { + if out.Key == nil { + out.Key = new(runtime.RemoteObject) + } + (*out.Key).UnmarshalEasyJSON(in) + } + case "primaryKey": + if in.IsNull() { + in.Skip() + out.PrimaryKey = nil + } else { + if out.PrimaryKey == nil { + out.PrimaryKey = new(runtime.RemoteObject) + } + (*out.PrimaryKey).UnmarshalEasyJSON(in) + } + case "value": + if in.IsNull() { + in.Skip() + out.Value = nil + } else { + if out.Value == nil { + out.Value = new(runtime.RemoteObject) + } + (*out.Value).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -956,49 +1642,73 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(out *jwriter.Writer, in DeleteDatabaseParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(out *jwriter.Writer, in DataEntry) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.Key != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"key\":") + if in.Key == nil { + out.RawString("null") + } else { + (*in.Key).MarshalEasyJSON(out) + } } - first = false - out.RawString("\"securityOrigin\":") - out.String(string(in.SecurityOrigin)) - if !first { - out.RawByte(',') + if in.PrimaryKey != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"primaryKey\":") + if in.PrimaryKey == nil { + out.RawString("null") + } else { + (*in.PrimaryKey).MarshalEasyJSON(out) + } + } + if in.Value != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + if in.Value == nil { + out.RawString("null") + } else { + (*in.Value).MarshalEasyJSON(out) + } } - first = false - out.RawString("\"databaseName\":") - out.String(string(in.DatabaseName)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v DeleteDatabaseParams) MarshalJSON() ([]byte, error) { +func (v DataEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb7(w, v) +func (v DataEntry) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteDatabaseParams) UnmarshalJSON(data []byte) error { +func (v *DataEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb7(l, v) +func (v *DataEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(in *jlexer.Lexer, out *ClearObjectStoreParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb16(in *jlexer.Lexer, out *ClearObjectStoreParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1033,7 +1743,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(out *jwriter.Writer, in ClearObjectStoreParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(out *jwriter.Writer, in ClearObjectStoreParams) { out.RawByte('{') first := true _ = first @@ -1060,710 +1770,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ClearObjectStoreParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearObjectStoreParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearObjectStoreParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearObjectStoreParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(in *jlexer.Lexer, out *RequestDataReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectStoreDataEntries": - if in.IsNull() { - in.Skip() - out.ObjectStoreDataEntries = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ObjectStoreDataEntries = make([]*DataEntry, 0, 8) - } else { - out.ObjectStoreDataEntries = []*DataEntry{} - } - for !in.IsDelim(']') { - var v13 *DataEntry - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(DataEntry) - } - (*v13).UnmarshalEasyJSON(in) - } - out.ObjectStoreDataEntries = append(out.ObjectStoreDataEntries, v13) - in.WantComma() - } - in.Delim(']') - } - case "hasMore": - out.HasMore = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(out *jwriter.Writer, in RequestDataReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.ObjectStoreDataEntries) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectStoreDataEntries\":") - if in.ObjectStoreDataEntries == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v14, v15 := range in.ObjectStoreDataEntries { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.HasMore { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"hasMore\":") - out.Bool(bool(in.HasMore)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDataReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDataReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDataReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(in *jlexer.Lexer, out *RequestDataParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "securityOrigin": - out.SecurityOrigin = string(in.String()) - case "databaseName": - out.DatabaseName = string(in.String()) - case "objectStoreName": - out.ObjectStoreName = string(in.String()) - case "indexName": - out.IndexName = string(in.String()) - case "skipCount": - out.SkipCount = int64(in.Int64()) - case "pageSize": - out.PageSize = int64(in.Int64()) - case "keyRange": - if in.IsNull() { - in.Skip() - out.KeyRange = nil - } else { - if out.KeyRange == nil { - out.KeyRange = new(KeyRange) - } - (*out.KeyRange).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(out *jwriter.Writer, in RequestDataParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"securityOrigin\":") - out.String(string(in.SecurityOrigin)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseName\":") - out.String(string(in.DatabaseName)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectStoreName\":") - out.String(string(in.ObjectStoreName)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"indexName\":") - out.String(string(in.IndexName)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"skipCount\":") - out.Int64(int64(in.SkipCount)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pageSize\":") - out.Int64(int64(in.PageSize)) - if in.KeyRange != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"keyRange\":") - if in.KeyRange == nil { - out.RawString("null") - } else { - (*in.KeyRange).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDataParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDataParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDataParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(in *jlexer.Lexer, out *RequestDatabaseReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "databaseWithObjectStores": - if in.IsNull() { - in.Skip() - out.DatabaseWithObjectStores = nil - } else { - if out.DatabaseWithObjectStores == nil { - out.DatabaseWithObjectStores = new(DatabaseWithObjectStores) - } - (*out.DatabaseWithObjectStores).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(out *jwriter.Writer, in RequestDatabaseReturns) { - out.RawByte('{') - first := true - _ = first - if in.DatabaseWithObjectStores != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseWithObjectStores\":") - if in.DatabaseWithObjectStores == nil { - out.RawString("null") - } else { - (*in.DatabaseWithObjectStores).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDatabaseReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDatabaseReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDatabaseReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDatabaseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(in *jlexer.Lexer, out *RequestDatabaseParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "securityOrigin": - out.SecurityOrigin = string(in.String()) - case "databaseName": - out.DatabaseName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(out *jwriter.Writer, in RequestDatabaseParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"securityOrigin\":") - out.String(string(in.SecurityOrigin)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseName\":") - out.String(string(in.DatabaseName)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDatabaseParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDatabaseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDatabaseParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDatabaseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(in *jlexer.Lexer, out *RequestDatabaseNamesReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "databaseNames": - if in.IsNull() { - in.Skip() - out.DatabaseNames = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.DatabaseNames = make([]string, 0, 4) - } else { - out.DatabaseNames = []string{} - } - for !in.IsDelim(']') { - var v16 string - v16 = string(in.String()) - out.DatabaseNames = append(out.DatabaseNames, v16) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(out *jwriter.Writer, in RequestDatabaseNamesReturns) { - out.RawByte('{') - first := true - _ = first - if len(in.DatabaseNames) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"databaseNames\":") - if in.DatabaseNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v17, v18 := range in.DatabaseNames { - if v17 > 0 { - out.RawByte(',') - } - out.String(string(v18)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDatabaseNamesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDatabaseNamesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDatabaseNamesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDatabaseNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(in *jlexer.Lexer, out *RequestDatabaseNamesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "securityOrigin": - out.SecurityOrigin = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(out *jwriter.Writer, in RequestDatabaseNamesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"securityOrigin\":") - out.String(string(in.SecurityOrigin)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestDatabaseNamesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestDatabaseNamesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestDatabaseNamesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestDatabaseNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb16(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(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{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ClearObjectStoreParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIndexeddb16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *ClearObjectStoreParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ClearObjectStoreParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIndexeddb16(l, v) } diff --git a/cdp/input/easyjson.go b/cdp/input/easyjson.go index 81509dd..dcdaea2 100644 --- a/cdp/input/easyjson.go +++ b/cdp/input/easyjson.go @@ -705,10 +705,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInput5(in *jlexer.Lexer, out * out.TouchPoints = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.TouchPoints = make([]*TouchPoint, 0, 8) + if out.TouchPoints == nil { + if !in.IsDelim(']') { + out.TouchPoints = make([]*TouchPoint, 0, 8) + } else { + out.TouchPoints = []*TouchPoint{} + } } else { - out.TouchPoints = []*TouchPoint{} + out.TouchPoints = (out.TouchPoints)[:0] } for !in.IsDelim(']') { var v1 *TouchPoint diff --git a/cdp/inspector/easyjson.go b/cdp/inspector/easyjson.go index 8e2b398..0a63a59 100644 --- a/cdp/inspector/easyjson.go +++ b/cdp/inspector/easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(in *jlexer.Lexer, out *EventTargetCrashed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -46,125 +46,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(in *jlexer.Lexer, out *EventTargetCrashed) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(out *jwriter.Writer, in EventTargetCrashed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(out *jwriter.Writer, in EventTargetCrashed) { out.RawByte('{') first := true _ = first @@ -174,27 +56,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventTargetCrashed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventTargetCrashed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventTargetCrashed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventTargetCrashed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector3(in *jlexer.Lexer, out *EventDetached) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(in *jlexer.Lexer, out *EventDetached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -225,7 +107,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(out *jwriter.Writer, in EventDetached) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(out *jwriter.Writer, in EventDetached) { out.RawByte('{') first := true _ = first @@ -243,23 +125,141 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventDetached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDetached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDetached) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInspector3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInspector3(l, v) } diff --git a/cdp/io/easyjson.go b/cdp/io/easyjson.go index 4bfe196..4e60d71 100644 --- a/cdp/io/easyjson.go +++ b/cdp/io/easyjson.go @@ -17,74 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(in *jlexer.Lexer, out *CloseParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "handle": - out.Handle = StreamHandle(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(out *jwriter.Writer, in CloseParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"handle\":") - out.String(string(in.Handle)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CloseParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CloseParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(in *jlexer.Lexer, out *ReadReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(in *jlexer.Lexer, out *ReadReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -117,7 +50,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(in *jlexer.Lexer, out *Rea in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(out *jwriter.Writer, in ReadReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(out *jwriter.Writer, in ReadReturns) { out.RawByte('{') first := true _ = first @@ -143,27 +76,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(out *jwriter.Writer, in Re // MarshalJSON supports json.Marshaler interface func (v ReadReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReadReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReadReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReadReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(in *jlexer.Lexer, out *ReadParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(in *jlexer.Lexer, out *ReadParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -198,7 +131,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(in *jlexer.Lexer, out *Rea in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(out *jwriter.Writer, in ReadParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(out *jwriter.Writer, in ReadParams) { out.RawByte('{') first := true _ = first @@ -230,23 +163,90 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(out *jwriter.Writer, in Re // MarshalJSON supports json.Marshaler interface func (v ReadParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(in *jlexer.Lexer, out *CloseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "handle": + out.Handle = StreamHandle(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(out *jwriter.Writer, in CloseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"handle\":") + out.String(string(in.Handle)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CloseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CloseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpIo2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CloseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CloseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpIo2(l, v) } diff --git a/cdp/layertree/easyjson.go b/cdp/layertree/easyjson.go index a70a595..bd09316 100644 --- a/cdp/layertree/easyjson.go +++ b/cdp/layertree/easyjson.go @@ -43,10 +43,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree(in *jlexer.Lexer, ou out.CommandLog = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.CommandLog = make([]easyjson.RawMessage, 0, 2) + if out.CommandLog == nil { + if !in.IsDelim(']') { + out.CommandLog = make([]easyjson.RawMessage, 0, 2) + } else { + out.CommandLog = []easyjson.RawMessage{} + } } else { - out.CommandLog = []easyjson.RawMessage{} + out.CommandLog = (out.CommandLog)[:0] } for !in.IsDelim(']') { var v1 easyjson.RawMessage @@ -182,7 +186,98 @@ func (v *SnapshotCommandLogParams) UnmarshalJSON(data []byte) error { func (v *SnapshotCommandLogParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, out *ReplaySnapshotReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, out *ScrollRect) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "rect": + if in.IsNull() { + in.Skip() + out.Rect = nil + } else { + if out.Rect == nil { + out.Rect = new(dom.Rect) + } + (*out.Rect).UnmarshalEasyJSON(in) + } + case "type": + (out.Type).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer, in ScrollRect) { + out.RawByte('{') + first := true + _ = first + if in.Rect != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"rect\":") + if in.Rect == nil { + out.RawString("null") + } else { + (*in.Rect).MarshalEasyJSON(out) + } + } + 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 ScrollRect) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScrollRect) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScrollRect) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScrollRect) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, out *ReplaySnapshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -213,7 +308,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer, in ReplaySnapshotReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer, in ReplaySnapshotReturns) { out.RawByte('{') first := true _ = first @@ -231,27 +326,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ReplaySnapshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReplaySnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReplaySnapshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReplaySnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, out *ReplaySnapshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, out *ReplaySnapshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -288,7 +383,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer, in ReplaySnapshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer, in ReplaySnapshotParams) { out.RawByte('{') first := true _ = first @@ -328,27 +423,94 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ReplaySnapshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReplaySnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReplaySnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReplaySnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, out *ProfileSnapshotReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, out *ReleaseSnapshotParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "snapshotId": + out.SnapshotID = SnapshotID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer, in ReleaseSnapshotParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"snapshotId\":") + out.String(string(in.SnapshotID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ReleaseSnapshotParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReleaseSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReleaseSnapshotParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReleaseSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(in *jlexer.Lexer, out *ProfileSnapshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -373,10 +535,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, o out.Timings = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Timings = make([]PaintProfile, 0, 2) + if out.Timings == nil { + if !in.IsDelim(']') { + out.Timings = make([]PaintProfile, 0, 2) + } else { + out.Timings = []PaintProfile{} + } } else { - out.Timings = []PaintProfile{} + out.Timings = (out.Timings)[:0] } for !in.IsDelim(']') { var v4 PaintProfile @@ -385,10 +551,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, o v4 = nil } else { in.Delim('[') - if !in.IsDelim(']') { - v4 = make(PaintProfile, 0, 8) + if v4 == nil { + if !in.IsDelim(']') { + v4 = make(PaintProfile, 0, 8) + } else { + v4 = PaintProfile{} + } } else { - v4 = PaintProfile{} + v4 = (v4)[:0] } for !in.IsDelim(']') { var v5 float64 @@ -413,7 +583,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer, in ProfileSnapshotReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer, in ProfileSnapshotReturns) { out.RawByte('{') first := true _ = first @@ -453,27 +623,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ProfileSnapshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ProfileSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ProfileSnapshotReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ProfileSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, out *ProfileSnapshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(in *jlexer.Lexer, out *ProfileSnapshotParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -518,7 +688,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer, in ProfileSnapshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer, in ProfileSnapshotParams) { out.RawByte('{') first := true _ = first @@ -561,164 +731,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v ProfileSnapshotParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ProfileSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ProfileSnapshotParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ProfileSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(in *jlexer.Lexer, out *ReleaseSnapshotParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "snapshotId": - out.SnapshotID = SnapshotID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(out *jwriter.Writer, in ReleaseSnapshotParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"snapshotId\":") - out.String(string(in.SnapshotID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReleaseSnapshotParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReleaseSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReleaseSnapshotParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReleaseSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(in *jlexer.Lexer, out *LoadSnapshotReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "snapshotId": - out.SnapshotID = SnapshotID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(out *jwriter.Writer, in LoadSnapshotReturns) { - out.RawByte('{') - first := true - _ = first - if in.SnapshotID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"snapshotId\":") - out.String(string(in.SnapshotID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LoadSnapshotReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v LoadSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v ProfileSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *LoadSnapshotReturns) UnmarshalJSON(data []byte) error { +func (v *ProfileSnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LoadSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ProfileSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, out *LoadSnapshotParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, out *PictureTile) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -737,33 +771,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, o continue } switch key { - case "tiles": - if in.IsNull() { - in.Skip() - out.Tiles = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Tiles = make([]*PictureTile, 0, 8) - } else { - out.Tiles = []*PictureTile{} - } - for !in.IsDelim(']') { - var v10 *PictureTile - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(PictureTile) - } - (*v10).UnmarshalEasyJSON(in) - } - out.Tiles = append(out.Tiles, v10) - in.WantComma() - } - in.Delim(']') - } + case "x": + out.X = float64(in.Float64()) + case "y": + out.Y = float64(in.Float64()) + case "picture": + out.Picture = string(in.String()) default: in.SkipRecursive() } @@ -774,55 +787,58 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer, in LoadSnapshotParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(out *jwriter.Writer, in PictureTile) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"tiles\":") - if in.Tiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v11, v12 := range in.Tiles { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } + if in.X != 0 { + if !first { + out.RawByte(',') } - out.RawByte(']') + first = false + out.RawString("\"x\":") + out.Float64(float64(in.X)) + } + if in.Y != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"y\":") + out.Float64(float64(in.Y)) + } + if in.Picture != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"picture\":") + out.String(string(in.Picture)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v LoadSnapshotParams) MarshalJSON() ([]byte, error) { +func (v PictureTile) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v LoadSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v PictureTile) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *LoadSnapshotParams) UnmarshalJSON(data []byte) error { +func (v *PictureTile) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LoadSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *PictureTile) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree8(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree9(in *jlexer.Lexer, out *MakeSnapshotReturns) { @@ -961,7 +977,7 @@ func (v *MakeSnapshotParams) UnmarshalJSON(data []byte) error { func (v *MakeSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, out *CompositingReasonsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, out *LoadSnapshotReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -980,21 +996,102 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, continue } switch key { - case "compositingReasons": + case "snapshotId": + out.SnapshotID = SnapshotID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Writer, in LoadSnapshotReturns) { + out.RawByte('{') + first := true + _ = first + if in.SnapshotID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"snapshotId\":") + out.String(string(in.SnapshotID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v LoadSnapshotReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v LoadSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *LoadSnapshotReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *LoadSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, out *LoadSnapshotParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "tiles": if in.IsNull() { in.Skip() - out.CompositingReasons = nil + out.Tiles = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.CompositingReasons = make([]string, 0, 4) + if out.Tiles == nil { + if !in.IsDelim(']') { + out.Tiles = make([]*PictureTile, 0, 8) + } else { + out.Tiles = []*PictureTile{} + } } else { - out.CompositingReasons = []string{} + out.Tiles = (out.Tiles)[:0] } for !in.IsDelim(']') { - var v13 string - v13 = string(in.String()) - out.CompositingReasons = append(out.CompositingReasons, v13) + var v10 *PictureTile + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(PictureTile) + } + (*v10).UnmarshalEasyJSON(in) + } + out.Tiles = append(out.Tiles, v10) in.WantComma() } in.Delim(']') @@ -1009,56 +1106,58 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(out *jwriter.Writer, in CompositingReasonsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Writer, in LoadSnapshotParams) { out.RawByte('{') first := true _ = first - if len(in.CompositingReasons) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"compositingReasons\":") - if in.CompositingReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v14, v15 := range in.CompositingReasons { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"tiles\":") + if in.Tiles == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v11, v12 := range in.Tiles { + if v11 > 0 { + out.RawByte(',') + } + if v12 == nil { + out.RawString("null") + } else { + (*v12).MarshalEasyJSON(out) } - out.RawByte(']') } + out.RawByte(']') } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CompositingReasonsReturns) MarshalJSON() ([]byte, error) { +func (v LoadSnapshotParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CompositingReasonsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree11(w, v) +func (v LoadSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CompositingReasonsReturns) UnmarshalJSON(data []byte) error { +func (v *LoadSnapshotParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CompositingReasonsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree11(l, v) +func (v *LoadSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, out *CompositingReasonsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(in *jlexer.Lexer, out *Layer) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1079,6 +1178,84 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, switch key { case "layerId": out.LayerID = LayerID(in.String()) + case "parentLayerId": + out.ParentLayerID = LayerID(in.String()) + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + case "offsetX": + out.OffsetX = float64(in.Float64()) + case "offsetY": + out.OffsetY = float64(in.Float64()) + case "width": + out.Width = float64(in.Float64()) + case "height": + out.Height = float64(in.Float64()) + case "transform": + if in.IsNull() { + in.Skip() + out.Transform = nil + } else { + in.Delim('[') + if out.Transform == nil { + if !in.IsDelim(']') { + out.Transform = make([]float64, 0, 8) + } else { + out.Transform = []float64{} + } + } else { + out.Transform = (out.Transform)[:0] + } + for !in.IsDelim(']') { + var v13 float64 + v13 = float64(in.Float64()) + out.Transform = append(out.Transform, v13) + in.WantComma() + } + in.Delim(']') + } + case "anchorX": + out.AnchorX = float64(in.Float64()) + case "anchorY": + out.AnchorY = float64(in.Float64()) + case "anchorZ": + out.AnchorZ = float64(in.Float64()) + case "paintCount": + out.PaintCount = int64(in.Int64()) + case "drawsContent": + out.DrawsContent = bool(in.Bool()) + case "invisible": + out.Invisible = bool(in.Bool()) + case "scrollRects": + if in.IsNull() { + in.Skip() + out.ScrollRects = nil + } else { + in.Delim('[') + if out.ScrollRects == nil { + if !in.IsDelim(']') { + out.ScrollRects = make([]*ScrollRect, 0, 8) + } else { + out.ScrollRects = []*ScrollRect{} + } + } else { + out.ScrollRects = (out.ScrollRects)[:0] + } + for !in.IsDelim(']') { + var v14 *ScrollRect + if in.IsNull() { + in.Skip() + v14 = nil + } else { + if v14 == nil { + v14 = new(ScrollRect) + } + (*v14).UnmarshalEasyJSON(in) + } + out.ScrollRects = append(out.ScrollRects, v14) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -1089,102 +1266,183 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(out *jwriter.Writer, in CompositingReasonsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Writer, in Layer) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.LayerID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"layerId\":") + out.String(string(in.LayerID)) + } + if in.ParentLayerID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"parentLayerId\":") + out.String(string(in.ParentLayerID)) + } + if in.BackendNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) + } + if in.OffsetX != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offsetX\":") + out.Float64(float64(in.OffsetX)) + } + if in.OffsetY != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"offsetY\":") + out.Float64(float64(in.OffsetY)) + } + if in.Width != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Float64(float64(in.Width)) + } + if in.Height != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Float64(float64(in.Height)) + } + if len(in.Transform) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"transform\":") + if in.Transform == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v15, v16 := range in.Transform { + if v15 > 0 { + out.RawByte(',') + } + out.Float64(float64(v16)) + } + out.RawByte(']') + } + } + if in.AnchorX != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"anchorX\":") + out.Float64(float64(in.AnchorX)) + } + if in.AnchorY != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"anchorY\":") + out.Float64(float64(in.AnchorY)) + } + if in.AnchorZ != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"anchorZ\":") + out.Float64(float64(in.AnchorZ)) + } + if in.PaintCount != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"paintCount\":") + out.Int64(int64(in.PaintCount)) + } + if in.DrawsContent { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"drawsContent\":") + out.Bool(bool(in.DrawsContent)) + } + if in.Invisible { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"invisible\":") + out.Bool(bool(in.Invisible)) + } + if len(in.ScrollRects) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scrollRects\":") + if in.ScrollRects == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.ScrollRects { + if v17 > 0 { + out.RawByte(',') + } + if v18 == nil { + out.RawString("null") + } else { + (*v18).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } } - first = false - out.RawString("\"layerId\":") - out.String(string(in.LayerID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CompositingReasonsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CompositingReasonsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CompositingReasonsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CompositingReasonsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(out *jwriter.Writer, in DisableParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DisableParams) MarshalJSON() ([]byte, error) { +func (v Layer) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v Layer) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *Layer) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, out *EventLayerTreeDidChange) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1203,6 +1461,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, continue } switch key { + case "layers": + if in.IsNull() { + in.Skip() + out.Layers = nil + } else { + in.Delim('[') + if out.Layers == nil { + if !in.IsDelim(']') { + out.Layers = make([]*Layer, 0, 8) + } else { + out.Layers = []*Layer{} + } + } else { + out.Layers = (out.Layers)[:0] + } + for !in.IsDelim(']') { + var v19 *Layer + if in.IsNull() { + in.Skip() + v19 = nil + } else { + if v19 == nil { + v19 = new(Layer) + } + (*v19).UnmarshalEasyJSON(in) + } + out.Layers = append(out.Layers, v19) + in.WantComma() + } + in.Delim(']') + } default: in.SkipRecursive() } @@ -1213,34 +1502,57 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(out *jwriter.Writer, in EventLayerTreeDidChange) { out.RawByte('{') first := true _ = first + if len(in.Layers) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"layers\":") + if in.Layers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.Layers { + 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 EnableParams) MarshalJSON() ([]byte, error) { +func (v EventLayerTreeDidChange) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventLayerTreeDidChange) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *EventLayerTreeDidChange) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventLayerTreeDidChange) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree14(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(in *jlexer.Lexer, out *EventLayerPainted) { @@ -1334,7 +1646,7 @@ func (v *EventLayerPainted) UnmarshalJSON(data []byte) error { func (v *EventLayerPainted) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, out *EventLayerTreeDidChange) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1353,29 +1665,143 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, continue } switch key { - case "layers": + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(in *jlexer.Lexer, out *CompositingReasonsReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "compositingReasons": if in.IsNull() { in.Skip() - out.Layers = nil + out.CompositingReasons = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Layers = make([]*Layer, 0, 8) + if out.CompositingReasons == nil { + if !in.IsDelim(']') { + out.CompositingReasons = make([]string, 0, 4) + } else { + out.CompositingReasons = []string{} + } } else { - out.Layers = []*Layer{} + out.CompositingReasons = (out.CompositingReasons)[:0] } for !in.IsDelim(']') { - var v16 *Layer - if in.IsNull() { - in.Skip() - v16 = nil - } else { - if v16 == nil { - v16 = new(Layer) - } - (*v16).UnmarshalEasyJSON(in) - } - out.Layers = append(out.Layers, v16) + var v22 string + v22 = string(in.String()) + out.CompositingReasons = append(out.CompositingReasons, v22) in.WantComma() } in.Delim(']') @@ -1390,29 +1816,25 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Writer, in EventLayerTreeDidChange) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(out *jwriter.Writer, in CompositingReasonsReturns) { out.RawByte('{') first := true _ = first - if len(in.Layers) != 0 { + if len(in.CompositingReasons) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"layers\":") - if in.Layers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"compositingReasons\":") + if in.CompositingReasons == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') - for v17, v18 := range in.Layers { - if v17 > 0 { + for v23, v24 := range in.CompositingReasons { + if v23 > 0 { out.RawByte(',') } - if v18 == nil { - out.RawString("null") - } else { - (*v18).MarshalEasyJSON(out) - } + out.String(string(v24)) } out.RawByte(']') } @@ -1421,29 +1843,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(out *jwriter.Write } // MarshalJSON supports json.Marshaler interface -func (v EventLayerTreeDidChange) MarshalJSON() ([]byte, error) { +func (v CompositingReasonsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventLayerTreeDidChange) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree16(w, v) +func (v CompositingReasonsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventLayerTreeDidChange) UnmarshalJSON(data []byte) error { +func (v *CompositingReasonsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventLayerTreeDidChange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree16(l, v) +func (v *CompositingReasonsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer, out *Layer) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(in *jlexer.Lexer, out *CompositingReasonsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1464,76 +1886,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer, switch key { case "layerId": out.LayerID = LayerID(in.String()) - case "parentLayerId": - out.ParentLayerID = LayerID(in.String()) - case "backendNodeId": - (out.BackendNodeID).UnmarshalEasyJSON(in) - case "offsetX": - out.OffsetX = float64(in.Float64()) - case "offsetY": - out.OffsetY = float64(in.Float64()) - case "width": - out.Width = float64(in.Float64()) - case "height": - out.Height = float64(in.Float64()) - case "transform": - if in.IsNull() { - in.Skip() - out.Transform = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Transform = make([]float64, 0, 8) - } else { - out.Transform = []float64{} - } - for !in.IsDelim(']') { - var v19 float64 - v19 = float64(in.Float64()) - out.Transform = append(out.Transform, v19) - in.WantComma() - } - in.Delim(']') - } - case "anchorX": - out.AnchorX = float64(in.Float64()) - case "anchorY": - out.AnchorY = float64(in.Float64()) - case "anchorZ": - out.AnchorZ = float64(in.Float64()) - case "paintCount": - out.PaintCount = int64(in.Int64()) - case "drawsContent": - out.DrawsContent = bool(in.Bool()) - case "invisible": - out.Invisible = bool(in.Bool()) - case "scrollRects": - if in.IsNull() { - in.Skip() - out.ScrollRects = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ScrollRects = make([]*ScrollRect, 0, 8) - } else { - out.ScrollRects = []*ScrollRect{} - } - for !in.IsDelim(']') { - var v20 *ScrollRect - if in.IsNull() { - in.Skip() - v20 = nil - } else { - if v20 == nil { - v20 = new(ScrollRect) - } - (*v20).UnmarshalEasyJSON(in) - } - out.ScrollRects = append(out.ScrollRects, v20) - in.WantComma() - } - in.Delim(']') - } default: in.SkipRecursive() } @@ -1544,359 +1896,39 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(out *jwriter.Writer, in Layer) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Writer, in CompositingReasonsParams) { out.RawByte('{') first := true _ = first - if in.LayerID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"layerId\":") - out.String(string(in.LayerID)) - } - if in.ParentLayerID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"parentLayerId\":") - out.String(string(in.ParentLayerID)) - } - if in.BackendNodeID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"backendNodeId\":") - out.Int64(int64(in.BackendNodeID)) - } - if in.OffsetX != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"offsetX\":") - out.Float64(float64(in.OffsetX)) - } - if in.OffsetY != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"offsetY\":") - out.Float64(float64(in.OffsetY)) - } - if in.Width != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"width\":") - out.Float64(float64(in.Width)) - } - if in.Height != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"height\":") - out.Float64(float64(in.Height)) - } - if len(in.Transform) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"transform\":") - if in.Transform == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v21, v22 := range in.Transform { - if v21 > 0 { - out.RawByte(',') - } - out.Float64(float64(v22)) - } - out.RawByte(']') - } - } - if in.AnchorX != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"anchorX\":") - out.Float64(float64(in.AnchorX)) - } - if in.AnchorY != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"anchorY\":") - out.Float64(float64(in.AnchorY)) - } - if in.AnchorZ != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"anchorZ\":") - out.Float64(float64(in.AnchorZ)) - } - if in.PaintCount != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"paintCount\":") - out.Int64(int64(in.PaintCount)) - } - if in.DrawsContent { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"drawsContent\":") - out.Bool(bool(in.DrawsContent)) - } - if in.Invisible { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"invisible\":") - out.Bool(bool(in.Invisible)) - } - if len(in.ScrollRects) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scrollRects\":") - if in.ScrollRects == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v23, v24 := range in.ScrollRects { - if v23 > 0 { - out.RawByte(',') - } - if v24 == nil { - out.RawString("null") - } else { - (*v24).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } + if !first { + out.RawByte(',') } + first = false + out.RawString("\"layerId\":") + out.String(string(in.LayerID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Layer) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Layer) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Layer) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(in *jlexer.Lexer, out *PictureTile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "picture": - out.Picture = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(out *jwriter.Writer, in PictureTile) { - out.RawByte('{') - first := true - _ = first - if in.X != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"x\":") - out.Float64(float64(in.X)) - } - if in.Y != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"y\":") - out.Float64(float64(in.Y)) - } - if in.Picture != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"picture\":") - out.String(string(in.Picture)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PictureTile) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PictureTile) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PictureTile) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PictureTile) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(in *jlexer.Lexer, out *ScrollRect) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rect": - if in.IsNull() { - in.Skip() - out.Rect = nil - } else { - if out.Rect == nil { - out.Rect = new(dom.Rect) - } - (*out.Rect).UnmarshalEasyJSON(in) - } - case "type": - (out.Type).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(out *jwriter.Writer, in ScrollRect) { - out.RawByte('{') - first := true - _ = first - if in.Rect != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"rect\":") - if in.Rect == nil { - out.RawString("null") - } else { - (*in.Rect).MarshalEasyJSON(out) - } - } - 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 ScrollRect) MarshalJSON() ([]byte, error) { +func (v CompositingReasonsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScrollRect) MarshalEasyJSON(w *jwriter.Writer) { +func (v CompositingReasonsParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLayertree19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ScrollRect) UnmarshalJSON(data []byte) error { +func (v *CompositingReasonsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScrollRect) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *CompositingReasonsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLayertree19(l, v) } diff --git a/cdp/log/easyjson.go b/cdp/log/easyjson.go index e772748..6eb6e64 100644 --- a/cdp/log/easyjson.go +++ b/cdp/log/easyjson.go @@ -19,350 +19,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(out *jwriter.Writer, in StopViolationsReportParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(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 !in.IsDelim(']') { - out.Config = make([]*ViolationSetting, 0, 8) - } else { - out.Config = []*ViolationSetting{} - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartViolationsReportParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(in *jlexer.Lexer, out *ViolationSetting) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(in *jlexer.Lexer, out *ViolationSetting) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -395,7 +52,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(in *jlexer.Lexer, out *Vi in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(out *jwriter.Writer, in ViolationSetting) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(out *jwriter.Writer, in ViolationSetting) { out.RawByte('{') first := true _ = first @@ -421,27 +78,278 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(out *jwriter.Writer, in V // MarshalJSON supports json.Marshaler interface func (v ViolationSetting) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ViolationSetting) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ViolationSetting) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ViolationSetting) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(in *jlexer.Lexer, out *Entry) { +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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StopViolationsReportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopViolationsReportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog1(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartViolationsReportParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartViolationsReportParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartViolationsReportParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog2(&r, v) + return r.Error() +} + +// 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 in.Entry != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"entry\":") + if in.Entry == nil { + out.RawString("null") + } else { + (*in.Entry).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventEntryAdded) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// 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 { @@ -496,7 +404,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(in *jlexer.Lexer, out *En in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(out *jwriter.Writer, in Entry) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(out *jwriter.Writer, in Entry) { out.RawByte('{') first := true _ = first @@ -582,27 +490,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(out *jwriter.Writer, in E // MarshalJSON supports json.Marshaler interface func (v Entry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Entry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog6(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Entry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Entry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog6(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(in *jlexer.Lexer, out *EventEntryAdded) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog5(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -621,16 +529,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(in *jlexer.Lexer, out *Ev 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() } @@ -641,45 +539,151 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(in *jlexer.Lexer, out *Ev in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(out *jwriter.Writer, in EventEntryAdded) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog5(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first - if in.Entry != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"entry\":") - if in.Entry == nil { - out.RawString("null") - } else { - (*in.Entry).MarshalEasyJSON(out) - } - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventEntryAdded) MarshalJSON() ([]byte, error) { +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 EventEntryAdded) MarshalEasyJSON(w *jwriter.Writer) { +func (v ClearParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpLog7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventEntryAdded) UnmarshalJSON(data []byte) error { +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 *EventEntryAdded) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ClearParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpLog7(l, v) } diff --git a/cdp/log/types.go b/cdp/log/types.go index e399630..293bf3b 100644 --- a/cdp/log/types.go +++ b/cdp/log/types.go @@ -162,12 +162,13 @@ func (t Violation) String() string { // Violation values. const ( - ViolationLongTask Violation = "longTask" - ViolationLongLayout Violation = "longLayout" - ViolationBlockedEvent Violation = "blockedEvent" - ViolationBlockedParser Violation = "blockedParser" - ViolationHandler Violation = "handler" - ViolationRecurringHandler Violation = "recurringHandler" + ViolationLongTask Violation = "longTask" + ViolationLongLayout Violation = "longLayout" + ViolationBlockedEvent Violation = "blockedEvent" + ViolationBlockedParser Violation = "blockedParser" + ViolationDiscouragedAPIUse Violation = "discouragedAPIUse" + ViolationHandler Violation = "handler" + ViolationRecurringHandler Violation = "recurringHandler" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -191,6 +192,8 @@ func (t *Violation) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = ViolationBlockedEvent case ViolationBlockedParser: *t = ViolationBlockedParser + case ViolationDiscouragedAPIUse: + *t = ViolationDiscouragedAPIUse case ViolationHandler: *t = ViolationHandler case ViolationRecurringHandler: diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index dacb1ab..ee92881 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -20,7 +20,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out *WebSocketResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -39,16 +39,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out continue } switch key { - case "requestId": - out.RequestID = RequestID(in.String()) - case "timestamp": - (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()) + case "status": + out.Status = float64(in.Float64()) + case "statusText": + out.StatusText = string(in.String()) + case "headers": + if in.IsNull() { + in.Skip() + out.Headers = nil + } else { + if out.Headers == nil { + out.Headers = new(Headers) + } + (*out.Headers).UnmarshalEasyJSON(in) + } + case "headersText": + out.HeadersText = string(in.String()) + case "requestHeaders": + if in.IsNull() { + in.Skip() + out.RequestHeaders = nil + } else { + if out.RequestHeaders == nil { + out.RequestHeaders = new(Headers) + } + (*out.RequestHeaders).UnmarshalEasyJSON(in) + } + case "requestHeadersText": + out.RequestHeadersText = string(in.String()) default: in.SkipRecursive() } @@ -59,77 +77,93 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(out *jwriter.Writer, in EventEventSourceMessageReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(out *jwriter.Writer, in WebSocketResponse) { out.RawByte('{') first := true _ = first - if in.RequestID != "" { + if in.Status != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) + out.RawString("\"status\":") + out.Float64(float64(in.Status)) } - if true { + if in.StatusText != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) + out.RawString("\"statusText\":") + out.String(string(in.StatusText)) } - if in.EventName != "" { + if in.Headers != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"eventName\":") - out.String(string(in.EventName)) + out.RawString("\"headers\":") + if in.Headers == nil { + out.RawString("null") + } else { + (*in.Headers).MarshalEasyJSON(out) + } } - if in.EventID != "" { + if in.HeadersText != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"eventId\":") - out.String(string(in.EventID)) + out.RawString("\"headersText\":") + out.String(string(in.HeadersText)) } - if in.Data != "" { + if in.RequestHeaders != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"data\":") - out.String(string(in.Data)) + out.RawString("\"requestHeaders\":") + if in.RequestHeaders == nil { + out.RawString("null") + } else { + (*in.RequestHeaders).MarshalEasyJSON(out) + } + } + if in.RequestHeadersText != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestHeadersText\":") + out.String(string(in.RequestHeadersText)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { +func (v WebSocketResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { +func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { +func (v *WebSocketResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out *EventWebSocketFrameSent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out *WebSocketRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -148,19 +182,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out continue } switch key { - case "requestId": - out.RequestID = RequestID(in.String()) - case "timestamp": - (out.Timestamp).UnmarshalEasyJSON(in) - case "response": + case "headers": if in.IsNull() { in.Skip() - out.Response = nil + out.Headers = nil } else { - if out.Response == nil { - out.Response = new(WebSocketFrame) + if out.Headers == nil { + out.Headers = new(Headers) } - (*out.Response).UnmarshalEasyJSON(in) + (*out.Headers).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -172,65 +202,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(out *jwriter.Writer, in EventWebSocketFrameSent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(out *jwriter.Writer, in WebSocketRequest) { out.RawByte('{') first := true _ = first - if in.RequestID != "" { + if in.Headers != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.Response != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"response\":") - if in.Response == nil { + out.RawString("\"headers\":") + if in.Headers == nil { out.RawString("null") } else { - (*in.Response).MarshalEasyJSON(out) + (*in.Headers).MarshalEasyJSON(out) } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { +func (v WebSocketRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) { +func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error { +func (v *WebSocketRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out *EventWebSocketFrameError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out *WebSocketFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -249,12 +263,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out continue } switch key { - case "requestId": - out.RequestID = RequestID(in.String()) - case "timestamp": - (out.Timestamp).UnmarshalEasyJSON(in) - case "errorMessage": - out.ErrorMessage = string(in.String()) + case "opcode": + out.Opcode = float64(in.Float64()) + case "mask": + out.Mask = bool(in.Bool()) + case "payloadData": + out.PayloadData = string(in.String()) default: in.SkipRecursive() } @@ -265,61 +279,61 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(out *jwriter.Writer, in EventWebSocketFrameError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(out *jwriter.Writer, in WebSocketFrame) { out.RawByte('{') first := true _ = first - if in.RequestID != "" { + if in.Opcode != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) + out.RawString("\"opcode\":") + out.Float64(float64(in.Opcode)) } - if true { + if in.Mask { if !first { out.RawByte(',') } first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) + out.RawString("\"mask\":") + out.Bool(bool(in.Mask)) } - if in.ErrorMessage != "" { + if in.PayloadData != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"errorMessage\":") - out.String(string(in.ErrorMessage)) + out.RawString("\"payloadData\":") + out.String(string(in.PayloadData)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) { +func (v WebSocketFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) { +func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error { +func (v *WebSocketFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out *SignedCertificateTimestamp) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -338,20 +352,22 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out continue } switch key { - case "requestId": - out.RequestID = RequestID(in.String()) + 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": (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) - } + case "hashAlgorithm": + out.HashAlgorithm = string(in.String()) + case "signatureAlgorithm": + out.SignatureAlgorithm = string(in.String()) + case "signatureData": + out.SignatureData = string(in.String()) default: in.SkipRecursive() } @@ -362,17 +378,41 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, in EventWebSocketFrameReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, in SignedCertificateTimestamp) { out.RawByte('{') first := true _ = first - if in.RequestID != "" { + if in.Status != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) + out.RawString("\"status\":") + out.String(string(in.Status)) + } + if in.Origin != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + } + if in.LogDescription != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"logDescription\":") + out.String(string(in.LogDescription)) + } + if in.LogID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"logId\":") + out.String(string(in.LogID)) } if true { if !first { @@ -382,45 +422,57 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, out.RawString("\"timestamp\":") (in.Timestamp).MarshalEasyJSON(out) } - if in.Response != nil { + if in.HashAlgorithm != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"response\":") - if in.Response == nil { - out.RawString("null") - } else { - (*in.Response).MarshalEasyJSON(out) + out.RawString("\"hashAlgorithm\":") + out.String(string(in.HashAlgorithm)) + } + if in.SignatureAlgorithm != "" { + if !first { + out.RawByte(',') } + first = false + out.RawString("\"signatureAlgorithm\":") + out.String(string(in.SignatureAlgorithm)) + } + if in.SignatureData != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"signatureData\":") + out.String(string(in.SignatureData)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) { +func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) { +func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error { +func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out *EventWebSocketClosed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out *SetUserAgentOverrideParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -439,10 +491,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out continue } switch key { - case "requestId": - out.RequestID = RequestID(in.String()) - case "timestamp": - (out.Timestamp).UnmarshalEasyJSON(in) + case "userAgent": + out.UserAgent = string(in.String()) default: in.SkipRecursive() } @@ -453,1285 +503,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(out *jwriter.Writer, in EventWebSocketClosed) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in EventWebSocketCreated) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if in.URL != "" { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(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": - (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(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": - (out.Timestamp).UnmarshalEasyJSON(in) - case "wallTime": - (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"wallTime\":") - (in.WallTime).MarshalEasyJSON(out) - } - if in.Request != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"request\":") - if in.Request == nil { - out.RawString("null") - } else { - (*in.Request).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(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": - (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in EventLoadingFailed) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.ErrorText != "" { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(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": - (out.Timestamp).UnmarshalEasyJSON(in) - case "encodedDataLength": - out.EncodedDataLength = float64(in.Float64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in EventLoadingFinished) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.EncodedDataLength != 0 { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(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": - (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in EventDataReceived) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.DataLength != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"dataLength\":") - out.Int64(int64(in.DataLength)) - } - if in.EncodedDataLength != 0 { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDataReceived) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(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 "frameId": - (out.FrameID).UnmarshalEasyJSON(in) - case "loaderId": - out.LoaderID = cdp.LoaderID(in.String()) - case "timestamp": - (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) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in EventResponseReceived) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if in.FrameID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"frameId\":") - out.String(string(in.FrameID)) - } - if in.LoaderID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"loaderId\":") - out.String(string(in.LoaderID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.Type != "" { - 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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventResponseReceived) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventResponseReceived) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in EventRequestServedFromCache) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(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 "frameId": - (out.FrameID).UnmarshalEasyJSON(in) - 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": - (out.Timestamp).UnmarshalEasyJSON(in) - case "wallTime": - (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) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in EventRequestWillBeSent) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if in.FrameID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"frameId\":") - out.String(string(in.FrameID)) - } - if in.LoaderID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"loaderId\":") - out.String(string(in.LoaderID)) - } - if in.DocumentURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"documentURL\":") - out.String(string(in.DocumentURL)) - } - if in.Request != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"request\":") - if in.Request == nil { - out.RawString("null") - } else { - (*in.Request).MarshalEasyJSON(out) - } - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"wallTime\":") - (in.WallTime).MarshalEasyJSON(out) - } - 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) - } - } - 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) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(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": - (out.Timestamp).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in EventResourceChangedPriority) { - out.RawByte('{') - first := true - _ = first - if in.RequestID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestId\":") - out.String(string(in.RequestID)) - } - if in.NewPriority != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"newPriority\":") - (in.NewPriority).MarshalEasyJSON(out) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(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 !in.IsDelim(']') { - out.TableNames = make([]string, 0, 4) - } else { - out.TableNames = []string{} - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.TableNames = append(out.TableNames, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(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 v2, v3 := range in.TableNames { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in GetCertificateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(out *jwriter.Writer, in SetUserAgentOverrideParams) { out.RawByte('{') first := true _ = first @@ -1739,35 +511,181 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, out.RawByte(',') } first = false - out.RawString("\"origin\":") - out.String(string(in.Origin)) + out.RawString("\"userAgent\":") + out.String(string(in.UserAgent)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v GetCertificateParams) MarshalJSON() ([]byte, error) { +func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) +func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { +func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) +func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetMonitoringXHREnabledParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetMonitoringXHREnabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetMonitoringXHREnabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetMonitoringXHREnabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetMonitoringXHREnabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetMonitoringXHREnabledParams) 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() + out.Headers = nil + } else { + if out.Headers == nil { + out.Headers = new(Headers) + } + (*out.Headers).UnmarshalEasyJSON(in) + } + 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.RawString("null") + } else { + (*in.Headers).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v) + return r.Error() +} + +// 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 { @@ -1800,7 +718,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) { out.RawByte('{') first := true _ = first @@ -1822,390 +740,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *SetCookieReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookieReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2236,7 +791,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in SetCookieReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookieReturns) { out.RawByte('{') first := true _ = first @@ -2254,27 +809,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *SetCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2321,7 +876,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in SetCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieParams) { out.RawByte('{') first := true _ = first @@ -2397,27 +952,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *DeleteCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCacheDisabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2436,10 +991,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, ou continue } switch key { - case "cookieName": - out.CookieName = string(in.String()) - case "url": - out.URL = string(in.String()) + case "cacheDisabled": + out.CacheDisabled = bool(in.Bool()) default: in.SkipRecursive() } @@ -2450,7 +1003,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in DeleteCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCacheDisabledParams) { out.RawByte('{') first := true _ = first @@ -2458,41 +1011,35 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, out.RawByte(',') } first = false - out.RawString("\"cookieName\":") - out.String(string(in.CookieName)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) + out.RawString("\"cacheDisabled\":") + out.Bool(bool(in.CacheDisabled)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v DeleteCookieParams) MarshalJSON() ([]byte, error) { +func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) +func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteCookieParams) UnmarshalJSON(data []byte) error { +func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) +func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2511,29 +1058,143 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, ou continue } switch key { - case "cookies": + case "bypass": + out.Bypass = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(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.Cookies = nil + out.SanList = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Cookies = make([]*Cookie, 0, 8) + if out.SanList == nil { + if !in.IsDelim(']') { + out.SanList = make([]string, 0, 4) + } else { + out.SanList = []string{} + } } else { - out.Cookies = []*Cookie{} + out.SanList = (out.SanList)[:0] } for !in.IsDelim(']') { - var v4 *Cookie + var v1 string + v1 = string(in.String()) + out.SanList = append(out.SanList, v1) + in.WantComma() + } + in.Delim(']') + } + case "issuer": + out.Issuer = string(in.String()) + case "validFrom": + (out.ValidFrom).UnmarshalEasyJSON(in) + case "validTo": + (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 v2 *SignedCertificateTimestamp if in.IsNull() { in.Skip() - v4 = nil + v2 = nil } else { - if v4 == nil { - v4 = new(Cookie) + if v2 == nil { + v2 = new(SignedCertificateTimestamp) } - (*v4).UnmarshalEasyJSON(in) + (*v2).UnmarshalEasyJSON(in) } - out.Cookies = append(out.Cookies, v4) + out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v2) in.WantComma() } in.Delim(']') @@ -2548,21 +1209,120 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SecurityDetails) { out.RawByte('{') first := true _ = first - if len(in.Cookies) != 0 { + if in.Protocol != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"cookies\":") - if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("\"protocol\":") + out.String(string(in.Protocol)) + } + if in.KeyExchange != "" { + 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 in.Cipher != "" { + 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 in.CertificateID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"certificateId\":") + out.Int64(int64(in.CertificateID)) + } + if in.SubjectName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"subjectName\":") + out.String(string(in.SubjectName)) + } + if len(in.SanList) != 0 { + 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 v5, v6 := range in.Cookies { + for v3, v4 := range in.SanList { + if v3 > 0 { + out.RawByte(',') + } + out.String(string(v4)) + } + out.RawByte(']') + } + } + if in.Issuer != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"issuer\":") + out.String(string(in.Issuer)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"validFrom\":") + (in.ValidFrom).MarshalEasyJSON(out) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"validTo\":") + (in.ValidTo).MarshalEasyJSON(out) + } + if len(in.SignedCertificateTimestampList) != 0 { + 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 v5, v6 := range in.SignedCertificateTimestampList { if v5 > 0 { out.RawByte(',') } @@ -2579,2060 +1339,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, } // MarshalJSON supports json.Marshaler interface -func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { +func (v SecurityDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) +func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { +func (v *SecurityDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) +func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(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 !in.IsDelim(']') { - out.Cookies = make([]*Cookie, 0, 8) - } else { - out.Cookies = []*Cookie{} - } - for !in.IsDelim(']') { - var v7 *Cookie - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(Cookie) - } - (*v7).UnmarshalEasyJSON(in) - } - out.Cookies = append(out.Cookies, v7) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(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 v8, v9 := range in.Cookies { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(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 !in.IsDelim(']') { - out.Urls = make([]string, 0, 4) - } else { - out.Urls = []string{} - } - for !in.IsDelim(']') { - var v10 string - v10 = string(in.String()) - out.Urls = append(out.Urls, v10) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(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 v11, v12 := range in.Urls { - if v11 > 0 { - out.RawByte(',') - } - out.String(string(v12)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetCookiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *SetMonitoringXHREnabledParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in SetMonitoringXHREnabledParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enabled\":") - out.Bool(bool(in.Enabled)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetMonitoringXHREnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetMonitoringXHREnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetMonitoringXHREnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetMonitoringXHREnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *RemoveBlockedURLParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in RemoveBlockedURLParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveBlockedURLParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveBlockedURLParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *AddBlockedURLParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in AddBlockedURLParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AddBlockedURLParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AddBlockedURLParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(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() - out.Headers = nil - } else { - if out.Headers == nil { - out.Headers = new(Headers) - } - (*out.Headers).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in SetExtraHTTPHeadersParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"headers\":") - if in.Headers == nil { - out.RawString("null") - } else { - (*in.Headers).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in Cookie) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Value != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - } - 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.Expires != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"expires\":") - out.Float64(float64(in.Expires)) - } - if in.Size != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"size\":") - out.Int64(int64(in.Size)) - } - if in.HTTPOnly { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"httpOnly\":") - out.Bool(bool(in.HTTPOnly)) - } - if in.Secure { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"secure\":") - out.Bool(bool(in.Secure)) - } - if in.Session { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Cookie) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in Initiator) { - out.RawByte('{') - first := true - _ = first - if in.Type != "" { - 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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Initiator) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Initiator) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in CachedResource) { - out.RawByte('{') - first := true - _ = first - if in.URL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - } - if in.Type != "" { - 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 in.BodySize != 0 { - 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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CachedResource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in WebSocketFrame) { - out.RawByte('{') - first := true - _ = first - if in.Opcode != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"opcode\":") - out.Float64(float64(in.Opcode)) - } - if in.Mask { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"mask\":") - out.Bool(bool(in.Mask)) - } - if in.PayloadData != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"payloadData\":") - out.String(string(in.PayloadData)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WebSocketFrame) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketFrame) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(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() - out.Headers = nil - } else { - if out.Headers == nil { - out.Headers = new(Headers) - } - (*out.Headers).UnmarshalEasyJSON(in) - } - case "headersText": - out.HeadersText = string(in.String()) - case "requestHeaders": - if in.IsNull() { - in.Skip() - out.RequestHeaders = nil - } else { - if out.RequestHeaders == nil { - out.RequestHeaders = new(Headers) - } - (*out.RequestHeaders).UnmarshalEasyJSON(in) - } - case "requestHeadersText": - out.RequestHeadersText = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in WebSocketResponse) { - out.RawByte('{') - first := true - _ = first - if in.Status != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"status\":") - out.Float64(float64(in.Status)) - } - if in.StatusText != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"statusText\":") - out.String(string(in.StatusText)) - } - if in.Headers != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"headers\":") - if in.Headers == nil { - out.RawString("null") - } else { - (*in.Headers).MarshalEasyJSON(out) - } - } - if in.HeadersText != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"headersText\":") - out.String(string(in.HeadersText)) - } - if in.RequestHeaders != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestHeaders\":") - if in.RequestHeaders == nil { - out.RawString("null") - } else { - (*in.RequestHeaders).MarshalEasyJSON(out) - } - } - if in.RequestHeadersText != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"requestHeadersText\":") - out.String(string(in.RequestHeadersText)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WebSocketResponse) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketResponse) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(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() - out.Headers = nil - } else { - if out.Headers == nil { - out.Headers = new(Headers) - } - (*out.Headers).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in WebSocketRequest) { - out.RawByte('{') - first := true - _ = first - if in.Headers != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"headers\":") - if in.Headers == nil { - out.RawString("null") - } else { - (*in.Headers).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WebSocketRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WebSocketRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *Response) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *Response) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4731,7 +1460,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in Response) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in Response) { out.RawByte('{') first := true _ = first @@ -4909,554 +1638,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Response) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Response) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Response) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(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 !in.IsDelim(']') { - out.SanList = make([]string, 0, 4) - } else { - out.SanList = []string{} - } - for !in.IsDelim(']') { - var v13 string - v13 = string(in.String()) - out.SanList = append(out.SanList, v13) - in.WantComma() - } - in.Delim(']') - } - case "issuer": - out.Issuer = string(in.String()) - case "validFrom": - (out.ValidFrom).UnmarshalEasyJSON(in) - case "validTo": - (out.ValidTo).UnmarshalEasyJSON(in) - case "signedCertificateTimestampList": - if in.IsNull() { - in.Skip() - out.SignedCertificateTimestampList = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8) - } else { - out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{} - } - for !in.IsDelim(']') { - var v14 *SignedCertificateTimestamp - if in.IsNull() { - in.Skip() - v14 = nil - } else { - if v14 == nil { - v14 = new(SignedCertificateTimestamp) - } - (*v14).UnmarshalEasyJSON(in) - } - out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v14) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in SecurityDetails) { - out.RawByte('{') - first := true - _ = first - if in.Protocol != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"protocol\":") - out.String(string(in.Protocol)) - } - if in.KeyExchange != "" { - 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 in.Cipher != "" { - 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 in.CertificateID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"certificateId\":") - out.Int64(int64(in.CertificateID)) - } - if in.SubjectName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"subjectName\":") - out.String(string(in.SubjectName)) - } - if len(in.SanList) != 0 { - 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 v15, v16 := range in.SanList { - if v15 > 0 { - out.RawByte(',') - } - out.String(string(v16)) - } - out.RawByte(']') - } - } - if in.Issuer != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"issuer\":") - out.String(string(in.Issuer)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"validFrom\":") - (in.ValidFrom).MarshalEasyJSON(out) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"validTo\":") - (in.ValidTo).MarshalEasyJSON(out) - } - if len(in.SignedCertificateTimestampList) != 0 { - 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 v17, v18 := range in.SignedCertificateTimestampList { - if v17 > 0 { - out.RawByte(',') - } - if v18 == nil { - out.RawString("null") - } else { - (*v18).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecurityDetails) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecurityDetails) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(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": - (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in SignedCertificateTimestamp) { - out.RawByte('{') - first := true - _ = first - if in.Status != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"status\":") - out.String(string(in.Status)) - } - if in.Origin != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"origin\":") - out.String(string(in.Origin)) - } - if in.LogDescription != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"logDescription\":") - out.String(string(in.LogDescription)) - } - if in.LogID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"logId\":") - out.String(string(in.LogID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - if in.HashAlgorithm != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"hashAlgorithm\":") - out.String(string(in.HashAlgorithm)) - } - if in.SignatureAlgorithm != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"signatureAlgorithm\":") - out.String(string(in.SignatureAlgorithm)) - } - if in.SignatureData != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"signatureData\":") - out.String(string(in.SignatureData)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(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() - out.Headers = nil - } else { - if out.Headers == nil { - out.Headers = new(Headers) - } - (*out.Headers).UnmarshalEasyJSON(in) - } - 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) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in Request) { - out.RawByte('{') - first := true - _ = first - 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.Headers != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"headers\":") - if in.Headers == nil { - out.RawString("null") - } else { - (*in.Headers).MarshalEasyJSON(out) - } - } - 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 in.InitialPriority != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"initialPriority\":") - (in.InitialPriority).MarshalEasyJSON(out) - } - if in.ReferrerPolicy != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"referrerPolicy\":") - (in.ReferrerPolicy).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Request) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Request) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Request) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *ResourceTiming) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *ResourceTiming) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5517,7 +1719,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in ResourceTiming) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in ResourceTiming) { out.RawByte('{') first := true _ = first @@ -5655,27 +1857,413 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ResourceTiming) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResourceTiming) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *Headers) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(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() + out.Headers = nil + } else { + if out.Headers == nil { + out.Headers = new(Headers) + } + (*out.Headers).UnmarshalEasyJSON(in) + } + 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) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Request) { + out.RawByte('{') + first := true + _ = first + 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.Headers != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"headers\":") + if in.Headers == nil { + out.RawString("null") + } else { + (*in.Headers).MarshalEasyJSON(out) + } + } + 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 in.InitialPriority != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"initialPriority\":") + (in.InitialPriority).MarshalEasyJSON(out) + } + if in.ReferrerPolicy != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"referrerPolicy\":") + (in.ReferrerPolicy).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Request) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Request) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Request) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *RemoveBlockedURLParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in RemoveBlockedURLParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveBlockedURLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveBlockedURLParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in Initiator) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v Initiator) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Initiator) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *Headers) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5704,7 +2292,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in Headers) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in Headers) { out.RawByte('{') first := true _ = first @@ -5714,23 +2302,3459 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Headers) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Headers) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Headers) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Headers) 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) + return r.Error() +} + +// 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 v7 *Cookie + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(Cookie) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v7) + 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 v8, v9 := range in.Cookies { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) + return r.Error() +} + +// 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 v10 string + v10 = string(in.String()) + out.Urls = append(out.Urls, v10) + 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 v11, v12 := range in.Urls { + if v11 > 0 { + out.RawByte(',') + } + out.String(string(v12)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) + return r.Error() +} + +// 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 v13 string + v13 = string(in.String()) + out.TableNames = append(out.TableNames, v13) + 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 v14, v15 := range in.TableNames { + if v14 > 0 { + out.RawByte(',') + } + out.String(string(v15)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetCertificateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) + return r.Error() +} + +// 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 v16 *Cookie + if in.IsNull() { + in.Skip() + v16 = nil + } else { + if v16 == nil { + v16 = new(Cookie) + } + (*v16).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v16) + 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 v17, v18 := range in.Cookies { + if v17 > 0 { + out.RawByte(',') + } + if v18 == nil { + out.RawString("null") + } else { + (*v18).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) + return r.Error() +} + +// 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) + return r.Error() +} + +// 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": + (out.Timestamp).UnmarshalEasyJSON(in) + case "wallTime": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"wallTime\":") + (in.WallTime).MarshalEasyJSON(out) + } + if in.Request != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + if in.Request == nil { + out.RawString("null") + } else { + (*in.Request).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) + return r.Error() +} + +// 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) + return r.Error() +} + +// 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).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) + } + } + 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.ErrorMessage != "" { + 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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if in.URL != "" { + 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + case "loaderId": + out.LoaderID = cdp.LoaderID(in.String()) + case "timestamp": + (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) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResponseReceived) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + if in.LoaderID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"loaderId\":") + out.String(string(in.LoaderID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.Type != "" { + 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) + } + } + 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": + (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 in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if in.NewPriority != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"newPriority\":") + (in.NewPriority).MarshalEasyJSON(out) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (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 "frameId": + (out.FrameID).UnmarshalEasyJSON(in) + 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": + (out.Timestamp).UnmarshalEasyJSON(in) + case "wallTime": + (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) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestWillBeSent) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if in.FrameID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"frameId\":") + out.String(string(in.FrameID)) + } + if in.LoaderID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"loaderId\":") + out.String(string(in.LoaderID)) + } + if in.DocumentURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"documentURL\":") + out.String(string(in.DocumentURL)) + } + if in.Request != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"request\":") + if in.Request == nil { + out.RawString("null") + } else { + (*in.Request).MarshalEasyJSON(out) + } + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"wallTime\":") + (in.WallTime).MarshalEasyJSON(out) + } + 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) + } + } + 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) + } + 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 in.RequestID != "" { + 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 *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": + (out.Timestamp).UnmarshalEasyJSON(in) + case "encodedDataLength": + out.EncodedDataLength = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventLoadingFinished) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.EncodedDataLength != 0 { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(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": + (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFailed) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.ErrorText != "" { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(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": + (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventEventSourceMessageReceived) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.EventName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventName\":") + out.String(string(in.EventName)) + } + if in.EventID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventId\":") + out.String(string(in.EventID)) + } + 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 EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(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": + (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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventDataReceived) { + out.RawByte('{') + first := true + _ = first + if in.RequestID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + if in.DataLength != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"dataLength\":") + out.Int64(int64(in.DataLength)) + } + if in.EncodedDataLength != 0 { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDataReceived) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DeleteCookieParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "cookieName": + out.CookieName = string(in.String()) + case "url": + out.URL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DeleteCookieParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cookieName\":") + out.String(string(in.CookieName)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DeleteCookieParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DeleteCookieParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DeleteCookieParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DeleteCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in Cookie) { + out.RawByte('{') + first := true + _ = first + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Value != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + } + 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.Expires != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expires\":") + out.Float64(float64(in.Expires)) + } + if in.Size != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"size\":") + out.Int64(int64(in.Size)) + } + if in.HTTPOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"httpOnly\":") + out.Bool(bool(in.HTTPOnly)) + } + if in.Secure { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"secure\":") + out.Bool(bool(in.Secure)) + } + if in.Session { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *Cookie) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CachedResource) { + out.RawByte('{') + first := true + _ = first + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Type != "" { + 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 in.BodySize != 0 { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CachedResource) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *AddBlockedURLParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in AddBlockedURLParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddBlockedURLParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddBlockedURLParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Headers) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AddBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v) } diff --git a/cdp/page/easyjson.go b/cdp/page/easyjson.go index 64c4cde..d4c89a0 100644 --- a/cdp/page/easyjson.go +++ b/cdp/page/easyjson.go @@ -148,7 +148,7 @@ func (v *VisualViewport) UnmarshalJSON(data []byte) error { func (v *VisualViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *LayoutViewport) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *StopScreencastParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -167,14 +167,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *L 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() } @@ -185,69 +177,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(in *jlexer.Lexer, out *L in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(out *jwriter.Writer, in LayoutViewport) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(out *jwriter.Writer, in StopScreencastParams) { out.RawByte('{') first := true _ = first - if in.PageX != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pageX\":") - out.Int64(int64(in.PageX)) - } - if in.PageY != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"pageY\":") - out.Int64(int64(in.PageY)) - } - if in.ClientWidth != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"clientWidth\":") - out.Int64(int64(in.ClientWidth)) - } - if in.ClientHeight != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"clientHeight\":") - out.Int64(int64(in.ClientHeight)) - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v LayoutViewport) MarshalJSON() ([]byte, error) { +func (v StopScreencastParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) { +func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *LayoutViewport) UnmarshalJSON(data []byte) error { +func (v *StopScreencastParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *AppManifestError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *StopLoadingParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -266,14 +226,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *A 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() } @@ -284,69 +236,638 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(in *jlexer.Lexer, out *A in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(out *jwriter.Writer, in AppManifestError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(out *jwriter.Writer, in StopLoadingParams) { out.RawByte('{') first := true _ = first - if in.Message != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"message\":") - out.String(string(in.Message)) - } - if in.Critical != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"critical\":") - out.Int64(int64(in.Critical)) - } - if in.Line != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"line\":") - out.Int64(int64(in.Line)) - } - if in.Column != 0 { - 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) { +func (v StopLoadingParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { +func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *AppManifestError) UnmarshalJSON(data []byte) error { +func (v *StopLoadingParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(in *jlexer.Lexer, out *ScreencastFrameMetadata) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartScreencastParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartScreencastParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *SetControlNavigationsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in SetControlNavigationsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetControlNavigationsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetControlNavigationsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetControlNavigationsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetControlNavigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(in *jlexer.Lexer, out *SetColorPickerEnabledParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(out *jwriter.Writer, in SetColorPickerEnabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetColorPickerEnabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetColorPickerEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetColorPickerEnabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetColorPickerEnabledParams) 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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SearchInResourceParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(in *jlexer.Lexer, out *ScreencastFrameMetadata) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -389,7 +910,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(in *jlexer.Lexer, out *S in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(out *jwriter.Writer, in ScreencastFrameMetadata) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(out *jwriter.Writer, in ScreencastFrameMetadata) { out.RawByte('{') first := true _ = first @@ -455,27 +976,374 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v ScreencastFrameMetadata) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScreencastFrameMetadata) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScreencastFrameMetadata) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScreencastFrameMetadata) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(in *jlexer.Lexer, out *NavigationEntry) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(out *jwriter.Writer, in RequestAppBannerParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnLoadParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(out *jwriter.Writer, in RemoveScriptToEvaluateOnLoadParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"identifier\":") + out.String(string(in.Identifier)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RemoveScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ReloadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReloadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(in *jlexer.Lexer, out *ProcessNavigationParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "navigationId": + out.NavigationID = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(out *jwriter.Writer, in ProcessNavigationParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"response\":") + (in.Response).MarshalEasyJSON(out) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"navigationId\":") + out.Int64(int64(in.NavigationID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ProcessNavigationParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ProcessNavigationParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ProcessNavigationParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ProcessNavigationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(in *jlexer.Lexer, out *NavigationEntry) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -510,7 +1378,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(in *jlexer.Lexer, out *N in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(out *jwriter.Writer, in NavigationEntry) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(out *jwriter.Writer, in NavigationEntry) { out.RawByte('{') first := true _ = first @@ -544,27 +1412,1236 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v NavigationEntry) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NavigationEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NavigationEntry) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NavigationEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *FrameResourceTree) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v NavigateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(out *jwriter.Writer, in NavigateParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v NavigateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *NavigateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(out *jwriter.Writer, in LayoutViewport) { + out.RawByte('{') + first := true + _ = first + if in.PageX != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageX\":") + out.Int64(int64(in.PageX)) + } + if in.PageY != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"pageY\":") + out.Int64(int64(in.PageY)) + } + if in.ClientWidth != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientWidth\":") + out.Int64(int64(in.ClientWidth)) + } + if in.ClientHeight != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"clientHeight\":") + out.Int64(int64(in.ClientHeight)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v LayoutViewport) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v LayoutViewport) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *LayoutViewport) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *LayoutViewport) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(out *jwriter.Writer, in GetResourceTreeParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetResourceContentParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(out *jwriter.Writer, in GetNavigationHistoryParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(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) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(in *jlexer.Lexer, out *FrameResourceTree) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -599,23 +2676,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *F out.ChildFrames = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.ChildFrames = make([]*FrameResourceTree, 0, 8) + if out.ChildFrames == nil { + if !in.IsDelim(']') { + out.ChildFrames = make([]*FrameResourceTree, 0, 8) + } else { + out.ChildFrames = []*FrameResourceTree{} + } } else { - out.ChildFrames = []*FrameResourceTree{} + out.ChildFrames = (out.ChildFrames)[:0] } for !in.IsDelim(']') { - var v1 *FrameResourceTree + var v10 *FrameResourceTree if in.IsNull() { in.Skip() - v1 = nil + v10 = nil } else { - if v1 == nil { - v1 = new(FrameResourceTree) + if v10 == nil { + v10 = new(FrameResourceTree) } - (*v1).UnmarshalEasyJSON(in) + (*v10).UnmarshalEasyJSON(in) } - out.ChildFrames = append(out.ChildFrames, v1) + out.ChildFrames = append(out.ChildFrames, v10) in.WantComma() } in.Delim(']') @@ -626,23 +2707,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *F out.Resources = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Resources = make([]*FrameResource, 0, 8) + if out.Resources == nil { + if !in.IsDelim(']') { + out.Resources = make([]*FrameResource, 0, 8) + } else { + out.Resources = []*FrameResource{} + } } else { - out.Resources = []*FrameResource{} + out.Resources = (out.Resources)[:0] } for !in.IsDelim(']') { - var v2 *FrameResource + var v11 *FrameResource if in.IsNull() { in.Skip() - v2 = nil + v11 = nil } else { - if v2 == nil { - v2 = new(FrameResource) + if v11 == nil { + v11 = new(FrameResource) } - (*v2).UnmarshalEasyJSON(in) + (*v11).UnmarshalEasyJSON(in) } - out.Resources = append(out.Resources, v2) + out.Resources = append(out.Resources, v11) in.WantComma() } in.Delim(']') @@ -657,7 +2742,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(in *jlexer.Lexer, out *F in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in FrameResourceTree) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in FrameResourceTree) { out.RawByte('{') first := true _ = first @@ -683,14 +2768,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v3, v4 := range in.ChildFrames { - if v3 > 0 { + for v12, v13 := range in.ChildFrames { + if v12 > 0 { out.RawByte(',') } - if v4 == nil { + if v13 == nil { out.RawString("null") } else { - (*v4).MarshalEasyJSON(out) + (*v13).MarshalEasyJSON(out) } } out.RawByte(']') @@ -706,14 +2791,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.Resources { - if v5 > 0 { + for v14, v15 := range in.Resources { + if v14 > 0 { out.RawByte(',') } - if v6 == nil { + if v15 == nil { out.RawString("null") } else { - (*v6).MarshalEasyJSON(out) + (*v15).MarshalEasyJSON(out) } } out.RawByte(']') @@ -725,27 +2810,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FrameResourceTree) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FrameResourceTree) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FrameResourceTree) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FrameResourceTree) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage5(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(in *jlexer.Lexer, out *FrameResource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(in *jlexer.Lexer, out *FrameResource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -788,7 +2873,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(in *jlexer.Lexer, out *F in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(out *jwriter.Writer, in FrameResource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(out *jwriter.Writer, in FrameResource) { out.RawByte('{') first := true _ = first @@ -853,2971 +2938,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v FrameResource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FrameResource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(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) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetLayoutMetricsReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayoutMetricsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayoutMetricsReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayoutMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetLayoutMetricsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetLayoutMetricsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetLayoutMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(in *jlexer.Lexer, out *ProcessNavigationParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "navigationId": - out.NavigationID = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(out *jwriter.Writer, in ProcessNavigationParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"response\":") - (in.Response).MarshalEasyJSON(out) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"navigationId\":") - out.Int64(int64(in.NavigationID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ProcessNavigationParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ProcessNavigationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ProcessNavigationParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ProcessNavigationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(in *jlexer.Lexer, out *SetControlNavigationsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(out *jwriter.Writer, in SetControlNavigationsParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enabled\":") - out.Bool(bool(in.Enabled)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetControlNavigationsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetControlNavigationsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetControlNavigationsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetControlNavigationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(out *jwriter.Writer, in RequestAppBannerParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RequestAppBannerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RequestAppBannerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RequestAppBannerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestAppBannerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(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 !in.IsDelim(']') { - out.Errors = make([]*AppManifestError, 0, 8) - } else { - out.Errors = []*AppManifestError{} - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAppManifestReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAppManifestReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAppManifestReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetAppManifestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetAppManifestParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetAppManifestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(in *jlexer.Lexer, out *ConfigureOverlayParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - case "message": - out.Message = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(out *jwriter.Writer, in ConfigureOverlayParams) { - out.RawByte('{') - first := true - _ = first - if in.Suspended { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"suspended\":") - out.Bool(bool(in.Suspended)) - } - if in.Message != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"message\":") - out.String(string(in.Message)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigureOverlayParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigureOverlayParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigureOverlayParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigureOverlayParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(in *jlexer.Lexer, out *SetColorPickerEnabledParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(out *jwriter.Writer, in SetColorPickerEnabledParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enabled\":") - out.Bool(bool(in.Enabled)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetColorPickerEnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetColorPickerEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetColorPickerEnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetColorPickerEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HandleJavaScriptDialogParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HandleJavaScriptDialogParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HandleJavaScriptDialogParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HandleJavaScriptDialogParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScreencastFrameAckParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScreencastFrameAckParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScreencastFrameAckParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScreencastFrameAckParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(out *jwriter.Writer, in StopScreencastParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopScreencastParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopScreencastParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartScreencastParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartScreencastParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartScreencastParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartScreencastParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(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)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetDocumentContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDocumentContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDocumentContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDocumentContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(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 !in.IsDelim(']') { - out.Result = make([]*debugger.SearchMatch, 0, 8) - } else { - out.Result = []*debugger.SearchMatch{} - } - for !in.IsDelim(']') { - var v10 *debugger.SearchMatch - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(debugger.SearchMatch) - } - (*v10).UnmarshalEasyJSON(in) - } - out.Result = append(out.Result, v10) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(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 v11, v12 := range in.Result { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SearchInResourceReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInResourceReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage23(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInResourceReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SearchInResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage23(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SearchInResourceParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SearchInResourceParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage24(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SearchInResourceParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SearchInResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage24(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResourceContentReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceContentReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage25(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceContentReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResourceContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage25(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResourceContentParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceContentParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage26(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceContentParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResourceContentParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage26(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResourceTreeReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceTreeReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage27(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceTreeReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResourceTreeReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage27(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(out *jwriter.Writer, in GetResourceTreeParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetResourceTreeParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetResourceTreeParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage28(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetResourceTreeParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetResourceTreeParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage28(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NavigateToHistoryEntryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateToHistoryEntryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage29(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateToHistoryEntryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NavigateToHistoryEntryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage29(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(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 !in.IsDelim(']') { - out.Entries = make([]*NavigationEntry, 0, 8) - } else { - out.Entries = []*NavigationEntry{} - } - for !in.IsDelim(']') { - var v13 *NavigationEntry - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(NavigationEntry) - } - (*v13).UnmarshalEasyJSON(in) - } - out.Entries = append(out.Entries, v13) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(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 v14, v15 := range in.Entries { - 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 GetNavigationHistoryReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNavigationHistoryReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage30(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNavigationHistoryReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetNavigationHistoryReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage30(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(out *jwriter.Writer, in GetNavigationHistoryParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetNavigationHistoryParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetNavigationHistoryParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetNavigationHistoryParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetNavigationHistoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(out *jwriter.Writer, in StopLoadingParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopLoadingParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopLoadingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopLoadingParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopLoadingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NavigateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v FrameResource) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateReturns) UnmarshalJSON(data []byte) error { +func (v *FrameResource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NavigateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *FrameResource) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage33(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(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()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in NavigateParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NavigateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NavigateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NavigateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NavigateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReloadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReloadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReloadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReloadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetAutoAttachToCreatedPagesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAutoAttachToCreatedPagesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAutoAttachToCreatedPagesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAutoAttachToCreatedPagesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(in *jlexer.Lexer, out *RemoveScriptToEvaluateOnLoadParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in RemoveScriptToEvaluateOnLoadParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"identifier\":") - out.String(string(in.Identifier)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoveScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoveScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoveScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in AddScriptToEvaluateOnLoadReturns) { - 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 AddScriptToEvaluateOnLoadReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in AddScriptToEvaluateOnLoadParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptSource\":") - out.String(string(in.ScriptSource)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AddScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AddScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AddScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventNavigationRequested) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "isInMainFrame": - out.IsInMainFrame = bool(in.Bool()) - case "isRedirect": - out.IsRedirect = bool(in.Bool()) - case "navigationId": - out.NavigationID = int64(in.Int64()) - case "url": - out.URL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventNavigationRequested) { - out.RawByte('{') - first := true - _ = first - if in.IsInMainFrame { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"isInMainFrame\":") - out.Bool(bool(in.IsInMainFrame)) - } - if in.IsRedirect { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"isRedirect\":") - out.Bool(bool(in.IsRedirect)) - } - if in.NavigationID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"navigationId\":") - out.Int64(int64(in.NavigationID)) - } - if in.URL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventNavigationRequested) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventNavigationRequested) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventNavigationRequested) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventNavigationRequested) 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 *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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventColorPicked) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "color": - if in.IsNull() { - in.Skip() - out.Color = nil - } else { - if out.Color == nil { - out.Color = new(cdp.RGBA) - } - (*out.Color).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventColorPicked) { - out.RawByte('{') - first := true - _ = first - 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) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventColorPicked) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventColorPicked) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventColorPicked) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventColorPicked) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(in *jlexer.Lexer, out *EventScreencastVisibilityChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3848,7 +2990,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventScreencastVisibilityChanged) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(out *jwriter.Writer, in EventScreencastVisibilityChanged) { out.RawByte('{') first := true _ = first @@ -3866,27 +3008,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventScreencastVisibilityChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScreencastVisibilityChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScreencastVisibilityChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScreencastVisibilityChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out *EventScreencastFrame) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(in *jlexer.Lexer, out *EventScreencastFrame) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3929,7 +3071,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventScreencastFrame) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(out *jwriter.Writer, in EventScreencastFrame) { out.RawByte('{') first := true _ = first @@ -3967,27 +3109,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventScreencastFrame) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventScreencastFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventScreencastFrame) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventScreencastFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out *EventJavascriptDialogClosed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(in *jlexer.Lexer, out *EventNavigationRequested) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4006,8 +3148,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out * continue } switch key { - case "result": - out.Result = bool(in.Bool()) + case "isInMainFrame": + out.IsInMainFrame = bool(in.Bool()) + case "isRedirect": + out.IsRedirect = bool(in.Bool()) + case "navigationId": + out.NavigationID = int64(in.Int64()) + case "url": + out.URL = string(in.String()) default: in.SkipRecursive() } @@ -4018,45 +3166,138 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventJavascriptDialogClosed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(out *jwriter.Writer, in EventNavigationRequested) { out.RawByte('{') first := true _ = first - if in.Result { + if in.IsInMainFrame { if !first { out.RawByte(',') } first = false - out.RawString("\"result\":") - out.Bool(bool(in.Result)) + out.RawString("\"isInMainFrame\":") + out.Bool(bool(in.IsInMainFrame)) + } + if in.IsRedirect { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"isRedirect\":") + out.Bool(bool(in.IsRedirect)) + } + if in.NavigationID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"navigationId\":") + out.Int64(int64(in.NavigationID)) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) { +func (v EventNavigationRequested) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v) +func (v EventNavigationRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error { +func (v *EventNavigationRequested) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v) +func (v *EventNavigationRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(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": + (out.Timestamp).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(out *jwriter.Writer, in EventLoadEventFired) { + out.RawByte('{') + first := true + _ = first + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventLoadEventFired) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage37(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage37(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(in *jlexer.Lexer, out *EventJavascriptDialogOpening) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4089,7 +3330,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventJavascriptDialogOpening) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(out *jwriter.Writer, in EventJavascriptDialogOpening) { out.RawByte('{') first := true _ = first @@ -4115,27 +3356,96 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventJavascriptDialogOpening) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventJavascriptDialogOpening) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventJavascriptDialogOpening) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventJavascriptDialogOpening) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventFrameResized) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(out *jwriter.Writer, in EventJavascriptDialogClosed) { + 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 EventJavascriptDialogClosed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventJavascriptDialogClosed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage39(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventJavascriptDialogClosed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventJavascriptDialogClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage39(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(in *jlexer.Lexer, out *EventInterstitialShown) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4164,7 +3474,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventFrameResized) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(out *jwriter.Writer, in EventInterstitialShown) { out.RawByte('{') first := true _ = first @@ -4172,29 +3482,88 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v EventFrameResized) MarshalJSON() ([]byte, error) { +func (v EventInterstitialShown) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v) +func (v EventInterstitialShown) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameResized) UnmarshalJSON(data []byte) error { +func (v *EventInterstitialShown) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v) +func (v *EventInterstitialShown) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventFrameClearedScheduledNavigation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInterstitialHidden) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage41(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInterstitialHidden) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInterstitialHidden) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage41(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(in *jlexer.Lexer, out *EventFrameStoppedLoading) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4225,7 +3594,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(out *jwriter.Writer, in EventFrameStoppedLoading) { out.RawByte('{') first := true _ = first @@ -4241,29 +3610,98 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in } // MarshalJSON supports json.Marshaler interface -func (v EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) { +func (v EventFrameStoppedLoading) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v) +func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error { +func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v) +func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(out *jwriter.Writer, in EventFrameStartedLoading) { + out.RawByte('{') + first := true + _ = first + 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 EventFrameStartedLoading) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage43(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage43(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(in *jlexer.Lexer, out *EventFrameScheduledNavigation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4296,7 +3734,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in EventFrameScheduledNavigation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(out *jwriter.Writer, in EventFrameScheduledNavigation) { out.RawByte('{') first := true _ = first @@ -4322,27 +3760,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameScheduledNavigation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameScheduledNavigation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage44(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out *EventFrameStoppedLoading) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(in *jlexer.Lexer, out *EventFrameResized) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4361,8 +3799,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out * continue } switch key { - case "frameId": - (out.FrameID).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -4373,183 +3809,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(out *jwriter.Writer, in EventFrameStoppedLoading) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(out *jwriter.Writer, in EventFrameResized) { out.RawByte('{') first := true _ = first - 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 EventFrameStoppedLoading) MarshalJSON() ([]byte, error) { +func (v EventFrameResized) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameStoppedLoading) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v) +func (v EventFrameResized) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameStoppedLoading) UnmarshalJSON(data []byte) error { +func (v *EventFrameResized) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameStoppedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v) +func (v *EventFrameResized) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in EventFrameStartedLoading) { - out.RawByte('{') - first := true - _ = first - 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 EventFrameStartedLoading) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameStartedLoading) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameStartedLoading) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameStartedLoading) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(out *jwriter.Writer, in EventFrameDetached) { - out.RawByte('{') - first := true - _ = first - 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 EventFrameDetached) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out *EventFrameNavigated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(in *jlexer.Lexer, out *EventFrameNavigated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4588,7 +3878,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in EventFrameNavigated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(out *jwriter.Writer, in EventFrameNavigated) { out.RawByte('{') first := true _ = first @@ -4610,27 +3900,165 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameNavigated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameNavigated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameNavigated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out *EventFrameAttached) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(out *jwriter.Writer, in EventFrameDetached) { + out.RawByte('{') + first := true + _ = first + 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 EventFrameDetached) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameDetached) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage47(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameDetached) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameDetached) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage47(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(out *jwriter.Writer, in EventFrameClearedScheduledNavigation) { + out.RawByte('{') + first := true + _ = first + 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 EventFrameClearedScheduledNavigation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventFrameClearedScheduledNavigation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventFrameClearedScheduledNavigation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventFrameClearedScheduledNavigation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(in *jlexer.Lexer, out *EventFrameAttached) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4663,7 +4091,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in EventFrameAttached) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(out *jwriter.Writer, in EventFrameAttached) { out.RawByte('{') first := true _ = first @@ -4689,27 +4117,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventFrameAttached) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventFrameAttached) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventFrameAttached) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventFrameAttached) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *EventLoadEventFired) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(in *jlexer.Lexer, out *EventDomContentEventFired) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4740,76 +4168,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in EventLoadEventFired) { - out.RawByte('{') - first := true - _ = first - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventLoadEventFired) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventLoadEventFired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventLoadEventFired) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventLoadEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(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": - (out.Timestamp).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in EventDomContentEventFired) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(out *jwriter.Writer, in EventDomContentEventFired) { out.RawByte('{') first := true _ = first @@ -4827,23 +4186,684 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v EventDomContentEventFired) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDomContentEventFired) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDomContentEventFired) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage50(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(in *jlexer.Lexer, out *EventColorPicked) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "color": + if in.IsNull() { + in.Skip() + out.Color = nil + } else { + if out.Color == nil { + out.Color = new(cdp.RGBA) + } + (*out.Color).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(out *jwriter.Writer, in EventColorPicked) { + out.RawByte('{') + first := true + _ = first + 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) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventColorPicked) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventColorPicked) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage51(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventColorPicked) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventColorPicked) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage51(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage52(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage52(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage53(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage53(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(in *jlexer.Lexer, out *ConfigureOverlayParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + case "message": + out.Message = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(out *jwriter.Writer, in ConfigureOverlayParams) { + out.RawByte('{') + first := true + _ = first + if in.Suspended { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"suspended\":") + out.Bool(bool(in.Suspended)) + } + if in.Message != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ConfigureOverlayParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ConfigureOverlayParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage54(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ConfigureOverlayParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ConfigureOverlayParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage54(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CaptureScreenshotReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage55(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CaptureScreenshotReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CaptureScreenshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage55(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(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()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(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)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CaptureScreenshotParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CaptureScreenshotParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage56(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CaptureScreenshotParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CaptureScreenshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage56(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(out *jwriter.Writer, in AppManifestError) { + out.RawByte('{') + first := true + _ = first + if in.Message != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + } + if in.Critical != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"critical\":") + out.Int64(int64(in.Critical)) + } + if in.Line != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"line\":") + out.Int64(int64(in.Line)) + } + if in.Column != 0 { + 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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AppManifestError) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage57(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AppManifestError) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AppManifestError) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage57(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in AddScriptToEvaluateOnLoadReturns) { + 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 AddScriptToEvaluateOnLoadReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddScriptToEvaluateOnLoadReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AddScriptToEvaluateOnLoadReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(in *jlexer.Lexer, out *AddScriptToEvaluateOnLoadParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(out *jwriter.Writer, in AddScriptToEvaluateOnLoadParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptSource\":") + out.String(string(in.ScriptSource)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AddScriptToEvaluateOnLoadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AddScriptToEvaluateOnLoadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage59(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AddScriptToEvaluateOnLoadParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDomContentEventFired) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AddScriptToEvaluateOnLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage59(l, v) } diff --git a/cdp/profiler/easyjson.go b/cdp/profiler/easyjson.go index 6d863a1..d7a1f06 100644 --- a/cdp/profiler/easyjson.go +++ b/cdp/profiler/easyjson.go @@ -19,7 +19,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out *PositionTickInfo) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out *StopReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -38,10 +38,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out continue } switch key { - case "line": - out.Line = int64(in.Int64()) - case "ticks": - out.Ticks = int64(in.Int64()) + 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() } @@ -52,53 +58,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, in PositionTickInfo) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(out *jwriter.Writer, in StopReturns) { out.RawByte('{') first := true _ = first - if in.Line != 0 { + if in.Profile != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"line\":") - out.Int64(int64(in.Line)) - } - if in.Ticks != 0 { - if !first { - out.RawByte(',') + out.RawString("\"profile\":") + if in.Profile == nil { + out.RawString("null") + } else { + (*in.Profile).MarshalEasyJSON(out) } - first = false - out.RawString("\"ticks\":") - out.Int64(int64(in.Ticks)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v PositionTickInfo) MarshalJSON() ([]byte, error) { +func (v StopReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer) { +func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *PositionTickInfo) UnmarshalJSON(data []byte) error { +func (v *StopReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StopReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, out *Profile) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, out *StopParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -117,75 +119,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, ou continue } switch key { - case "nodes": - if in.IsNull() { - in.Skip() - out.Nodes = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Nodes = make([]*ProfileNode, 0, 8) - } else { - out.Nodes = []*ProfileNode{} - } - for !in.IsDelim(']') { - var v1 *ProfileNode - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ProfileNode) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Nodes = append(out.Nodes, v1) - 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 !in.IsDelim(']') { - out.Samples = make([]int64, 0, 8) - } else { - out.Samples = []int64{} - } - for !in.IsDelim(']') { - var v2 int64 - v2 = int64(in.Int64()) - out.Samples = append(out.Samples, v2) - in.WantComma() - } - in.Delim(']') - } - case "timeDeltas": - if in.IsNull() { - in.Skip() - out.TimeDeltas = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.TimeDeltas = make([]int64, 0, 8) - } else { - out.TimeDeltas = []int64{} - } - for !in.IsDelim(']') { - var v3 int64 - v3 = int64(in.Int64()) - out.TimeDeltas = append(out.TimeDeltas, v3) - in.WantComma() - } - in.Delim(']') - } default: in.SkipRecursive() } @@ -196,114 +129,163 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in Profile) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(out *jwriter.Writer, in StopParams) { out.RawByte('{') first := true _ = first - if len(in.Nodes) != 0 { - 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 v4, v5 := range in.Nodes { - if v4 > 0 { - out.RawByte(',') - } - if v5 == nil { - out.RawString("null") - } else { - (*v5).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.StartTime != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"startTime\":") - out.Float64(float64(in.StartTime)) - } - if in.EndTime != 0 { - 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 v6, v7 := range in.Samples { - if v6 > 0 { - out.RawByte(',') - } - out.Int64(int64(v7)) - } - 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 v8, v9 := range in.TimeDeltas { - if v8 > 0 { - out.RawByte(',') - } - out.Int64(int64(v9)) - } - out.RawByte(']') - } - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v Profile) MarshalJSON() ([]byte, error) { +func (v StopParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v Profile) MarshalEasyJSON(w *jwriter.Writer) { +func (v StopParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *Profile) UnmarshalJSON(data []byte) error { +func (v *StopParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, out *ProfileNode) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, in StartParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in SetSamplingIntervalParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"interval\":") + out.Int64(int64(in.Interval)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(in *jlexer.Lexer, out *ProfileNode) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -342,15 +324,19 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, ou out.Children = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Children = make([]int64, 0, 8) + if out.Children == nil { + if !in.IsDelim(']') { + out.Children = make([]int64, 0, 8) + } else { + out.Children = []int64{} + } } else { - out.Children = []int64{} + out.Children = (out.Children)[:0] } for !in.IsDelim(']') { - var v10 int64 - v10 = int64(in.Int64()) - out.Children = append(out.Children, v10) + var v1 int64 + v1 = int64(in.Int64()) + out.Children = append(out.Children, v1) in.WantComma() } in.Delim(']') @@ -363,23 +349,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, ou out.PositionTicks = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.PositionTicks = make([]*PositionTickInfo, 0, 8) + if out.PositionTicks == nil { + if !in.IsDelim(']') { + out.PositionTicks = make([]*PositionTickInfo, 0, 8) + } else { + out.PositionTicks = []*PositionTickInfo{} + } } else { - out.PositionTicks = []*PositionTickInfo{} + out.PositionTicks = (out.PositionTicks)[:0] } for !in.IsDelim(']') { - var v11 *PositionTickInfo + var v2 *PositionTickInfo if in.IsNull() { in.Skip() - v11 = nil + v2 = nil } else { - if v11 == nil { - v11 = new(PositionTickInfo) + if v2 == nil { + v2 = new(PositionTickInfo) } - (*v11).UnmarshalEasyJSON(in) + (*v2).UnmarshalEasyJSON(in) } - out.PositionTicks = append(out.PositionTicks, v11) + out.PositionTicks = append(out.PositionTicks, v2) in.WantComma() } in.Delim(']') @@ -394,7 +384,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, in ProfileNode) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(out *jwriter.Writer, in ProfileNode) { out.RawByte('{') first := true _ = first @@ -436,11 +426,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v12, v13 := range in.Children { - if v12 > 0 { + for v3, v4 := range in.Children { + if v3 > 0 { out.RawByte(',') } - out.Int64(int64(v13)) + out.Int64(int64(v4)) } out.RawByte(']') } @@ -463,14 +453,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v14, v15 := range in.PositionTicks { - if v14 > 0 { + for v5, v6 := range in.PositionTicks { + if v5 > 0 { out.RawByte(',') } - if v15 == nil { + if v6 == nil { out.RawString("null") } else { - (*v15).MarshalEasyJSON(out) + (*v6).MarshalEasyJSON(out) } } out.RawByte(']') @@ -482,27 +472,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ProfileNode) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ProfileNode) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ProfileNode) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, out *StopReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(in *jlexer.Lexer, out *Profile) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -521,15 +511,86 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, ou continue } switch key { - case "profile": + case "nodes": if in.IsNull() { in.Skip() - out.Profile = nil + out.Nodes = nil } else { - if out.Profile == nil { - out.Profile = new(Profile) + 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] } - (*out.Profile).UnmarshalEasyJSON(in) + for !in.IsDelim(']') { + var v7 *ProfileNode + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(ProfileNode) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Nodes = append(out.Nodes, v7) + 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 v8 int64 + v8 = int64(in.Int64()) + out.Samples = append(out.Samples, v8) + 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 v9 int64 + v9 = int64(in.Int64()) + out.TimeDeltas = append(out.TimeDeltas, v9) + in.WantComma() + } + in.Delim(']') } default: in.SkipRecursive() @@ -541,167 +602,114 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(out *jwriter.Writer, in StopReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, in Profile) { out.RawByte('{') first := true _ = first - if in.Profile != nil { + if len(in.Nodes) != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"profile\":") - if in.Profile == nil { + out.RawString("\"nodes\":") + if in.Nodes == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { - (*in.Profile).MarshalEasyJSON(out) + out.RawByte('[') + for v10, v11 := range in.Nodes { + if v10 > 0 { + out.RawByte(',') + } + if v11 == nil { + out.RawString("null") + } else { + (*v11).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.StartTime != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"startTime\":") + out.Float64(float64(in.StartTime)) + } + if in.EndTime != 0 { + 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 v12, v13 := range in.Samples { + if v12 > 0 { + out.RawByte(',') + } + out.Int64(int64(v13)) + } + 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 v14, v15 := range in.TimeDeltas { + if v14 > 0 { + out.RawByte(',') + } + out.Int64(int64(v15)) + } + out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v StopReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopReturns) 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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(out *jwriter.Writer, in StartParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartParams) MarshalJSON() ([]byte, error) { +func (v Profile) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v Profile) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *StartParams) UnmarshalJSON(data []byte) error { +func (v *Profile) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *Profile) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, out *SetSamplingIntervalParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, out *PositionTickInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -720,8 +728,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, ou continue } switch key { - case "interval": - out.Interval = int64(in.Int64()) + case "line": + out.Line = int64(in.Int64()) + case "ticks": + out.Ticks = int64(in.Int64()) default: in.SkipRecursive() } @@ -732,43 +742,53 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in SetSamplingIntervalParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(out *jwriter.Writer, in PositionTickInfo) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.Line != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"line\":") + out.Int64(int64(in.Line)) + } + if in.Ticks != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ticks\":") + out.Int64(int64(in.Ticks)) } - first = false - out.RawString("\"interval\":") - out.Int64(int64(in.Interval)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetSamplingIntervalParams) MarshalJSON() ([]byte, error) { +func (v PositionTickInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetSamplingIntervalParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v PositionTickInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetSamplingIntervalParams) UnmarshalJSON(data []byte) error { +func (v *PositionTickInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetSamplingIntervalParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *PositionTickInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, out *EventConsoleProfileStarted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -787,6 +807,20 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, ou 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() } @@ -797,96 +831,65 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(out *jwriter.Writer, in EventConsoleProfileStarted) { out.RawByte('{') first := true _ = first + if in.ID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.String(string(in.ID)) + } + if in.Location != nil { + 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 DisableParams) MarshalJSON() ([]byte, error) { +func (v EventConsoleProfileStarted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, out *EventConsoleProfileFinished) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(in *jlexer.Lexer, out *EventConsoleProfileFinished) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -939,7 +942,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, in EventConsoleProfileFinished) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(out *jwriter.Writer, in EventConsoleProfileFinished) { out.RawByte('{') first := true _ = first @@ -989,27 +992,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventConsoleProfileFinished) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventConsoleProfileFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventConsoleProfileFinished) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventConsoleProfileFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, out *EventConsoleProfileStarted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1028,20 +1031,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, o 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() } @@ -1052,61 +1041,92 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(out *jwriter.Writer, in EventConsoleProfileStarted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first - if in.ID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"id\":") - out.String(string(in.ID)) - } - if in.Location != nil { - 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) { +func (v EnableParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(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{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventConsoleProfileStarted) MarshalEasyJSON(w *jwriter.Writer) { +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventConsoleProfileStarted) UnmarshalJSON(data []byte) error { +func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventConsoleProfileStarted) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler10(l, v) } diff --git a/cdp/rendering/easyjson.go b/cdp/rendering/easyjson.go index 47db58a..c7e368e 100644 --- a/cdp/rendering/easyjson.go +++ b/cdp/rendering/easyjson.go @@ -151,141 +151,7 @@ func (v *SetShowScrollBottleneckRectsParams) UnmarshalJSON(data []byte) error { func (v *SetShowScrollBottleneckRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(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('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering4(in *jlexer.Lexer, out *SetShowPaintRectsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(in *jlexer.Lexer, out *SetShowPaintRectsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -316,7 +182,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(out *jwriter.Writer, in SetShowPaintRectsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(out *jwriter.Writer, in SetShowPaintRectsParams) { out.RawByte('{') first := true _ = first @@ -332,23 +198,157 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetShowPaintRectsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetShowPaintRectsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetShowPaintRectsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetShowFPSCounterParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowFPSCounterParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowFPSCounterParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetShowFPSCounterParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(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('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetShowDebugBordersParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetShowDebugBordersParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRendering4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetShowDebugBordersParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetShowPaintRectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *SetShowDebugBordersParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRendering4(l, v) } diff --git a/cdp/runtime/easyjson.go b/cdp/runtime/easyjson.go index 41d92c0..4934e80 100644 --- a/cdp/runtime/easyjson.go +++ b/cdp/runtime/easyjson.go @@ -17,7 +17,241 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(in *jlexer.Lexer, out *RunScriptReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(in *jlexer.Lexer, out *StackTrace) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "description": + out.Description = string(in.String()) + 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 "parent": + if in.IsNull() { + in.Skip() + out.Parent = nil + } else { + if out.Parent == nil { + out.Parent = new(StackTrace) + } + (*out.Parent).UnmarshalEasyJSON(in) + } + case "promiseCreationFrame": + if in.IsNull() { + in.Skip() + out.PromiseCreationFrame = nil + } else { + if out.PromiseCreationFrame == nil { + out.PromiseCreationFrame = new(CallFrame) + } + (*out.PromiseCreationFrame).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(out *jwriter.Writer, in StackTrace) { + out.RawByte('{') + first := true + _ = first + if in.Description != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"description\":") + out.String(string(in.Description)) + } + 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.Parent != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"parent\":") + if in.Parent == nil { + out.RawString("null") + } else { + (*in.Parent).MarshalEasyJSON(out) + } + } + if in.PromiseCreationFrame != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"promiseCreationFrame\":") + if in.PromiseCreationFrame == nil { + out.RawString("null") + } else { + (*in.PromiseCreationFrame).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StackTrace) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StackTrace) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StackTrace) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StackTrace) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(in *jlexer.Lexer, out *SetCustomObjectFormatterEnabledParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(out *jwriter.Writer, in SetCustomObjectFormatterEnabledParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enabled\":") + out.Bool(bool(in.Enabled)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetCustomObjectFormatterEnabledParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCustomObjectFormatterEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCustomObjectFormatterEnabledParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(in *jlexer.Lexer, out *RunScriptReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -66,7 +300,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(out *jwriter.Writer, in RunScriptReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(out *jwriter.Writer, in RunScriptReturns) { out.RawByte('{') first := true _ = first @@ -100,27 +334,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v RunScriptReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RunScriptReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RunScriptReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RunScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(in *jlexer.Lexer, out *RunScriptParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(in *jlexer.Lexer, out *RunScriptParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -165,7 +399,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(out *jwriter.Writer, in RunScriptParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(out *jwriter.Writer, in RunScriptParams) { out.RawByte('{') first := true _ = first @@ -236,279 +470,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RunScriptParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RunScriptParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RunScriptParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RunScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(in *jlexer.Lexer, out *CompileScriptReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 = ScriptID(in.String()) - case "exceptionDetails": - if in.IsNull() { - in.Skip() - out.ExceptionDetails = nil - } else { - if out.ExceptionDetails == nil { - out.ExceptionDetails = new(ExceptionDetails) - } - (*out.ExceptionDetails).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(out *jwriter.Writer, in CompileScriptReturns) { - out.RawByte('{') - first := true - _ = first - if in.ScriptID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptId\":") - out.String(string(in.ScriptID)) - } - 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 CompileScriptReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CompileScriptReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CompileScriptReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CompileScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(in *jlexer.Lexer, out *CompileScriptParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "expression": - out.Expression = string(in.String()) - case "sourceURL": - out.SourceURL = string(in.String()) - case "persistScript": - out.PersistScript = bool(in.Bool()) - case "executionContextId": - out.ExecutionContextID = ExecutionContextID(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(out *jwriter.Writer, in CompileScriptParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"expression\":") - out.String(string(in.Expression)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"sourceURL\":") - out.String(string(in.SourceURL)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"persistScript\":") - out.Bool(bool(in.PersistScript)) - 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 CompileScriptParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CompileScriptParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v RunScriptParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CompileScriptParams) UnmarshalJSON(data []byte) error { +func (v *RunScriptParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CompileScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *RunScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out *SetCustomObjectFormatterEnabledParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, in SetCustomObjectFormatterEnabledParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enabled\":") - out.Bool(bool(in.Enabled)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetCustomObjectFormatterEnabledParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetCustomObjectFormatterEnabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetCustomObjectFormatterEnabledParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out *DiscardConsoleEntriesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(in *jlexer.Lexer, out *RunIfWaitingForDebuggerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -537,184 +520,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(out *jwriter.Writer, in DiscardConsoleEntriesParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DiscardConsoleEntriesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DiscardConsoleEntriesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DiscardConsoleEntriesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DiscardConsoleEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(in *jlexer.Lexer, out *RunIfWaitingForDebuggerParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, in RunIfWaitingForDebuggerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(out *jwriter.Writer, in RunIfWaitingForDebuggerParams) { out.RawByte('{') first := true _ = first @@ -724,1701 +530,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RunIfWaitingForDebuggerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RunIfWaitingForDebuggerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RunIfWaitingForDebuggerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RunIfWaitingForDebuggerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(in *jlexer.Lexer, out *ReleaseObjectGroupParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectGroup": - out.ObjectGroup = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(out *jwriter.Writer, in ReleaseObjectGroupParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectGroup\":") - out.String(string(in.ObjectGroup)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReleaseObjectGroupParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReleaseObjectGroupParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReleaseObjectGroupParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReleaseObjectGroupParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(in *jlexer.Lexer, out *ReleaseObjectParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectId": - out.ObjectID = RemoteObjectID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(out *jwriter.Writer, in ReleaseObjectParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReleaseObjectParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReleaseObjectParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReleaseObjectParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReleaseObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(in *jlexer.Lexer, out *GetPropertiesReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 !in.IsDelim(']') { - out.Result = make([]*PropertyDescriptor, 0, 8) - } else { - out.Result = []*PropertyDescriptor{} - } - for !in.IsDelim(']') { - var v1 *PropertyDescriptor - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PropertyDescriptor) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Result = append(out.Result, v1) - in.WantComma() - } - in.Delim(']') - } - case "internalProperties": - if in.IsNull() { - in.Skip() - out.InternalProperties = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.InternalProperties = make([]*InternalPropertyDescriptor, 0, 8) - } else { - out.InternalProperties = []*InternalPropertyDescriptor{} - } - for !in.IsDelim(']') { - var v2 *InternalPropertyDescriptor - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(InternalPropertyDescriptor) - } - (*v2).UnmarshalEasyJSON(in) - } - out.InternalProperties = append(out.InternalProperties, v2) - in.WantComma() - } - in.Delim(']') - } - case "exceptionDetails": - if in.IsNull() { - in.Skip() - out.ExceptionDetails = nil - } else { - if out.ExceptionDetails == nil { - out.ExceptionDetails = new(ExceptionDetails) - } - (*out.ExceptionDetails).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(out *jwriter.Writer, in GetPropertiesReturns) { - 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 v3, v4 := range in.Result { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - (*v4).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.InternalProperties) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"internalProperties\":") - if in.InternalProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.InternalProperties { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - 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 GetPropertiesReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPropertiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPropertiesReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPropertiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(in *jlexer.Lexer, out *GetPropertiesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectId": - out.ObjectID = RemoteObjectID(in.String()) - case "ownProperties": - out.OwnProperties = bool(in.Bool()) - case "accessorPropertiesOnly": - out.AccessorPropertiesOnly = bool(in.Bool()) - case "generatePreview": - out.GeneratePreview = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(out *jwriter.Writer, in GetPropertiesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - if in.OwnProperties { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"ownProperties\":") - out.Bool(bool(in.OwnProperties)) - } - if in.AccessorPropertiesOnly { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"accessorPropertiesOnly\":") - out.Bool(bool(in.AccessorPropertiesOnly)) - } - if in.GeneratePreview { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"generatePreview\":") - out.Bool(bool(in.GeneratePreview)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetPropertiesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetPropertiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetPropertiesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(in *jlexer.Lexer, out *CallFunctionOnReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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(RemoteObject) - } - (*out.Result).UnmarshalEasyJSON(in) - } - case "exceptionDetails": - if in.IsNull() { - in.Skip() - out.ExceptionDetails = nil - } else { - if out.ExceptionDetails == nil { - out.ExceptionDetails = new(ExceptionDetails) - } - (*out.ExceptionDetails).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(out *jwriter.Writer, in CallFunctionOnReturns) { - 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 CallFunctionOnReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CallFunctionOnReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CallFunctionOnReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CallFunctionOnReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(in *jlexer.Lexer, out *CallFunctionOnParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "objectId": - out.ObjectID = RemoteObjectID(in.String()) - case "functionDeclaration": - out.FunctionDeclaration = string(in.String()) - case "arguments": - if in.IsNull() { - in.Skip() - out.Arguments = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Arguments = make([]*CallArgument, 0, 8) - } else { - out.Arguments = []*CallArgument{} - } - for !in.IsDelim(']') { - var v7 *CallArgument - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(CallArgument) - } - (*v7).UnmarshalEasyJSON(in) - } - out.Arguments = append(out.Arguments, v7) - in.WantComma() - } - in.Delim(']') - } - case "silent": - out.Silent = bool(in.Bool()) - case "returnByValue": - out.ReturnByValue = bool(in.Bool()) - case "generatePreview": - out.GeneratePreview = bool(in.Bool()) - case "userGesture": - out.UserGesture = bool(in.Bool()) - case "awaitPromise": - out.AwaitPromise = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(out *jwriter.Writer, in CallFunctionOnParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"functionDeclaration\":") - out.String(string(in.FunctionDeclaration)) - if len(in.Arguments) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"arguments\":") - if in.Arguments == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Arguments { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - 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.UserGesture { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"userGesture\":") - out.Bool(bool(in.UserGesture)) - } - if in.AwaitPromise { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"awaitPromise\":") - out.Bool(bool(in.AwaitPromise)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CallFunctionOnParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CallFunctionOnParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CallFunctionOnParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CallFunctionOnParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, out *AwaitPromiseReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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(RemoteObject) - } - (*out.Result).UnmarshalEasyJSON(in) - } - case "exceptionDetails": - if in.IsNull() { - in.Skip() - out.ExceptionDetails = nil - } else { - if out.ExceptionDetails == nil { - out.ExceptionDetails = new(ExceptionDetails) - } - (*out.ExceptionDetails).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, in AwaitPromiseReturns) { - 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 AwaitPromiseReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AwaitPromiseReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AwaitPromiseReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AwaitPromiseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(in *jlexer.Lexer, out *AwaitPromiseParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "promiseObjectId": - out.PromiseObjectID = RemoteObjectID(in.String()) - case "returnByValue": - out.ReturnByValue = bool(in.Bool()) - case "generatePreview": - out.GeneratePreview = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(out *jwriter.Writer, in AwaitPromiseParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"promiseObjectId\":") - out.String(string(in.PromiseObjectID)) - 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)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AwaitPromiseParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AwaitPromiseParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AwaitPromiseParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AwaitPromiseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, out *EvaluateReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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(RemoteObject) - } - (*out.Result).UnmarshalEasyJSON(in) - } - case "exceptionDetails": - if in.IsNull() { - in.Skip() - out.ExceptionDetails = nil - } else { - if out.ExceptionDetails == nil { - out.ExceptionDetails = new(ExceptionDetails) - } - (*out.ExceptionDetails).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, in EvaluateReturns) { - 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 EvaluateReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EvaluateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EvaluateReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EvaluateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(in *jlexer.Lexer, out *EvaluateParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - 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 "contextId": - out.ContextID = ExecutionContextID(in.Int64()) - case "returnByValue": - out.ReturnByValue = bool(in.Bool()) - case "generatePreview": - out.GeneratePreview = bool(in.Bool()) - case "userGesture": - out.UserGesture = bool(in.Bool()) - case "awaitPromise": - out.AwaitPromise = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(out *jwriter.Writer, in EvaluateParams) { - out.RawByte('{') - first := true - _ = first - 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.ContextID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"contextId\":") - out.Int64(int64(in.ContextID)) - } - 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.UserGesture { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"userGesture\":") - out.Bool(bool(in.UserGesture)) - } - if in.AwaitPromise { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"awaitPromise\":") - out.Bool(bool(in.AwaitPromise)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EvaluateParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EvaluateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EvaluateParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EvaluateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(in *jlexer.Lexer, out *StackTrace) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "description": - out.Description = string(in.String()) - case "callFrames": - if in.IsNull() { - in.Skip() - out.CallFrames = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.CallFrames = make([]*CallFrame, 0, 8) - } else { - out.CallFrames = []*CallFrame{} - } - for !in.IsDelim(']') { - var v10 *CallFrame - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(CallFrame) - } - (*v10).UnmarshalEasyJSON(in) - } - out.CallFrames = append(out.CallFrames, v10) - in.WantComma() - } - in.Delim(']') - } - case "parent": - if in.IsNull() { - in.Skip() - out.Parent = nil - } else { - if out.Parent == nil { - out.Parent = new(StackTrace) - } - (*out.Parent).UnmarshalEasyJSON(in) - } - case "promiseCreationFrame": - if in.IsNull() { - in.Skip() - out.PromiseCreationFrame = nil - } else { - if out.PromiseCreationFrame == nil { - out.PromiseCreationFrame = new(CallFrame) - } - (*out.PromiseCreationFrame).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(out *jwriter.Writer, in StackTrace) { - out.RawByte('{') - first := true - _ = first - if in.Description != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"description\":") - out.String(string(in.Description)) - } - 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 v11, v12 := range in.CallFrames { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - (*v12).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Parent != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"parent\":") - if in.Parent == nil { - out.RawString("null") - } else { - (*in.Parent).MarshalEasyJSON(out) - } - } - if in.PromiseCreationFrame != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"promiseCreationFrame\":") - if in.PromiseCreationFrame == nil { - out.RawString("null") - } else { - (*in.PromiseCreationFrame).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StackTrace) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StackTrace) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StackTrace) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StackTrace) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(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 "functionName": - out.FunctionName = string(in.String()) - case "scriptId": - out.ScriptID = ScriptID(in.String()) - case "url": - out.URL = string(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(out *jwriter.Writer, in CallFrame) { - out.RawByte('{') - first := true - _ = first - if in.FunctionName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"functionName\":") - out.String(string(in.FunctionName)) - } - if in.ScriptID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptId\":") - out.String(string(in.ScriptID)) - } - 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.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 CallFrame) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CallFrame) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(in *jlexer.Lexer, out *ExceptionDetails) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exceptionId": - out.ExceptionID = int64(in.Int64()) - case "text": - out.Text = string(in.String()) - case "lineNumber": - out.LineNumber = int64(in.Int64()) - case "columnNumber": - out.ColumnNumber = int64(in.Int64()) - case "scriptId": - out.ScriptID = ScriptID(in.String()) - case "url": - out.URL = string(in.String()) - case "stackTrace": - if in.IsNull() { - in.Skip() - out.StackTrace = nil - } else { - if out.StackTrace == nil { - out.StackTrace = new(StackTrace) - } - (*out.StackTrace).UnmarshalEasyJSON(in) - } - case "exception": - if in.IsNull() { - in.Skip() - out.Exception = nil - } else { - if out.Exception == nil { - out.Exception = new(RemoteObject) - } - (*out.Exception).UnmarshalEasyJSON(in) - } - case "executionContextId": - out.ExecutionContextID = ExecutionContextID(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(out *jwriter.Writer, in ExceptionDetails) { - out.RawByte('{') - first := true - _ = first - if in.ExceptionID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"exceptionId\":") - out.Int64(int64(in.ExceptionID)) - } - if in.Text != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"text\":") - out.String(string(in.Text)) - } - if in.LineNumber != 0 { - 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.ScriptID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scriptId\":") - out.String(string(in.ScriptID)) - } - if in.URL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - } - 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.Exception != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"exception\":") - if in.Exception == nil { - out.RawString("null") - } else { - (*in.Exception).MarshalEasyJSON(out) - } - } - 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 ExceptionDetails) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ExceptionDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ExceptionDetails) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ExceptionDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(in *jlexer.Lexer, out *ExecutionContextDescription) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 = ExecutionContextID(in.Int64()) - case "origin": - out.Origin = string(in.String()) - case "name": - out.Name = string(in.String()) - case "auxData": - (out.AuxData).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(out *jwriter.Writer, in ExecutionContextDescription) { - out.RawByte('{') - first := true - _ = first - if in.ID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"id\":") - out.Int64(int64(in.ID)) - } - if in.Origin != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"origin\":") - out.String(string(in.Origin)) - } - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if (in.AuxData).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"auxData\":") - (in.AuxData).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ExecutionContextDescription) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ExecutionContextDescription) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ExecutionContextDescription) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ExecutionContextDescription) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, out *CallArgument) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(in *jlexer.Lexer, out *RemoteObject) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2437,12 +569,40 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, ou continue } switch key { + case "type": + (out.Type).UnmarshalEasyJSON(in) + case "subtype": + (out.Subtype).UnmarshalEasyJSON(in) + case "className": + out.ClassName = string(in.String()) case "value": (out.Value).UnmarshalEasyJSON(in) case "unserializableValue": (out.UnserializableValue).UnmarshalEasyJSON(in) + case "description": + out.Description = string(in.String()) case "objectId": out.ObjectID = RemoteObjectID(in.String()) + case "preview": + if in.IsNull() { + in.Skip() + out.Preview = nil + } else { + if out.Preview == nil { + out.Preview = new(ObjectPreview) + } + (*out.Preview).UnmarshalEasyJSON(in) + } + case "customPreview": + if in.IsNull() { + in.Skip() + out.CustomPreview = nil + } else { + if out.CustomPreview == nil { + out.CustomPreview = new(CustomPreview) + } + (*out.CustomPreview).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -2453,10 +613,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, in CallArgument) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(out *jwriter.Writer, in RemoteObject) { out.RawByte('{') first := true _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.Subtype != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"subtype\":") + (in.Subtype).MarshalEasyJSON(out) + } + if in.ClassName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"className\":") + out.String(string(in.ClassName)) + } if (in.Value).IsDefined() { if !first { out.RawByte(',') @@ -2473,6 +657,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, out.RawString("\"unserializableValue\":") (in.UnserializableValue).MarshalEasyJSON(out) } + if in.Description != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"description\":") + out.String(string(in.Description)) + } if in.ObjectID != "" { if !first { out.RawByte(',') @@ -2481,33 +673,191 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, out.RawString("\"objectId\":") out.String(string(in.ObjectID)) } + if in.Preview != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"preview\":") + if in.Preview == nil { + out.RawString("null") + } else { + (*in.Preview).MarshalEasyJSON(out) + } + } + if in.CustomPreview != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"customPreview\":") + if in.CustomPreview == nil { + out.RawString("null") + } else { + (*in.CustomPreview).MarshalEasyJSON(out) + } + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v CallArgument) MarshalJSON() ([]byte, error) { +func (v RemoteObject) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CallArgument) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(w, v) +func (v RemoteObject) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CallArgument) UnmarshalJSON(data []byte) error { +func (v *RemoteObject) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CallArgument) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(l, v) +func (v *RemoteObject) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, out *InternalPropertyDescriptor) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(in *jlexer.Lexer, out *ReleaseObjectParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectId": + out.ObjectID = RemoteObjectID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(out *jwriter.Writer, in ReleaseObjectParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ReleaseObjectParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReleaseObjectParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReleaseObjectParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReleaseObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(in *jlexer.Lexer, out *ReleaseObjectGroupParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectGroup": + out.ObjectGroup = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(out *jwriter.Writer, in ReleaseObjectGroupParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectGroup\":") + out.String(string(in.ObjectGroup)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ReleaseObjectGroupParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ReleaseObjectGroupParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ReleaseObjectGroupParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ReleaseObjectGroupParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime7(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(in *jlexer.Lexer, out *PropertyPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2528,16 +878,22 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, ou switch key { case "name": out.Name = string(in.String()) + case "type": + (out.Type).UnmarshalEasyJSON(in) case "value": + out.Value = string(in.String()) + case "valuePreview": if in.IsNull() { in.Skip() - out.Value = nil + out.ValuePreview = nil } else { - if out.Value == nil { - out.Value = new(RemoteObject) + if out.ValuePreview == nil { + out.ValuePreview = new(ObjectPreview) } - (*out.Value).UnmarshalEasyJSON(in) + (*out.ValuePreview).UnmarshalEasyJSON(in) } + case "subtype": + (out.Subtype).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -2548,7 +904,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, in InternalPropertyDescriptor) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(out *jwriter.Writer, in PropertyPreview) { out.RawByte('{') first := true _ = first @@ -2560,45 +916,69 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, out.RawString("\"name\":") out.String(string(in.Name)) } - if in.Value != nil { + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.Value != "" { if !first { out.RawByte(',') } first = false out.RawString("\"value\":") - if in.Value == nil { + out.String(string(in.Value)) + } + if in.ValuePreview != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"valuePreview\":") + if in.ValuePreview == nil { out.RawString("null") } else { - (*in.Value).MarshalEasyJSON(out) + (*in.ValuePreview).MarshalEasyJSON(out) } } + if in.Subtype != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"subtype\":") + (in.Subtype).MarshalEasyJSON(out) + } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v InternalPropertyDescriptor) MarshalJSON() ([]byte, error) { +func (v PropertyPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v InternalPropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(w, v) +func (v PropertyPreview) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *InternalPropertyDescriptor) UnmarshalJSON(data []byte) error { +func (v *PropertyPreview) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *InternalPropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(l, v) +func (v *PropertyPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, out *PropertyDescriptor) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(in *jlexer.Lexer, out *PropertyDescriptor) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2679,7 +1059,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, in PropertyDescriptor) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(out *jwriter.Writer, in PropertyDescriptor) { out.RawByte('{') first := true _ = first @@ -2785,27 +1165,1768 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v PropertyDescriptor) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PropertyDescriptor) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(in *jlexer.Lexer, out *EntryPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(in *jlexer.Lexer, out *ObjectPreview) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "subtype": + (out.Subtype).UnmarshalEasyJSON(in) + case "description": + out.Description = string(in.String()) + case "overflow": + out.Overflow = bool(in.Bool()) + case "properties": + if in.IsNull() { + in.Skip() + out.Properties = nil + } else { + in.Delim('[') + if out.Properties == nil { + if !in.IsDelim(']') { + out.Properties = make([]*PropertyPreview, 0, 8) + } else { + out.Properties = []*PropertyPreview{} + } + } else { + out.Properties = (out.Properties)[:0] + } + for !in.IsDelim(']') { + var v4 *PropertyPreview + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(PropertyPreview) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Properties = append(out.Properties, v4) + in.WantComma() + } + in.Delim(']') + } + case "entries": + if in.IsNull() { + in.Skip() + out.Entries = nil + } else { + in.Delim('[') + if out.Entries == nil { + if !in.IsDelim(']') { + out.Entries = make([]*EntryPreview, 0, 8) + } else { + out.Entries = []*EntryPreview{} + } + } else { + out.Entries = (out.Entries)[:0] + } + for !in.IsDelim(']') { + var v5 *EntryPreview + if in.IsNull() { + in.Skip() + v5 = nil + } else { + if v5 == nil { + v5 = new(EntryPreview) + } + (*v5).UnmarshalEasyJSON(in) + } + out.Entries = append(out.Entries, v5) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(out *jwriter.Writer, in ObjectPreview) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if in.Subtype != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"subtype\":") + (in.Subtype).MarshalEasyJSON(out) + } + if in.Description != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"description\":") + out.String(string(in.Description)) + } + if in.Overflow { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"overflow\":") + out.Bool(bool(in.Overflow)) + } + if len(in.Properties) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"properties\":") + if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.Properties { + if v6 > 0 { + out.RawByte(',') + } + if v7 == nil { + out.RawString("null") + } else { + (*v7).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + 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 v8, v9 := range in.Entries { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ObjectPreview) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ObjectPreview) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ObjectPreview) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ObjectPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(in *jlexer.Lexer, out *InternalPropertyDescriptor) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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": + if in.IsNull() { + in.Skip() + out.Value = nil + } else { + if out.Value == nil { + out.Value = new(RemoteObject) + } + (*out.Value).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(out *jwriter.Writer, in InternalPropertyDescriptor) { + out.RawByte('{') + first := true + _ = first + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if in.Value != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + if in.Value == nil { + out.RawString("null") + } else { + (*in.Value).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v InternalPropertyDescriptor) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v InternalPropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime11(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *InternalPropertyDescriptor) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *InternalPropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime11(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(in *jlexer.Lexer, out *GetPropertiesReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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([]*PropertyDescriptor, 0, 8) + } else { + out.Result = []*PropertyDescriptor{} + } + } else { + out.Result = (out.Result)[:0] + } + for !in.IsDelim(']') { + var v10 *PropertyDescriptor + if in.IsNull() { + in.Skip() + v10 = nil + } else { + if v10 == nil { + v10 = new(PropertyDescriptor) + } + (*v10).UnmarshalEasyJSON(in) + } + out.Result = append(out.Result, v10) + in.WantComma() + } + in.Delim(']') + } + case "internalProperties": + if in.IsNull() { + in.Skip() + out.InternalProperties = nil + } else { + in.Delim('[') + if out.InternalProperties == nil { + if !in.IsDelim(']') { + out.InternalProperties = make([]*InternalPropertyDescriptor, 0, 8) + } else { + out.InternalProperties = []*InternalPropertyDescriptor{} + } + } else { + out.InternalProperties = (out.InternalProperties)[:0] + } + for !in.IsDelim(']') { + var v11 *InternalPropertyDescriptor + if in.IsNull() { + in.Skip() + v11 = nil + } else { + if v11 == nil { + v11 = new(InternalPropertyDescriptor) + } + (*v11).UnmarshalEasyJSON(in) + } + out.InternalProperties = append(out.InternalProperties, v11) + in.WantComma() + } + in.Delim(']') + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(out *jwriter.Writer, in GetPropertiesReturns) { + 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 v12, v13 := range in.Result { + if v12 > 0 { + out.RawByte(',') + } + if v13 == nil { + out.RawString("null") + } else { + (*v13).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if len(in.InternalProperties) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"internalProperties\":") + if in.InternalProperties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.InternalProperties { + if v14 > 0 { + out.RawByte(',') + } + if v15 == nil { + out.RawString("null") + } else { + (*v15).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + 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 GetPropertiesReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPropertiesReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime12(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPropertiesReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPropertiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime12(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(in *jlexer.Lexer, out *GetPropertiesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectId": + out.ObjectID = RemoteObjectID(in.String()) + case "ownProperties": + out.OwnProperties = bool(in.Bool()) + case "accessorPropertiesOnly": + out.AccessorPropertiesOnly = bool(in.Bool()) + case "generatePreview": + out.GeneratePreview = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(out *jwriter.Writer, in GetPropertiesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + if in.OwnProperties { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"ownProperties\":") + out.Bool(bool(in.OwnProperties)) + } + if in.AccessorPropertiesOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"accessorPropertiesOnly\":") + out.Bool(bool(in.AccessorPropertiesOnly)) + } + if in.GeneratePreview { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"generatePreview\":") + out.Bool(bool(in.GeneratePreview)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetPropertiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetPropertiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime13(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetPropertiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime13(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(in *jlexer.Lexer, out *ExecutionContextDescription) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 = ExecutionContextID(in.Int64()) + case "origin": + out.Origin = string(in.String()) + case "name": + out.Name = string(in.String()) + case "auxData": + (out.AuxData).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(out *jwriter.Writer, in ExecutionContextDescription) { + out.RawByte('{') + first := true + _ = first + if in.ID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"id\":") + out.Int64(int64(in.ID)) + } + if in.Origin != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + } + if in.Name != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + } + if (in.AuxData).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"auxData\":") + (in.AuxData).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ExecutionContextDescription) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ExecutionContextDescription) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime14(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ExecutionContextDescription) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ExecutionContextDescription) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime14(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(in *jlexer.Lexer, out *ExceptionDetails) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "exceptionId": + out.ExceptionID = int64(in.Int64()) + case "text": + out.Text = string(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) + case "scriptId": + out.ScriptID = ScriptID(in.String()) + case "url": + out.URL = string(in.String()) + case "stackTrace": + if in.IsNull() { + in.Skip() + out.StackTrace = nil + } else { + if out.StackTrace == nil { + out.StackTrace = new(StackTrace) + } + (*out.StackTrace).UnmarshalEasyJSON(in) + } + case "exception": + if in.IsNull() { + in.Skip() + out.Exception = nil + } else { + if out.Exception == nil { + out.Exception = new(RemoteObject) + } + (*out.Exception).UnmarshalEasyJSON(in) + } + case "executionContextId": + out.ExecutionContextID = ExecutionContextID(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(out *jwriter.Writer, in ExceptionDetails) { + out.RawByte('{') + first := true + _ = first + if in.ExceptionID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"exceptionId\":") + out.Int64(int64(in.ExceptionID)) + } + if in.Text != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"text\":") + out.String(string(in.Text)) + } + if in.LineNumber != 0 { + 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.ScriptID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + } + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + 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.Exception != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"exception\":") + if in.Exception == nil { + out.RawString("null") + } else { + (*in.Exception).MarshalEasyJSON(out) + } + } + 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 ExceptionDetails) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v ExceptionDetails) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime15(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *ExceptionDetails) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *ExceptionDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime15(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(in *jlexer.Lexer, out *EventInspectRequested) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "object": + if in.IsNull() { + in.Skip() + out.Object = nil + } else { + if out.Object == nil { + out.Object = new(RemoteObject) + } + (*out.Object).UnmarshalEasyJSON(in) + } + case "hints": + (out.Hints).UnmarshalEasyJSON(in) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(out *jwriter.Writer, in EventInspectRequested) { + out.RawByte('{') + first := true + _ = first + if in.Object != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"object\":") + if in.Object == nil { + out.RawString("null") + } else { + (*in.Object).MarshalEasyJSON(out) + } + } + if (in.Hints).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hints\":") + (in.Hints).MarshalEasyJSON(out) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventInspectRequested) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventInspectRequested) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventInspectRequested) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventInspectRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(in *jlexer.Lexer, out *EventExecutionContextsCleared) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(out *jwriter.Writer, in EventExecutionContextsCleared) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventExecutionContextsCleared) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventExecutionContextsCleared) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventExecutionContextsCleared) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventExecutionContextsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(in *jlexer.Lexer, out *EventExecutionContextDestroyed) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 = ExecutionContextID(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(out *jwriter.Writer, in EventExecutionContextDestroyed) { + 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 EventExecutionContextDestroyed) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventExecutionContextDestroyed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime18(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventExecutionContextDestroyed) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventExecutionContextDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime18(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(in *jlexer.Lexer, out *EventExecutionContextCreated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "context": + if in.IsNull() { + in.Skip() + out.Context = nil + } else { + if out.Context == nil { + out.Context = new(ExecutionContextDescription) + } + (*out.Context).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(out *jwriter.Writer, in EventExecutionContextCreated) { + out.RawByte('{') + first := true + _ = first + if in.Context != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"context\":") + if in.Context == nil { + out.RawString("null") + } else { + (*in.Context).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventExecutionContextCreated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventExecutionContextCreated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventExecutionContextCreated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventExecutionContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(in *jlexer.Lexer, out *EventExceptionThrown) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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": + (out.Timestamp).UnmarshalEasyJSON(in) + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(out *jwriter.Writer, in EventExceptionThrown) { + out.RawByte('{') + first := true + _ = first + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).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 EventExceptionThrown) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventExceptionThrown) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventExceptionThrown) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventExceptionThrown) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(in *jlexer.Lexer, out *EventExceptionRevoked) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "reason": + out.Reason = string(in.String()) + case "exceptionId": + out.ExceptionID = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(out *jwriter.Writer, in EventExceptionRevoked) { + out.RawByte('{') + first := true + _ = first + if in.Reason != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"reason\":") + out.String(string(in.Reason)) + } + if in.ExceptionID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"exceptionId\":") + out.Int64(int64(in.ExceptionID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventExceptionRevoked) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventExceptionRevoked) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventExceptionRevoked) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventExceptionRevoked) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(in *jlexer.Lexer, out *EventConsoleAPICalled) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "args": + if in.IsNull() { + in.Skip() + out.Args = nil + } else { + in.Delim('[') + if out.Args == nil { + if !in.IsDelim(']') { + out.Args = make([]*RemoteObject, 0, 8) + } else { + out.Args = []*RemoteObject{} + } + } else { + out.Args = (out.Args)[:0] + } + for !in.IsDelim(']') { + var v16 *RemoteObject + if in.IsNull() { + in.Skip() + v16 = nil + } else { + if v16 == nil { + v16 = new(RemoteObject) + } + (*v16).UnmarshalEasyJSON(in) + } + out.Args = append(out.Args, v16) + in.WantComma() + } + in.Delim(']') + } + case "executionContextId": + out.ExecutionContextID = ExecutionContextID(in.Int64()) + case "timestamp": + (out.Timestamp).UnmarshalEasyJSON(in) + case "stackTrace": + if in.IsNull() { + in.Skip() + out.StackTrace = nil + } else { + if out.StackTrace == nil { + out.StackTrace = new(StackTrace) + } + (*out.StackTrace).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(out *jwriter.Writer, in EventConsoleAPICalled) { + out.RawByte('{') + first := true + _ = first + if in.Type != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"type\":") + (in.Type).MarshalEasyJSON(out) + } + if len(in.Args) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"args\":") + if in.Args == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v17, v18 := range in.Args { + if v17 > 0 { + out.RawByte(',') + } + if v18 == nil { + out.RawString("null") + } else { + (*v18).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + if in.ExecutionContextID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"executionContextId\":") + out.Int64(int64(in.ExecutionContextID)) + } + if true { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"timestamp\":") + (in.Timestamp).MarshalEasyJSON(out) + } + 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 EventConsoleAPICalled) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventConsoleAPICalled) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventConsoleAPICalled) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventConsoleAPICalled) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(in *jlexer.Lexer, out *EvaluateReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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(RemoteObject) + } + (*out.Result).UnmarshalEasyJSON(in) + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(out *jwriter.Writer, in EvaluateReturns) { + 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 EvaluateReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EvaluateReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EvaluateReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EvaluateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(in *jlexer.Lexer, out *EvaluateParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + 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 "contextId": + out.ContextID = ExecutionContextID(in.Int64()) + case "returnByValue": + out.ReturnByValue = bool(in.Bool()) + case "generatePreview": + out.GeneratePreview = bool(in.Bool()) + case "userGesture": + out.UserGesture = bool(in.Bool()) + case "awaitPromise": + out.AwaitPromise = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(out *jwriter.Writer, in EvaluateParams) { + out.RawByte('{') + first := true + _ = first + 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.ContextID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"contextId\":") + out.Int64(int64(in.ContextID)) + } + 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.UserGesture { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"userGesture\":") + out.Bool(bool(in.UserGesture)) + } + if in.AwaitPromise { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"awaitPromise\":") + out.Bool(bool(in.AwaitPromise)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EvaluateParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EvaluateParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EvaluateParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EvaluateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(in *jlexer.Lexer, out *EntryPreview) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2854,7 +2975,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(out *jwriter.Writer, in EntryPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(out *jwriter.Writer, in EntryPreview) { out.RawByte('{') first := true _ = first @@ -2888,27 +3009,86 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EntryPreview) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EntryPreview) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EntryPreview) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EntryPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EntryPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime26(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, out *PropertyPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, out *DiscardConsoleEntriesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2927,24 +3107,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, ou continue } switch key { - case "name": - out.Name = string(in.String()) - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "value": - out.Value = string(in.String()) - case "valuePreview": - if in.IsNull() { - in.Skip() - out.ValuePreview = nil - } else { - if out.ValuePreview == nil { - out.ValuePreview = new(ObjectPreview) - } - (*out.ValuePreview).UnmarshalEasyJSON(in) - } - case "subtype": - (out.Subtype).UnmarshalEasyJSON(in) default: in.SkipRecursive() } @@ -2955,81 +3117,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(out *jwriter.Writer, in PropertyPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(out *jwriter.Writer, in DiscardConsoleEntriesParams) { out.RawByte('{') first := true _ = first - if in.Name != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"name\":") - out.String(string(in.Name)) - } - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.Value != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.String(string(in.Value)) - } - if in.ValuePreview != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"valuePreview\":") - if in.ValuePreview == nil { - out.RawString("null") - } else { - (*in.ValuePreview).MarshalEasyJSON(out) - } - } - if in.Subtype != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"subtype\":") - (in.Subtype).MarshalEasyJSON(out) - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v PropertyPreview) MarshalJSON() ([]byte, error) { +func (v DiscardConsoleEntriesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v PropertyPreview) MarshalEasyJSON(w *jwriter.Writer) { +func (v DiscardConsoleEntriesParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *PropertyPreview) UnmarshalJSON(data []byte) error { +func (v *DiscardConsoleEntriesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PropertyPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DiscardConsoleEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime27(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, out *ObjectPreview) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3048,68 +3166,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, ou continue } switch key { - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "subtype": - (out.Subtype).UnmarshalEasyJSON(in) - case "description": - out.Description = string(in.String()) - case "overflow": - out.Overflow = bool(in.Bool()) - case "properties": - if in.IsNull() { - in.Skip() - out.Properties = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Properties = make([]*PropertyPreview, 0, 8) - } else { - out.Properties = []*PropertyPreview{} - } - for !in.IsDelim(']') { - var v13 *PropertyPreview - if in.IsNull() { - in.Skip() - v13 = nil - } else { - if v13 == nil { - v13 = new(PropertyPreview) - } - (*v13).UnmarshalEasyJSON(in) - } - out.Properties = append(out.Properties, v13) - in.WantComma() - } - in.Delim(']') - } - case "entries": - if in.IsNull() { - in.Skip() - out.Entries = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Entries = make([]*EntryPreview, 0, 8) - } else { - out.Entries = []*EntryPreview{} - } - for !in.IsDelim(']') { - var v14 *EntryPreview - if in.IsNull() { - in.Skip() - v14 = nil - } else { - if v14 == nil { - v14 = new(EntryPreview) - } - (*v14).UnmarshalEasyJSON(in) - } - out.Entries = append(out.Entries, v14) - in.WantComma() - } - in.Delim(']') - } default: in.SkipRecursive() } @@ -3120,112 +3176,34 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(out *jwriter.Writer, in ObjectPreview) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.Subtype != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"subtype\":") - (in.Subtype).MarshalEasyJSON(out) - } - if in.Description != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"description\":") - out.String(string(in.Description)) - } - if in.Overflow { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"overflow\":") - out.Bool(bool(in.Overflow)) - } - if len(in.Properties) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"properties\":") - if in.Properties == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v15, v16 := range in.Properties { - if v15 > 0 { - out.RawByte(',') - } - if v16 == nil { - out.RawString("null") - } else { - (*v16).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - 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 v17, v18 := range in.Entries { - if v17 > 0 { - out.RawByte(',') - } - if v18 == nil { - out.RawString("null") - } else { - (*v18).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v ObjectPreview) MarshalJSON() ([]byte, error) { +func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v ObjectPreview) MarshalEasyJSON(w *jwriter.Writer) { +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *ObjectPreview) UnmarshalJSON(data []byte) error { +func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ObjectPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime28(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(in *jlexer.Lexer, out *CustomPreview) { @@ -3337,7 +3315,7 @@ func (v *CustomPreview) UnmarshalJSON(data []byte) error { func (v *CustomPreview) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime29(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, out *RemoteObject) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, out *CompileScriptReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3356,512 +3334,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(in *jlexer.Lexer, ou continue } switch key { - case "type": - (out.Type).UnmarshalEasyJSON(in) - case "subtype": - (out.Subtype).UnmarshalEasyJSON(in) - case "className": - out.ClassName = string(in.String()) - case "value": - (out.Value).UnmarshalEasyJSON(in) - case "unserializableValue": - (out.UnserializableValue).UnmarshalEasyJSON(in) - case "description": - out.Description = string(in.String()) - case "objectId": - out.ObjectID = RemoteObjectID(in.String()) - case "preview": - if in.IsNull() { - in.Skip() - out.Preview = nil - } else { - if out.Preview == nil { - out.Preview = new(ObjectPreview) - } - (*out.Preview).UnmarshalEasyJSON(in) - } - case "customPreview": - if in.IsNull() { - in.Skip() - out.CustomPreview = nil - } else { - if out.CustomPreview == nil { - out.CustomPreview = new(CustomPreview) - } - (*out.CustomPreview).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, in RemoteObject) { - out.RawByte('{') - first := true - _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if in.Subtype != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"subtype\":") - (in.Subtype).MarshalEasyJSON(out) - } - if in.ClassName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"className\":") - out.String(string(in.ClassName)) - } - if (in.Value).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - (in.Value).MarshalEasyJSON(out) - } - if in.UnserializableValue != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"unserializableValue\":") - (in.UnserializableValue).MarshalEasyJSON(out) - } - if in.Description != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"description\":") - out.String(string(in.Description)) - } - if in.ObjectID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"objectId\":") - out.String(string(in.ObjectID)) - } - if in.Preview != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"preview\":") - if in.Preview == nil { - out.RawString("null") - } else { - (*in.Preview).MarshalEasyJSON(out) - } - } - if in.CustomPreview != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"customPreview\":") - if in.CustomPreview == nil { - out.RawString("null") - } else { - (*in.CustomPreview).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RemoteObject) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RemoteObject) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RemoteObject) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RemoteObject) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(in *jlexer.Lexer, out *EventInspectRequested) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "object": - if in.IsNull() { - in.Skip() - out.Object = nil - } else { - if out.Object == nil { - out.Object = new(RemoteObject) - } - (*out.Object).UnmarshalEasyJSON(in) - } - case "hints": - (out.Hints).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(out *jwriter.Writer, in EventInspectRequested) { - out.RawByte('{') - first := true - _ = first - if in.Object != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"object\":") - if in.Object == nil { - out.RawString("null") - } else { - (*in.Object).MarshalEasyJSON(out) - } - } - if (in.Hints).IsDefined() { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"hints\":") - (in.Hints).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventInspectRequested) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventInspectRequested) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventInspectRequested) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventInspectRequested) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(in *jlexer.Lexer, out *EventConsoleAPICalled) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "args": - if in.IsNull() { - in.Skip() - out.Args = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Args = make([]*RemoteObject, 0, 8) - } else { - out.Args = []*RemoteObject{} - } - for !in.IsDelim(']') { - var v19 *RemoteObject - if in.IsNull() { - in.Skip() - v19 = nil - } else { - if v19 == nil { - v19 = new(RemoteObject) - } - (*v19).UnmarshalEasyJSON(in) - } - out.Args = append(out.Args, v19) - in.WantComma() - } - in.Delim(']') - } - case "executionContextId": - out.ExecutionContextID = ExecutionContextID(in.Int64()) - case "timestamp": - (out.Timestamp).UnmarshalEasyJSON(in) - case "stackTrace": - if in.IsNull() { - in.Skip() - out.StackTrace = nil - } else { - if out.StackTrace == nil { - out.StackTrace = new(StackTrace) - } - (*out.StackTrace).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(out *jwriter.Writer, in EventConsoleAPICalled) { - out.RawByte('{') - first := true - _ = first - if in.Type != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"type\":") - (in.Type).MarshalEasyJSON(out) - } - if len(in.Args) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"args\":") - if in.Args == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v20, v21 := range in.Args { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - (*v21).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.ExecutionContextID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"executionContextId\":") - out.Int64(int64(in.ExecutionContextID)) - } - if true { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) - } - 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 EventConsoleAPICalled) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventConsoleAPICalled) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventConsoleAPICalled) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventConsoleAPICalled) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(in *jlexer.Lexer, out *EventExceptionRevoked) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "reason": - out.Reason = string(in.String()) - case "exceptionId": - out.ExceptionID = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(out *jwriter.Writer, in EventExceptionRevoked) { - out.RawByte('{') - first := true - _ = first - if in.Reason != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"reason\":") - out.String(string(in.Reason)) - } - if in.ExceptionID != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"exceptionId\":") - out.Int64(int64(in.ExceptionID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventExceptionRevoked) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventExceptionRevoked) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventExceptionRevoked) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventExceptionRevoked) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(in *jlexer.Lexer, out *EventExceptionThrown) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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": - (out.Timestamp).UnmarshalEasyJSON(in) + case "scriptId": + out.ScriptID = ScriptID(in.String()) case "exceptionDetails": if in.IsNull() { in.Skip() @@ -3882,17 +3356,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, in EventExceptionThrown) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(out *jwriter.Writer, in CompileScriptReturns) { out.RawByte('{') first := true _ = first - if true { + if in.ScriptID != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"timestamp\":") - (in.Timestamp).MarshalEasyJSON(out) + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) } if in.ExceptionDetails != nil { if !first { @@ -3910,88 +3384,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, } // MarshalJSON supports json.Marshaler interface -func (v EventExceptionThrown) MarshalJSON() ([]byte, error) { +func (v CompileScriptReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventExceptionThrown) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(w, v) +func (v CompileScriptReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventExceptionThrown) UnmarshalJSON(data []byte) error { +func (v *CompileScriptReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventExceptionThrown) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(l, v) +func (v *CompileScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime30(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(in *jlexer.Lexer, out *EventExecutionContextsCleared) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(out *jwriter.Writer, in EventExecutionContextsCleared) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventExecutionContextsCleared) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventExecutionContextsCleared) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventExecutionContextsCleared) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventExecutionContextsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, out *EventExecutionContextDestroyed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(in *jlexer.Lexer, out *CompileScriptParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4010,6 +3425,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, ou continue } switch key { + case "expression": + out.Expression = string(in.String()) + case "sourceURL": + out.SourceURL = string(in.String()) + case "persistScript": + out.PersistScript = bool(in.Bool()) case "executionContextId": out.ExecutionContextID = ExecutionContextID(in.Int64()) default: @@ -4022,10 +3443,28 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, in EventExecutionContextDestroyed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(out *jwriter.Writer, in CompileScriptParams) { out.RawByte('{') first := true _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expression\":") + out.String(string(in.Expression)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sourceURL\":") + out.String(string(in.SourceURL)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"persistScript\":") + out.Bool(bool(in.PersistScript)) if in.ExecutionContextID != 0 { if !first { out.RawByte(',') @@ -4038,29 +3477,29 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, } // MarshalJSON supports json.Marshaler interface -func (v EventExecutionContextDestroyed) MarshalJSON() ([]byte, error) { +func (v CompileScriptParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventExecutionContextDestroyed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(w, v) +func (v CompileScriptParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventExecutionContextDestroyed) UnmarshalJSON(data []byte) error { +func (v *CompileScriptParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventExecutionContextDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(l, v) +func (v *CompileScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, out *EventExecutionContextCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(in *jlexer.Lexer, out *CallFunctionOnReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4079,15 +3518,25 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, ou continue } switch key { - case "context": + case "result": if in.IsNull() { in.Skip() - out.Context = nil + out.Result = nil } else { - if out.Context == nil { - out.Context = new(ExecutionContextDescription) + if out.Result == nil { + out.Result = new(RemoteObject) } - (*out.Context).UnmarshalEasyJSON(in) + (*out.Result).UnmarshalEasyJSON(in) + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -4099,45 +3548,624 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(out *jwriter.Writer, in EventExecutionContextCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(out *jwriter.Writer, in CallFunctionOnReturns) { out.RawByte('{') first := true _ = first - if in.Context != nil { + if in.Result != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"context\":") - if in.Context == nil { + out.RawString("\"result\":") + if in.Result == nil { out.RawString("null") } else { - (*in.Context).MarshalEasyJSON(out) + (*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 EventExecutionContextCreated) MarshalJSON() ([]byte, error) { +func (v CallFunctionOnReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CallFunctionOnReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime32(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CallFunctionOnReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CallFunctionOnReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime32(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(in *jlexer.Lexer, out *CallFunctionOnParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "objectId": + out.ObjectID = RemoteObjectID(in.String()) + case "functionDeclaration": + out.FunctionDeclaration = string(in.String()) + case "arguments": + if in.IsNull() { + in.Skip() + out.Arguments = nil + } else { + in.Delim('[') + if out.Arguments == nil { + if !in.IsDelim(']') { + out.Arguments = make([]*CallArgument, 0, 8) + } else { + out.Arguments = []*CallArgument{} + } + } else { + out.Arguments = (out.Arguments)[:0] + } + for !in.IsDelim(']') { + var v19 *CallArgument + if in.IsNull() { + in.Skip() + v19 = nil + } else { + if v19 == nil { + v19 = new(CallArgument) + } + (*v19).UnmarshalEasyJSON(in) + } + out.Arguments = append(out.Arguments, v19) + in.WantComma() + } + in.Delim(']') + } + case "silent": + out.Silent = bool(in.Bool()) + case "returnByValue": + out.ReturnByValue = bool(in.Bool()) + case "generatePreview": + out.GeneratePreview = bool(in.Bool()) + case "userGesture": + out.UserGesture = bool(in.Bool()) + case "awaitPromise": + out.AwaitPromise = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(out *jwriter.Writer, in CallFunctionOnParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionDeclaration\":") + out.String(string(in.FunctionDeclaration)) + if len(in.Arguments) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"arguments\":") + if in.Arguments == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v20, v21 := range in.Arguments { + if v20 > 0 { + out.RawByte(',') + } + if v21 == nil { + out.RawString("null") + } else { + (*v21).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + 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.UserGesture { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"userGesture\":") + out.Bool(bool(in.UserGesture)) + } + if in.AwaitPromise { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"awaitPromise\":") + out.Bool(bool(in.AwaitPromise)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CallFunctionOnParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CallFunctionOnParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime33(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CallFunctionOnParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CallFunctionOnParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime33(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(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 "functionName": + out.FunctionName = string(in.String()) + case "scriptId": + out.ScriptID = ScriptID(in.String()) + case "url": + out.URL = string(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(out *jwriter.Writer, in CallFrame) { + out.RawByte('{') + first := true + _ = first + if in.FunctionName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"functionName\":") + out.String(string(in.FunctionName)) + } + if in.ScriptID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scriptId\":") + out.String(string(in.ScriptID)) + } + 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.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 CallFrame) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime34(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CallFrame) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime34(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(in *jlexer.Lexer, out *CallArgument) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "value": + (out.Value).UnmarshalEasyJSON(in) + case "unserializableValue": + (out.UnserializableValue).UnmarshalEasyJSON(in) + case "objectId": + out.ObjectID = RemoteObjectID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(out *jwriter.Writer, in CallArgument) { + out.RawByte('{') + first := true + _ = first + if (in.Value).IsDefined() { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + (in.Value).MarshalEasyJSON(out) + } + if in.UnserializableValue != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"unserializableValue\":") + (in.UnserializableValue).MarshalEasyJSON(out) + } + 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 CallArgument) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CallArgument) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime35(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CallArgument) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CallArgument) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime35(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(in *jlexer.Lexer, out *AwaitPromiseReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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(RemoteObject) + } + (*out.Result).UnmarshalEasyJSON(in) + } + case "exceptionDetails": + if in.IsNull() { + in.Skip() + out.ExceptionDetails = nil + } else { + if out.ExceptionDetails == nil { + out.ExceptionDetails = new(ExceptionDetails) + } + (*out.ExceptionDetails).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(out *jwriter.Writer, in AwaitPromiseReturns) { + 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 AwaitPromiseReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AwaitPromiseReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime36(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AwaitPromiseReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AwaitPromiseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime36(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(in *jlexer.Lexer, out *AwaitPromiseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "promiseObjectId": + out.PromiseObjectID = RemoteObjectID(in.String()) + case "returnByValue": + out.ReturnByValue = bool(in.Bool()) + case "generatePreview": + out.GeneratePreview = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(out *jwriter.Writer, in AwaitPromiseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"promiseObjectId\":") + out.String(string(in.PromiseObjectID)) + 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)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AwaitPromiseParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventExecutionContextCreated) MarshalEasyJSON(w *jwriter.Writer) { +func (v AwaitPromiseParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpRuntime37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventExecutionContextCreated) UnmarshalJSON(data []byte) error { +func (v *AwaitPromiseParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventExecutionContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *AwaitPromiseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpRuntime37(l, v) } diff --git a/cdp/schema/easyjson.go b/cdp/schema/easyjson.go index 78a6667..d908307 100644 --- a/cdp/schema/easyjson.go +++ b/cdp/schema/easyjson.go @@ -42,10 +42,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSchema(in *jlexer.Lexer, out * out.Domains = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Domains = make([]*Domain, 0, 8) + if out.Domains == nil { + if !in.IsDelim(']') { + out.Domains = make([]*Domain, 0, 8) + } else { + out.Domains = []*Domain{} + } } else { - out.Domains = []*Domain{} + out.Domains = (out.Domains)[:0] } for !in.IsDelim(']') { var v1 *Domain diff --git a/cdp/security/easyjson.go b/cdp/security/easyjson.go index 7b9076a..1eefcca 100644 --- a/cdp/security/easyjson.go +++ b/cdp/security/easyjson.go @@ -17,7 +17,106 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(in *jlexer.Lexer, out *ShowCertificateViewerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(in *jlexer.Lexer, out *StateExplanation) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "securityState": + (out.SecurityState).UnmarshalEasyJSON(in) + case "summary": + out.Summary = string(in.String()) + case "description": + out.Description = string(in.String()) + case "hasCertificate": + out.HasCertificate = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer, in StateExplanation) { + out.RawByte('{') + first := true + _ = first + if in.SecurityState != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"securityState\":") + (in.SecurityState).MarshalEasyJSON(out) + } + if in.Summary != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"summary\":") + out.String(string(in.Summary)) + } + if in.Description != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"description\":") + out.String(string(in.Description)) + } + if in.HasCertificate { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"hasCertificate\":") + out.Bool(bool(in.HasCertificate)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StateExplanation) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StateExplanation) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StateExplanation) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(in *jlexer.Lexer, out *ShowCertificateViewerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -46,7 +145,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer, in ShowCertificateViewerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(out *jwriter.Writer, in ShowCertificateViewerParams) { out.RawByte('{') first := true _ = first @@ -55,146 +154,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ShowCertificateViewerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ShowCertificateViewerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ShowCertificateViewerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ShowCertificateViewerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(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{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v ShowCertificateViewerParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DisableParams) UnmarshalJSON(data []byte) error { +func (v *ShowCertificateViewerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ShowCertificateViewerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(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{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, out *InsecureContentStatus) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(in *jlexer.Lexer, out *InsecureContentStatus) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -235,7 +216,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, in InsecureContentStatus) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer, in InsecureContentStatus) { out.RawByte('{') first := true _ = first @@ -293,126 +274,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v InsecureContentStatus) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v InsecureContentStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *InsecureContentStatus) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *InsecureContentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(in *jlexer.Lexer, out *StateExplanation) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "securityState": - (out.SecurityState).UnmarshalEasyJSON(in) - case "summary": - out.Summary = string(in.String()) - case "description": - out.Description = string(in.String()) - case "hasCertificate": - out.HasCertificate = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer, in StateExplanation) { - out.RawByte('{') - first := true - _ = first - if in.SecurityState != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"securityState\":") - (in.SecurityState).MarshalEasyJSON(out) - } - if in.Summary != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"summary\":") - out.String(string(in.Summary)) - } - if in.Description != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"description\":") - out.String(string(in.Description)) - } - if in.HasCertificate { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"hasCertificate\":") - out.Bool(bool(in.HasCertificate)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StateExplanation) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StateExplanation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StateExplanation) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, out *EventSecurityStateChanged) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, out *EventSecurityStateChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -441,10 +323,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, ou out.Explanations = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Explanations = make([]*StateExplanation, 0, 8) + if out.Explanations == nil { + if !in.IsDelim(']') { + out.Explanations = make([]*StateExplanation, 0, 8) + } else { + out.Explanations = []*StateExplanation{} + } } else { - out.Explanations = []*StateExplanation{} + out.Explanations = (out.Explanations)[:0] } for !in.IsDelim(']') { var v1 *StateExplanation @@ -484,7 +370,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer, in EventSecurityStateChanged) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, in EventSecurityStateChanged) { out.RawByte('{') first := true _ = first @@ -553,23 +439,141 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EnableParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(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{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(l, v) } diff --git a/cdp/serviceworker/easyjson.go b/cdp/serviceworker/easyjson.go index 6dab7f8..39c4042 100644 --- a/cdp/serviceworker/easyjson.go +++ b/cdp/serviceworker/easyjson.go @@ -18,126 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(in *jlexer.Lexer, out *ErrorMessage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "errorMessage": - out.ErrorMessage = string(in.String()) - case "registrationId": - out.RegistrationID = string(in.String()) - case "versionId": - out.VersionID = string(in.String()) - case "sourceURL": - out.SourceURL = string(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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(out *jwriter.Writer, in ErrorMessage) { - out.RawByte('{') - first := true - _ = first - if in.ErrorMessage != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"errorMessage\":") - out.String(string(in.ErrorMessage)) - } - if in.RegistrationID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"registrationId\":") - out.String(string(in.RegistrationID)) - } - if in.VersionID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"versionId\":") - out.String(string(in.VersionID)) - } - if in.SourceURL != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"sourceURL\":") - out.String(string(in.SourceURL)) - } - if in.LineNumber != 0 { - 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 ErrorMessage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ErrorMessage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(in *jlexer.Lexer, out *Version) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(in *jlexer.Lexer, out *Version) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -176,10 +57,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(in *jlexer.Lexe out.ControlledClients = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.ControlledClients = make([]target.ID, 0, 4) + if out.ControlledClients == nil { + if !in.IsDelim(']') { + out.ControlledClients = make([]target.ID, 0, 4) + } else { + out.ControlledClients = []target.ID{} + } } else { - out.ControlledClients = []target.ID{} + out.ControlledClients = (out.ControlledClients)[:0] } for !in.IsDelim(']') { var v1 target.ID @@ -201,7 +86,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(out *jwriter.Writer, in Version) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(out *jwriter.Writer, in Version) { out.RawByte('{') first := true _ = first @@ -294,27 +179,429 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v Version) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Version) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Version) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *Version) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(in *jlexer.Lexer, out *UpdateRegistrationParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "scopeURL": + out.ScopeURL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(out *jwriter.Writer, in UpdateRegistrationParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeURL\":") + out.String(string(in.ScopeURL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Version) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(in *jlexer.Lexer, out *Registration) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(in *jlexer.Lexer, out *UnregisterParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "scopeURL": + out.ScopeURL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(out *jwriter.Writer, in UnregisterParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeURL\":") + out.String(string(in.ScopeURL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v UnregisterParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *UnregisterParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(in *jlexer.Lexer, out *StopWorkerParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "versionId": + out.VersionID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(out *jwriter.Writer, in StopWorkerParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"versionId\":") + out.String(string(in.VersionID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StopWorkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StopWorkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *StartWorkerParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "scopeURL": + out.ScopeURL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in StartWorkerParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeURL\":") + out.String(string(in.ScopeURL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v StartWorkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *StartWorkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *SkipWaitingParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "scopeURL": + out.ScopeURL = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in SkipWaitingParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"scopeURL\":") + out.String(string(in.ScopeURL)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SkipWaitingParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "forceUpdateOnPageLoad": + out.ForceUpdateOnPageLoad = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"forceUpdateOnPageLoad\":") + out.Bool(bool(in.ForceUpdateOnPageLoad)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *Registration) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -349,7 +636,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(out *jwriter.Writer, in Registration) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in Registration) { out.RawByte('{') first := true _ = first @@ -383,27 +670,320 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v Registration) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Registration) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Registration) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Registration) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(in *jlexer.Lexer, out *EventWorkerErrorReported) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *InspectWorkerParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "versionId": + out.VersionID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in InspectWorkerParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"versionId\":") + out.String(string(in.VersionID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v InspectWorkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *EventWorkerVersionUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "versions": + if in.IsNull() { + in.Skip() + out.Versions = nil + } else { + in.Delim('[') + if out.Versions == nil { + if !in.IsDelim(']') { + out.Versions = make([]*Version, 0, 8) + } else { + out.Versions = []*Version{} + } + } else { + out.Versions = (out.Versions)[:0] + } + for !in.IsDelim(']') { + var v4 *Version + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(Version) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Versions = append(out.Versions, v4) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in EventWorkerVersionUpdated) { + out.RawByte('{') + first := true + _ = first + if len(in.Versions) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"versions\":") + if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Versions { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "registrations": + if in.IsNull() { + in.Skip() + out.Registrations = nil + } else { + in.Delim('[') + if out.Registrations == nil { + if !in.IsDelim(']') { + out.Registrations = make([]*Registration, 0, 8) + } else { + out.Registrations = []*Registration{} + } + } else { + out.Registrations = (out.Registrations)[:0] + } + for !in.IsDelim(']') { + var v7 *Registration + if in.IsNull() { + in.Skip() + v7 = nil + } else { + if v7 == nil { + v7 = new(Registration) + } + (*v7).UnmarshalEasyJSON(in) + } + out.Registrations = append(out.Registrations, v7) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in EventWorkerRegistrationUpdated) { + out.RawByte('{') + first := true + _ = first + if len(in.Registrations) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"registrations\":") + if in.Registrations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.Registrations { + if v8 > 0 { + out.RawByte(',') + } + if v9 == nil { + out.RawString("null") + } else { + (*v9).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *EventWorkerErrorReported) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -442,7 +1022,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(out *jwriter.Writer, in EventWorkerErrorReported) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in EventWorkerErrorReported) { out.RawByte('{') first := true _ = first @@ -464,27 +1044,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v EventWorkerErrorReported) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWorkerErrorReported) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWorkerErrorReported) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWorkerErrorReported) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexer, out *EventWorkerVersionUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *ErrorMessage) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -503,33 +1083,18 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexe continue } switch key { - case "versions": - if in.IsNull() { - in.Skip() - out.Versions = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Versions = make([]*Version, 0, 8) - } else { - out.Versions = []*Version{} - } - for !in.IsDelim(']') { - var v4 *Version - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(Version) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Versions = append(out.Versions, v4) - in.WantComma() - } - in.Delim(']') - } + case "errorMessage": + out.ErrorMessage = string(in.String()) + case "registrationId": + out.RegistrationID = string(in.String()) + case "versionId": + out.VersionID = string(in.String()) + case "sourceURL": + out.SourceURL = string(in.String()) + case "lineNumber": + out.LineNumber = int64(in.Int64()) + case "columnNumber": + out.ColumnNumber = int64(in.Int64()) default: in.SkipRecursive() } @@ -540,60 +1105,85 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(out *jwriter.Writer, in EventWorkerVersionUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in ErrorMessage) { out.RawByte('{') first := true _ = first - if len(in.Versions) != 0 { + if in.ErrorMessage != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"versions\":") - if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.Versions { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') + out.RawString("\"errorMessage\":") + out.String(string(in.ErrorMessage)) + } + if in.RegistrationID != "" { + if !first { + out.RawByte(',') } + first = false + out.RawString("\"registrationId\":") + out.String(string(in.RegistrationID)) + } + if in.VersionID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"versionId\":") + out.String(string(in.VersionID)) + } + if in.SourceURL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sourceURL\":") + out.String(string(in.SourceURL)) + } + if in.LineNumber != 0 { + 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 EventWorkerVersionUpdated) MarshalJSON() ([]byte, error) { +func (v ErrorMessage) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWorkerVersionUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker4(w, v) +func (v ErrorMessage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWorkerVersionUpdated) UnmarshalJSON(data []byte) error { +func (v *ErrorMessage) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWorkerVersionUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker4(l, v) +func (v *ErrorMessage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexer, out *EventWorkerRegistrationUpdated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -612,33 +1202,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexe continue } switch key { - case "registrations": - if in.IsNull() { - in.Skip() - out.Registrations = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Registrations = make([]*Registration, 0, 8) - } else { - out.Registrations = []*Registration{} - } - for !in.IsDelim(']') { - var v7 *Registration - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(Registration) - } - (*v7).UnmarshalEasyJSON(in) - } - out.Registrations = append(out.Registrations, v7) - in.WantComma() - } - in.Delim(']') - } default: in.SkipRecursive() } @@ -649,60 +1212,37 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(out *jwriter.Writer, in EventWorkerRegistrationUpdated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first - if len(in.Registrations) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"registrations\":") - if in.Registrations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Registrations { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventWorkerRegistrationUpdated) MarshalJSON() ([]byte, error) { +func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventWorkerRegistrationUpdated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker5(w, v) +func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventWorkerRegistrationUpdated) UnmarshalJSON(data []byte) error { +func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventWorkerRegistrationUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker5(l, v) +func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexer, out *DispatchSyncEventParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *DispatchSyncEventParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -739,7 +1279,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(in *jlexer.Lexe in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Writer, in DispatchSyncEventParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in DispatchSyncEventParams) { out.RawByte('{') first := true _ = first @@ -772,577 +1312,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v DispatchSyncEventParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(in *jlexer.Lexer, out *DeliverPushMessageParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "origin": - out.Origin = string(in.String()) - case "registrationId": - out.RegistrationID = string(in.String()) - case "data": - out.Data = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(out *jwriter.Writer, in DeliverPushMessageParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"origin\":") - out.String(string(in.Origin)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"registrationId\":") - out.String(string(in.RegistrationID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"data\":") - out.String(string(in.Data)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(in *jlexer.Lexer, out *SetForceUpdateOnPageLoadParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "forceUpdateOnPageLoad": - out.ForceUpdateOnPageLoad = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(out *jwriter.Writer, in SetForceUpdateOnPageLoadParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"forceUpdateOnPageLoad\":") - out.Bool(bool(in.ForceUpdateOnPageLoad)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetForceUpdateOnPageLoadParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetForceUpdateOnPageLoadParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetForceUpdateOnPageLoadParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetForceUpdateOnPageLoadParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(in *jlexer.Lexer, out *InspectWorkerParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "versionId": - out.VersionID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(out *jwriter.Writer, in InspectWorkerParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"versionId\":") - out.String(string(in.VersionID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v InspectWorkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v InspectWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *InspectWorkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *InspectWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(in *jlexer.Lexer, out *StopWorkerParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "versionId": - out.VersionID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(out *jwriter.Writer, in StopWorkerParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"versionId\":") - out.String(string(in.VersionID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StopWorkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StopWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StopWorkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StopWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(in *jlexer.Lexer, out *SkipWaitingParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "scopeURL": - out.ScopeURL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(out *jwriter.Writer, in SkipWaitingParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scopeURL\":") - out.String(string(in.ScopeURL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SkipWaitingParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SkipWaitingParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SkipWaitingParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SkipWaitingParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(in *jlexer.Lexer, out *StartWorkerParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "scopeURL": - out.ScopeURL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(out *jwriter.Writer, in StartWorkerParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scopeURL\":") - out.String(string(in.ScopeURL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartWorkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartWorkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(in *jlexer.Lexer, out *UpdateRegistrationParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "scopeURL": - out.ScopeURL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(out *jwriter.Writer, in UpdateRegistrationParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scopeURL\":") - out.String(string(in.ScopeURL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UpdateRegistrationParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v UpdateRegistrationParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *UpdateRegistrationParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UpdateRegistrationParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(in *jlexer.Lexer, out *UnregisterParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "scopeURL": - out.ScopeURL = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(out *jwriter.Writer, in UnregisterParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"scopeURL\":") - out.String(string(in.ScopeURL)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UnregisterParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v UnregisterParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v DispatchSyncEventParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *UnregisterParams) UnmarshalJSON(data []byte) error { +func (v *DispatchSyncEventParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UnregisterParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DispatchSyncEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker14(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(in *jlexer.Lexer, out *DisableParams) { @@ -1404,7 +1392,7 @@ func (v *DisableParams) UnmarshalJSON(data []byte) error { func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lexer, out *DeliverPushMessageParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1423,6 +1411,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lex continue } switch key { + case "origin": + out.Origin = string(in.String()) + case "registrationId": + out.RegistrationID = string(in.String()) + case "data": + out.Data = string(in.String()) default: in.SkipRecursive() } @@ -1433,33 +1427,51 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(in *jlexer.Lex in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(out *jwriter.Writer, in DeliverPushMessageParams) { out.RawByte('{') first := true _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"registrationId\":") + out.String(string(in.RegistrationID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"data\":") + out.String(string(in.Data)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EnableParams) MarshalJSON() ([]byte, error) { +func (v DeliverPushMessageParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v DeliverPushMessageParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpServiceworker16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EnableParams) UnmarshalJSON(data []byte) error { +func (v *DeliverPushMessageParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *DeliverPushMessageParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpServiceworker16(l, v) } diff --git a/cdp/systeminfo/easyjson.go b/cdp/systeminfo/easyjson.go index f5bcd61..bad5ed3 100644 --- a/cdp/systeminfo/easyjson.go +++ b/cdp/systeminfo/easyjson.go @@ -17,7 +17,167 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(in *jlexer.Lexer, out *GPUInfo) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(in *jlexer.Lexer, out *GetInfoReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "gpu": + if in.IsNull() { + in.Skip() + out.Gpu = nil + } else { + if out.Gpu == nil { + out.Gpu = new(GPUInfo) + } + (*out.Gpu).UnmarshalEasyJSON(in) + } + case "modelName": + out.ModelName = string(in.String()) + case "modelVersion": + out.ModelVersion = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(out *jwriter.Writer, in GetInfoReturns) { + out.RawByte('{') + first := true + _ = first + if in.Gpu != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"gpu\":") + if in.Gpu == nil { + out.RawString("null") + } else { + (*in.Gpu).MarshalEasyJSON(out) + } + } + if in.ModelName != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"modelName\":") + out.String(string(in.ModelName)) + } + if in.ModelVersion != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"modelVersion\":") + out.String(string(in.ModelVersion)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetInfoReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetInfoReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(in *jlexer.Lexer, out *GetInfoParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(out *jwriter.Writer, in GetInfoParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetInfoParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetInfoParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(in *jlexer.Lexer, out *GPUInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -42,10 +202,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(in *jlexer.Lexer, o out.Devices = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Devices = make([]*GPUDevice, 0, 8) + if out.Devices == nil { + if !in.IsDelim(']') { + out.Devices = make([]*GPUDevice, 0, 8) + } else { + out.Devices = []*GPUDevice{} + } } else { - out.Devices = []*GPUDevice{} + out.Devices = (out.Devices)[:0] } for !in.IsDelim(']') { var v1 *GPUDevice @@ -73,10 +237,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(in *jlexer.Lexer, o out.DriverBugWorkarounds = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.DriverBugWorkarounds = make([]string, 0, 4) + if out.DriverBugWorkarounds == nil { + if !in.IsDelim(']') { + out.DriverBugWorkarounds = make([]string, 0, 4) + } else { + out.DriverBugWorkarounds = []string{} + } } else { - out.DriverBugWorkarounds = []string{} + out.DriverBugWorkarounds = (out.DriverBugWorkarounds)[:0] } for !in.IsDelim(']') { var v2 string @@ -96,7 +264,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(out *jwriter.Writer, in GPUInfo) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(out *jwriter.Writer, in GPUInfo) { out.RawByte('{') first := true _ = first @@ -164,27 +332,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v GPUInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GPUInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GPUInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GPUInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(in *jlexer.Lexer, out *GPUDevice) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo3(in *jlexer.Lexer, out *GPUDevice) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -221,7 +389,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(out *jwriter.Writer, in GPUDevice) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo3(out *jwriter.Writer, in GPUDevice) { out.RawByte('{') first := true _ = first @@ -262,184 +430,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(out *jwriter.Write // MarshalJSON supports json.Marshaler interface func (v GPUDevice) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GPUDevice) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GPUDevice) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GPUDevice) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo1(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(in *jlexer.Lexer, out *GetInfoReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gpu": - if in.IsNull() { - in.Skip() - out.Gpu = nil - } else { - if out.Gpu == nil { - out.Gpu = new(GPUInfo) - } - (*out.Gpu).UnmarshalEasyJSON(in) - } - case "modelName": - out.ModelName = string(in.String()) - case "modelVersion": - out.ModelVersion = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(out *jwriter.Writer, in GetInfoReturns) { - out.RawByte('{') - first := true - _ = first - if in.Gpu != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"gpu\":") - if in.Gpu == nil { - out.RawString("null") - } else { - (*in.Gpu).MarshalEasyJSON(out) - } - } - if in.ModelName != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"modelName\":") - out.String(string(in.ModelName)) - } - if in.ModelVersion != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"modelVersion\":") - out.String(string(in.ModelVersion)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetInfoReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetInfoReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo3(in *jlexer.Lexer, out *GetInfoParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo3(out *jwriter.Writer, in GetInfoParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GetInfoParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetInfoParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v GPUDevice) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSysteminfo3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *GetInfoParams) UnmarshalJSON(data []byte) error { +func (v *GPUDevice) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GPUDevice) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSysteminfo3(l, v) } diff --git a/cdp/target/easyjson.go b/cdp/target/easyjson.go index 2345bb9..6321ec9 100644 --- a/cdp/target/easyjson.go +++ b/cdp/target/easyjson.go @@ -17,7 +17,402 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(in *jlexer.Lexer, out *RemoteLocation) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(in *jlexer.Lexer, out *SetRemoteLocationsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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([]*RemoteLocation, 0, 8) + } else { + out.Locations = []*RemoteLocation{} + } + } else { + out.Locations = (out.Locations)[:0] + } + for !in.IsDelim(']') { + var v1 *RemoteLocation + if in.IsNull() { + in.Skip() + v1 = nil + } else { + if v1 == nil { + v1 = new(RemoteLocation) + } + (*v1).UnmarshalEasyJSON(in) + } + out.Locations = append(out.Locations, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(out *jwriter.Writer, in SetRemoteLocationsParams) { + out.RawByte('{') + first := true + _ = first + 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 v2, v3 := range in.Locations { + if v2 > 0 { + out.RawByte(',') + } + if v3 == nil { + out.RawString("null") + } else { + (*v3).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetRemoteLocationsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetRemoteLocationsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetRemoteLocationsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetRemoteLocationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(in *jlexer.Lexer, out *SetDiscoverTargetsParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "discover": + out.Discover = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(out *jwriter.Writer, in SetDiscoverTargetsParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"discover\":") + out.Bool(bool(in.Discover)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetDiscoverTargetsParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetDiscoverTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetDiscoverTargetsParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetDiscoverTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(in *jlexer.Lexer, out *SetAutoAttachParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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()) + case "waitForDebuggerOnStart": + out.WaitForDebuggerOnStart = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(out *jwriter.Writer, in SetAutoAttachParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"autoAttach\":") + out.Bool(bool(in.AutoAttach)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"waitForDebuggerOnStart\":") + out.Bool(bool(in.WaitForDebuggerOnStart)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAutoAttachParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAutoAttachParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(in *jlexer.Lexer, out *SetAttachToFramesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "value": + out.Value = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(out *jwriter.Writer, in SetAttachToFramesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.Bool(bool(in.Value)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetAttachToFramesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetAttachToFramesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetAttachToFramesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetAttachToFramesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(in *jlexer.Lexer, out *SendMessageToTargetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "targetId": + out.TargetID = string(in.String()) + case "message": + out.Message = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(out *jwriter.Writer, in SendMessageToTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"message\":") + out.String(string(in.Message)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SendMessageToTargetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SendMessageToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SendMessageToTargetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SendMessageToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(in *jlexer.Lexer, out *RemoteLocation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -50,7 +445,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(in *jlexer.Lexer, out * in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(out *jwriter.Writer, in RemoteLocation) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(out *jwriter.Writer, in RemoteLocation) { out.RawByte('{') first := true _ = first @@ -76,27 +471,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(out *jwriter.Writer, in // MarshalJSON supports json.Marshaler interface func (v RemoteLocation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoteLocation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoteLocation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoteLocation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(in *jlexer.Lexer, out *Info) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(in *jlexer.Lexer, out *Info) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -133,7 +528,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(out *jwriter.Writer, in Info) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(out *jwriter.Writer, in Info) { out.RawByte('{') first := true _ = first @@ -175,27 +570,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v Info) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Info) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Info) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Info) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(in *jlexer.Lexer, out *GetTargetsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(in *jlexer.Lexer, out *GetTargetsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -220,23 +615,27 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(in *jlexer.Lexer, out out.TargetInfos = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.TargetInfos = make([]*Info, 0, 8) + if out.TargetInfos == nil { + if !in.IsDelim(']') { + out.TargetInfos = make([]*Info, 0, 8) + } else { + out.TargetInfos = []*Info{} + } } else { - out.TargetInfos = []*Info{} + out.TargetInfos = (out.TargetInfos)[:0] } for !in.IsDelim(']') { - var v1 *Info + var v4 *Info if in.IsNull() { in.Skip() - v1 = nil + v4 = nil } else { - if v1 == nil { - v1 = new(Info) + if v4 == nil { + v4 = new(Info) } - (*v1).UnmarshalEasyJSON(in) + (*v4).UnmarshalEasyJSON(in) } - out.TargetInfos = append(out.TargetInfos, v1) + out.TargetInfos = append(out.TargetInfos, v4) in.WantComma() } in.Delim(']') @@ -251,7 +650,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(out *jwriter.Writer, in GetTargetsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(out *jwriter.Writer, in GetTargetsReturns) { out.RawByte('{') first := true _ = first @@ -265,14 +664,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(out *jwriter.Writer, i out.RawString("null") } else { out.RawByte('[') - for v2, v3 := range in.TargetInfos { - if v2 > 0 { + for v5, v6 := range in.TargetInfos { + if v5 > 0 { out.RawByte(',') } - if v3 == nil { + if v6 == nil { out.RawString("null") } else { - (*v3).MarshalEasyJSON(out) + (*v6).MarshalEasyJSON(out) } } out.RawByte(']') @@ -284,27 +683,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v GetTargetsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(in *jlexer.Lexer, out *GetTargetsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget8(in *jlexer.Lexer, out *GetTargetsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -333,7 +732,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(out *jwriter.Writer, in GetTargetsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget8(out *jwriter.Writer, in GetTargetsParams) { out.RawByte('{') first := true _ = first @@ -342,864 +741,28 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(out *jwriter.Writer, i // MarshalJSON supports json.Marshaler interface func (v GetTargetsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GetTargetsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(in *jlexer.Lexer, out *CreateTargetReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "targetId": - out.TargetID = ID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(out *jwriter.Writer, in CreateTargetReturns) { - out.RawByte('{') - first := true - _ = first - if in.TargetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CreateTargetReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateTargetReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget4(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(in *jlexer.Lexer, out *CreateTargetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 "width": - out.Width = int64(in.Int64()) - case "height": - out.Height = int64(in.Int64()) - case "browserContextId": - out.BrowserContextID = BrowserContextID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(out *jwriter.Writer, in CreateTargetParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - if in.Width != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"width\":") - out.Int64(int64(in.Width)) - } - if in.Height != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"height\":") - out.Int64(int64(in.Height)) - } - if in.BrowserContextID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"browserContextId\":") - out.String(string(in.BrowserContextID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CreateTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget5(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(in *jlexer.Lexer, out *DisposeBrowserContextReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(out *jwriter.Writer, in DisposeBrowserContextReturns) { - out.RawByte('{') - first := true - _ = first - if in.Success { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"success\":") - out.Bool(bool(in.Success)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DisposeBrowserContextReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisposeBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisposeBrowserContextReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisposeBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget6(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(in *jlexer.Lexer, out *DisposeBrowserContextParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "browserContextId": - out.BrowserContextID = BrowserContextID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(out *jwriter.Writer, in DisposeBrowserContextParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"browserContextId\":") - out.String(string(in.BrowserContextID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget7(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget7(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget8(in *jlexer.Lexer, out *CreateBrowserContextReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "browserContextId": - out.BrowserContextID = BrowserContextID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget8(out *jwriter.Writer, in CreateBrowserContextReturns) { - out.RawByte('{') - first := true - _ = first - if in.BrowserContextID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"browserContextId\":") - out.String(string(in.BrowserContextID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CreateBrowserContextReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { +func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateBrowserContextReturns) UnmarshalJSON(data []byte) error { +func (v *GetTargetsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget8(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(in *jlexer.Lexer, out *CreateBrowserContextParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(out *jwriter.Writer, in CreateBrowserContextParams) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(in *jlexer.Lexer, out *DetachFromTargetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "targetId": - out.TargetID = ID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(out *jwriter.Writer, in DetachFromTargetParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DetachFromTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(in *jlexer.Lexer, out *AttachToTargetReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(out *jwriter.Writer, in AttachToTargetReturns) { - out.RawByte('{') - first := true - _ = first - if in.Success { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"success\":") - out.Bool(bool(in.Success)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AttachToTargetReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AttachToTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AttachToTargetReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AttachToTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(in *jlexer.Lexer, out *AttachToTargetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "targetId": - out.TargetID = ID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(out *jwriter.Writer, in AttachToTargetParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AttachToTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(in *jlexer.Lexer, out *CloseTargetReturns) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(out *jwriter.Writer, in CloseTargetReturns) { - out.RawByte('{') - first := true - _ = first - if in.Success { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"success\":") - out.Bool(bool(in.Success)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CloseTargetReturns) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CloseTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CloseTargetReturns) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CloseTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(in *jlexer.Lexer, out *CloseTargetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "targetId": - out.TargetID = ID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(out *jwriter.Writer, in CloseTargetParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CloseTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CloseTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(in *jlexer.Lexer, out *ActivateTargetParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "targetId": - out.TargetID = ID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(out *jwriter.Writer, in ActivateTargetParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ActivateTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(in *jlexer.Lexer, out *GetTargetInfoReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(in *jlexer.Lexer, out *GetTargetInfoReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1238,7 +801,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(out *jwriter.Writer, in GetTargetInfoReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(out *jwriter.Writer, in GetTargetInfoReturns) { out.RawByte('{') first := true _ = first @@ -1260,27 +823,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetInfoReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetInfoReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(in *jlexer.Lexer, out *GetTargetInfoParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(in *jlexer.Lexer, out *GetTargetInfoParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1311,7 +874,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(out *jwriter.Writer, in GetTargetInfoParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(out *jwriter.Writer, in GetTargetInfoParams) { out.RawByte('{') first := true _ = first @@ -1327,27 +890,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetInfoParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetInfoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetInfoParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(in *jlexer.Lexer, out *SendMessageToTargetParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(in *jlexer.Lexer, out *EventTargetDestroyed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1367,9 +930,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(in *jlexer.Lexer, out } switch key { case "targetId": - out.TargetID = string(in.String()) - case "message": - out.Message = string(in.String()) + out.TargetID = ID(in.String()) default: in.SkipRecursive() } @@ -1380,49 +941,45 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(out *jwriter.Writer, in SendMessageToTargetParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(out *jwriter.Writer, in EventTargetDestroyed) { out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.TargetID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"message\":") - out.String(string(in.Message)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SendMessageToTargetParams) MarshalJSON() ([]byte, error) { +func (v EventTargetDestroyed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SendMessageToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(w, v) +func (v EventTargetDestroyed) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SendMessageToTargetParams) UnmarshalJSON(data []byte) error { +func (v *EventTargetDestroyed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SendMessageToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(l, v) +func (v *EventTargetDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(in *jlexer.Lexer, out *SetRemoteLocationsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(in *jlexer.Lexer, out *EventTargetCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1441,32 +998,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(in *jlexer.Lexer, out continue } switch key { - case "locations": + case "targetInfo": if in.IsNull() { in.Skip() - out.Locations = nil + out.TargetInfo = nil } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Locations = make([]*RemoteLocation, 0, 8) - } else { - out.Locations = []*RemoteLocation{} + if out.TargetInfo == nil { + out.TargetInfo = new(Info) } - for !in.IsDelim(']') { - var v4 *RemoteLocation - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(RemoteLocation) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Locations = append(out.Locations, v4) - in.WantComma() - } - in.Delim(']') + (*out.TargetInfo).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -1478,267 +1018,49 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(out *jwriter.Writer, in SetRemoteLocationsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(out *jwriter.Writer, in EventTargetCreated) { out.RawByte('{') first := true _ = first - 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) - } + if in.TargetInfo != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetInfo\":") + if in.TargetInfo == nil { + out.RawString("null") + } else { + (*in.TargetInfo).MarshalEasyJSON(out) } - out.RawByte(']') } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v SetRemoteLocationsParams) MarshalJSON() ([]byte, error) { +func (v EventTargetCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetRemoteLocationsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(w, v) +func (v EventTargetCreated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *SetRemoteLocationsParams) UnmarshalJSON(data []byte) error { +func (v *EventTargetCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetRemoteLocationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(l, v) +func (v *EventTargetCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(in *jlexer.Lexer, out *SetAttachToFramesParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "value": - out.Value = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(out *jwriter.Writer, in SetAttachToFramesParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - out.Bool(bool(in.Value)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetAttachToFramesParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAttachToFramesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAttachToFramesParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAttachToFramesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(in *jlexer.Lexer, out *SetAutoAttachParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - 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()) - case "waitForDebuggerOnStart": - out.WaitForDebuggerOnStart = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(out *jwriter.Writer, in SetAutoAttachParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"autoAttach\":") - out.Bool(bool(in.AutoAttach)) - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"waitForDebuggerOnStart\":") - out.Bool(bool(in.WaitForDebuggerOnStart)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetAutoAttachParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetAutoAttachParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(in *jlexer.Lexer, out *SetDiscoverTargetsParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "discover": - out.Discover = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(out *jwriter.Writer, in SetDiscoverTargetsParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"discover\":") - out.Bool(bool(in.Discover)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SetDiscoverTargetsParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SetDiscoverTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SetDiscoverTargetsParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SetDiscoverTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(in *jlexer.Lexer, out *EventReceivedMessageFromTarget) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(in *jlexer.Lexer, out *EventReceivedMessageFromTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1771,7 +1093,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(out *jwriter.Writer, in EventReceivedMessageFromTarget) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(out *jwriter.Writer, in EventReceivedMessageFromTarget) { out.RawByte('{') first := true _ = first @@ -1797,27 +1119,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventReceivedMessageFromTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventReceivedMessageFromTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventReceivedMessageFromTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventReceivedMessageFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(in *jlexer.Lexer, out *EventDetachedFromTarget) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(in *jlexer.Lexer, out *EventDetachedFromTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1848,7 +1170,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(out *jwriter.Writer, in EventDetachedFromTarget) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(out *jwriter.Writer, in EventDetachedFromTarget) { out.RawByte('{') first := true _ = first @@ -1866,27 +1188,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventDetachedFromTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDetachedFromTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDetachedFromTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDetachedFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(in *jlexer.Lexer, out *EventAttachedToTarget) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(in *jlexer.Lexer, out *EventAttachedToTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1927,7 +1249,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(out *jwriter.Writer, in EventAttachedToTarget) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(out *jwriter.Writer, in EventAttachedToTarget) { out.RawByte('{') first := true _ = first @@ -1957,27 +1279,163 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventAttachedToTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAttachedToTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAttachedToTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAttachedToTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(in *jlexer.Lexer, out *EventTargetDestroyed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(in *jlexer.Lexer, out *DisposeBrowserContextReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(out *jwriter.Writer, in DisposeBrowserContextReturns) { + out.RawByte('{') + first := true + _ = first + if in.Success { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"success\":") + out.Bool(bool(in.Success)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisposeBrowserContextReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisposeBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget16(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisposeBrowserContextReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisposeBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget16(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(in *jlexer.Lexer, out *DisposeBrowserContextParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "browserContextId": + out.BrowserContextID = BrowserContextID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(out *jwriter.Writer, in DisposeBrowserContextParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"browserContextId\":") + out.String(string(in.BrowserContextID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget17(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget17(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(in *jlexer.Lexer, out *DetachFromTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2008,45 +1466,43 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(out *jwriter.Writer, in EventTargetDestroyed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(out *jwriter.Writer, in DetachFromTargetParams) { out.RawByte('{') first := true _ = first - if in.TargetID != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"targetId\":") - out.String(string(in.TargetID)) + if !first { + out.RawByte(',') } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventTargetDestroyed) MarshalJSON() ([]byte, error) { +func (v DetachFromTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventTargetDestroyed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(w, v) +func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventTargetDestroyed) UnmarshalJSON(data []byte) error { +func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventTargetDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(l, v) +func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(in *jlexer.Lexer, out *EventTargetCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(in *jlexer.Lexer, out *CreateTargetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2065,16 +1521,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(in *jlexer.Lexer, out continue } switch key { - case "targetInfo": - if in.IsNull() { - in.Skip() - out.TargetInfo = nil - } else { - if out.TargetInfo == nil { - out.TargetInfo = new(Info) - } - (*out.TargetInfo).UnmarshalEasyJSON(in) - } + case "targetId": + out.TargetID = ID(in.String()) default: in.SkipRecursive() } @@ -2085,45 +1533,605 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget27(out *jwriter.Writer, in EventTargetCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(out *jwriter.Writer, in CreateTargetReturns) { out.RawByte('{') first := true _ = first - if in.TargetInfo != nil { + if in.TargetID != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"targetInfo\":") - if in.TargetInfo == nil { - out.RawString("null") - } else { - (*in.TargetInfo).MarshalEasyJSON(out) - } + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventTargetCreated) MarshalJSON() ([]byte, error) { +func (v CreateTargetReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget19(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateTargetReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget19(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(in *jlexer.Lexer, out *CreateTargetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 "width": + out.Width = int64(in.Int64()) + case "height": + out.Height = int64(in.Int64()) + case "browserContextId": + out.BrowserContextID = BrowserContextID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(out *jwriter.Writer, in CreateTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + if in.Width != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"width\":") + out.Int64(int64(in.Width)) + } + if in.Height != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"height\":") + out.Int64(int64(in.Height)) + } + if in.BrowserContextID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"browserContextId\":") + out.String(string(in.BrowserContextID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateTargetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget20(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateTargetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget20(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(in *jlexer.Lexer, out *CreateBrowserContextReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "browserContextId": + out.BrowserContextID = BrowserContextID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(out *jwriter.Writer, in CreateBrowserContextReturns) { + out.RawByte('{') + first := true + _ = first + if in.BrowserContextID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"browserContextId\":") + out.String(string(in.BrowserContextID)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateBrowserContextReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget21(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateBrowserContextReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget21(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(in *jlexer.Lexer, out *CreateBrowserContextParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(out *jwriter.Writer, in CreateBrowserContextParams) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget22(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget22(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(in *jlexer.Lexer, out *CloseTargetReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(out *jwriter.Writer, in CloseTargetReturns) { + out.RawByte('{') + first := true + _ = first + if in.Success { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"success\":") + out.Bool(bool(in.Success)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CloseTargetReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CloseTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget23(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CloseTargetReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CloseTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget23(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(in *jlexer.Lexer, out *CloseTargetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "targetId": + out.TargetID = ID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(out *jwriter.Writer, in CloseTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CloseTargetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget24(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CloseTargetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget24(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(in *jlexer.Lexer, out *AttachToTargetReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + 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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(out *jwriter.Writer, in AttachToTargetReturns) { + out.RawByte('{') + first := true + _ = first + if in.Success { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"success\":") + out.Bool(bool(in.Success)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AttachToTargetReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AttachToTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget25(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AttachToTargetReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AttachToTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget25(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(in *jlexer.Lexer, out *AttachToTargetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "targetId": + out.TargetID = ID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(out *jwriter.Writer, in AttachToTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v AttachToTargetParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget26(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget26(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(in *jlexer.Lexer, out *ActivateTargetParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "targetId": + out.TargetID = ID(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget27(out *jwriter.Writer, in ActivateTargetParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"targetId\":") + out.String(string(in.TargetID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v ActivateTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventTargetCreated) MarshalEasyJSON(w *jwriter.Writer) { +func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTarget27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventTargetCreated) UnmarshalJSON(data []byte) error { +func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventTargetCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTarget27(l, v) } diff --git a/cdp/tethering/easyjson.go b/cdp/tethering/easyjson.go index f0ec9bc..1d4cbac 100644 --- a/cdp/tethering/easyjson.go +++ b/cdp/tethering/easyjson.go @@ -17,7 +17,74 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(in *jlexer.Lexer, out *EventAccepted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(in *jlexer.Lexer, out *UnbindParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "port": + out.Port = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(out *jwriter.Writer, in UnbindParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"port\":") + out.Int64(int64(in.Port)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v UnbindParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v UnbindParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *UnbindParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *UnbindParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering1(in *jlexer.Lexer, out *EventAccepted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -50,7 +117,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(out *jwriter.Writer, in EventAccepted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering1(out *jwriter.Writer, in EventAccepted) { out.RawByte('{') first := true _ = first @@ -75,92 +142,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventAccepted) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventAccepted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventAccepted) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventAccepted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering1(in *jlexer.Lexer, out *UnbindParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "port": - out.Port = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering1(out *jwriter.Writer, in UnbindParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"port\":") - out.Int64(int64(in.Port)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UnbindParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v UnbindParams) MarshalEasyJSON(w *jwriter.Writer) { +func (v EventAccepted) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTethering1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *UnbindParams) UnmarshalJSON(data []byte) error { +func (v *EventAccepted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UnbindParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EventAccepted) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering1(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTethering2(in *jlexer.Lexer, out *BindParams) { diff --git a/cdp/tracing/easyjson.go b/cdp/tracing/easyjson.go index a9cd7fb..a19edfa 100644 --- a/cdp/tracing/easyjson.go +++ b/cdp/tracing/easyjson.go @@ -18,7 +18,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(in *jlexer.Lexer, out *EventBufferUsage) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(in *jlexer.Lexer, out *TraceConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,12 +37,93 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(in *jlexer.Lexer, out continue } switch key { - case "percentFull": - out.PercentFull = float64(in.Float64()) - case "eventCount": - out.EventCount = float64(in.Float64()) - case "value": - out.Value = float64(in.Float64()) + case "recordMode": + (out.RecordMode).UnmarshalEasyJSON(in) + case "enableSampling": + out.EnableSampling = bool(in.Bool()) + case "enableSystrace": + out.EnableSystrace = bool(in.Bool()) + case "enableArgumentFilter": + out.EnableArgumentFilter = bool(in.Bool()) + case "includedCategories": + if in.IsNull() { + in.Skip() + out.IncludedCategories = nil + } else { + in.Delim('[') + if out.IncludedCategories == nil { + if !in.IsDelim(']') { + out.IncludedCategories = make([]string, 0, 4) + } else { + out.IncludedCategories = []string{} + } + } else { + out.IncludedCategories = (out.IncludedCategories)[:0] + } + for !in.IsDelim(']') { + var v1 string + v1 = string(in.String()) + out.IncludedCategories = append(out.IncludedCategories, v1) + in.WantComma() + } + in.Delim(']') + } + case "excludedCategories": + if in.IsNull() { + in.Skip() + out.ExcludedCategories = nil + } else { + in.Delim('[') + if out.ExcludedCategories == nil { + if !in.IsDelim(']') { + out.ExcludedCategories = make([]string, 0, 4) + } else { + out.ExcludedCategories = []string{} + } + } else { + out.ExcludedCategories = (out.ExcludedCategories)[:0] + } + for !in.IsDelim(']') { + var v2 string + v2 = string(in.String()) + out.ExcludedCategories = append(out.ExcludedCategories, v2) + in.WantComma() + } + in.Delim(']') + } + case "syntheticDelays": + if in.IsNull() { + in.Skip() + out.SyntheticDelays = nil + } else { + in.Delim('[') + if out.SyntheticDelays == nil { + if !in.IsDelim(']') { + out.SyntheticDelays = make([]string, 0, 4) + } else { + out.SyntheticDelays = []string{} + } + } else { + out.SyntheticDelays = (out.SyntheticDelays)[:0] + } + for !in.IsDelim(']') { + var v3 string + v3 = string(in.String()) + out.SyntheticDelays = append(out.SyntheticDelays, v3) + in.WantComma() + } + in.Delim(']') + } + case "memoryDumpConfig": + if in.IsNull() { + in.Skip() + out.MemoryDumpConfig = nil + } else { + if out.MemoryDumpConfig == nil { + out.MemoryDumpConfig = new(MemoryDumpConfig) + } + (*out.MemoryDumpConfig).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -53,61 +134,138 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, in EventBufferUsage) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(out *jwriter.Writer, in TraceConfig) { out.RawByte('{') first := true _ = first - if in.PercentFull != 0 { + if in.RecordMode != "" { if !first { out.RawByte(',') } first = false - out.RawString("\"percentFull\":") - out.Float64(float64(in.PercentFull)) + out.RawString("\"recordMode\":") + (in.RecordMode).MarshalEasyJSON(out) } - if in.EventCount != 0 { + if in.EnableSampling { if !first { out.RawByte(',') } first = false - out.RawString("\"eventCount\":") - out.Float64(float64(in.EventCount)) + out.RawString("\"enableSampling\":") + out.Bool(bool(in.EnableSampling)) } - if in.Value != 0 { + if in.EnableSystrace { if !first { out.RawByte(',') } first = false - out.RawString("\"value\":") - out.Float64(float64(in.Value)) + out.RawString("\"enableSystrace\":") + out.Bool(bool(in.EnableSystrace)) + } + if in.EnableArgumentFilter { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"enableArgumentFilter\":") + out.Bool(bool(in.EnableArgumentFilter)) + } + if len(in.IncludedCategories) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"includedCategories\":") + if in.IncludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v4, v5 := range in.IncludedCategories { + if v4 > 0 { + out.RawByte(',') + } + out.String(string(v5)) + } + out.RawByte(']') + } + } + if len(in.ExcludedCategories) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"excludedCategories\":") + if in.ExcludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v6, v7 := range in.ExcludedCategories { + if v6 > 0 { + out.RawByte(',') + } + out.String(string(v7)) + } + out.RawByte(']') + } + } + if len(in.SyntheticDelays) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"syntheticDelays\":") + if in.SyntheticDelays == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v8, v9 := range in.SyntheticDelays { + if v8 > 0 { + out.RawByte(',') + } + out.String(string(v9)) + } + out.RawByte(']') + } + } + if in.MemoryDumpConfig != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"memoryDumpConfig\":") + if in.MemoryDumpConfig == nil { + out.RawString("null") + } else { + (*in.MemoryDumpConfig).MarshalEasyJSON(out) + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventBufferUsage) MarshalJSON() ([]byte, error) { +func (v TraceConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventBufferUsage) MarshalEasyJSON(w *jwriter.Writer) { +func (v TraceConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventBufferUsage) UnmarshalJSON(data []byte) error { +func (v *TraceConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventBufferUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *TraceConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(in *jlexer.Lexer, out *EventTracingComplete) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(in *jlexer.Lexer, out *StartParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -126,8 +284,20 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(in *jlexer.Lexer, out continue } switch key { - case "stream": - out.Stream = io.StreamHandle(in.String()) + case "bufferUsageReportingInterval": + out.BufferUsageReportingInterval = float64(in.Float64()) + case "transferMode": + (out.TransferMode).UnmarshalEasyJSON(in) + case "traceConfig": + if in.IsNull() { + in.Skip() + out.TraceConfig = nil + } else { + if out.TraceConfig == nil { + out.TraceConfig = new(TraceConfig) + } + (*out.TraceConfig).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -138,209 +308,65 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing1(out *jwriter.Writer, in EventTracingComplete) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing1(out *jwriter.Writer, in StartParams) { out.RawByte('{') first := true _ = first - if in.Stream != "" { + if in.BufferUsageReportingInterval != 0 { if !first { out.RawByte(',') } first = false - out.RawString("\"stream\":") - out.String(string(in.Stream)) + out.RawString("\"bufferUsageReportingInterval\":") + out.Float64(float64(in.BufferUsageReportingInterval)) + } + if in.TransferMode != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"transferMode\":") + (in.TransferMode).MarshalEasyJSON(out) + } + if in.TraceConfig != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"traceConfig\":") + if in.TraceConfig == nil { + out.RawString("null") + } else { + (*in.TraceConfig).MarshalEasyJSON(out) + } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v EventTracingComplete) MarshalJSON() ([]byte, error) { +func (v StartParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventTracingComplete) MarshalEasyJSON(w *jwriter.Writer) { +func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *EventTracingComplete) UnmarshalJSON(data []byte) error { +func (v *StartParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventTracingComplete) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing1(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(in *jlexer.Lexer, out *EventDataCollected) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.Value = make([]easyjson.RawMessage, 0, 2) - } else { - out.Value = []easyjson.RawMessage{} - } - for !in.IsDelim(']') { - var v1 easyjson.RawMessage - (v1).UnmarshalEasyJSON(in) - out.Value = append(out.Value, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(out *jwriter.Writer, in EventDataCollected) { - out.RawByte('{') - first := true - _ = first - if len(in.Value) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"value\":") - if in.Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Value { - if v2 > 0 { - out.RawByte(',') - } - (v3).MarshalEasyJSON(out) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventDataCollected) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventDataCollected) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventDataCollected) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventDataCollected) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(in *jlexer.Lexer, out *RecordClockSyncMarkerParams) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "syncId": - out.SyncID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(out *jwriter.Writer, in RecordClockSyncMarkerParams) { - out.RawByte('{') - first := true - _ = first - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"syncId\":") - out.String(string(in.SyncID)) - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RecordClockSyncMarkerParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RecordClockSyncMarkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RecordClockSyncMarkerParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RecordClockSyncMarkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(in *jlexer.Lexer, out *RequestMemoryDumpReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(in *jlexer.Lexer, out *RequestMemoryDumpReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -373,7 +399,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(out *jwriter.Writer, in RequestMemoryDumpReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(out *jwriter.Writer, in RequestMemoryDumpReturns) { out.RawByte('{') first := true _ = first @@ -399,27 +425,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RequestMemoryDumpReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestMemoryDumpReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestMemoryDumpReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RequestMemoryDumpReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing5(in *jlexer.Lexer, out *RequestMemoryDumpParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(in *jlexer.Lexer, out *RequestMemoryDumpParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -448,7 +474,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing5(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(out *jwriter.Writer, in RequestMemoryDumpParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(out *jwriter.Writer, in RequestMemoryDumpParams) { out.RawByte('{') first := true _ = first @@ -458,24 +484,150 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RequestMemoryDumpParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RequestMemoryDumpParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RequestMemoryDumpParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RequestMemoryDumpParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(in *jlexer.Lexer, out *RecordClockSyncMarkerParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "syncId": + out.SyncID = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(out *jwriter.Writer, in RecordClockSyncMarkerParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"syncId\":") + out.String(string(in.SyncID)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v RecordClockSyncMarkerParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v RecordClockSyncMarkerParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing4(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *RecordClockSyncMarkerParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *RecordClockSyncMarkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing4(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing5(in *jlexer.Lexer, out *MemoryDumpConfig) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(out *jwriter.Writer, in MemoryDumpConfig) { + out.RawByte('{') + first := true + _ = first + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v MemoryDumpConfig) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v MemoryDumpConfig) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *MemoryDumpConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RequestMemoryDumpParams) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *MemoryDumpConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing5(l, v) } func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing6(in *jlexer.Lexer, out *GetCategoriesReturns) { @@ -503,15 +655,19 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing6(in *jlexer.Lexer, out out.Categories = nil } else { in.Delim('[') - if !in.IsDelim(']') { - out.Categories = make([]string, 0, 4) + if out.Categories == nil { + if !in.IsDelim(']') { + out.Categories = make([]string, 0, 4) + } else { + out.Categories = []string{} + } } else { - out.Categories = []string{} + out.Categories = (out.Categories)[:0] } for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Categories = append(out.Categories, v4) + var v10 string + v10 = string(in.String()) + out.Categories = append(out.Categories, v10) in.WantComma() } in.Delim(']') @@ -540,11 +696,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing6(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v5, v6 := range in.Categories { - if v5 > 0 { + for v11, v12 := range in.Categories { + if v11 > 0 { out.RawByte(',') } - out.String(string(v6)) + out.String(string(v12)) } out.RawByte(']') } @@ -634,7 +790,266 @@ func (v *GetCategoriesParams) UnmarshalJSON(data []byte) error { func (v *GetCategoriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(in *jlexer.Lexer, out *EndParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(in *jlexer.Lexer, out *EventTracingComplete) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "stream": + out.Stream = io.StreamHandle(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(out *jwriter.Writer, in EventTracingComplete) { + out.RawByte('{') + first := true + _ = first + if in.Stream != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"stream\":") + out.String(string(in.Stream)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventTracingComplete) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventTracingComplete) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventTracingComplete) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventTracingComplete) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(in *jlexer.Lexer, out *EventDataCollected) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "value": + if in.IsNull() { + in.Skip() + out.Value = nil + } else { + in.Delim('[') + if out.Value == nil { + if !in.IsDelim(']') { + out.Value = make([]easyjson.RawMessage, 0, 2) + } else { + out.Value = []easyjson.RawMessage{} + } + } else { + out.Value = (out.Value)[:0] + } + for !in.IsDelim(']') { + var v13 easyjson.RawMessage + (v13).UnmarshalEasyJSON(in) + out.Value = append(out.Value, v13) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(out *jwriter.Writer, in EventDataCollected) { + out.RawByte('{') + first := true + _ = first + if len(in.Value) != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + if in.Value == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Value { + if v14 > 0 { + out.RawByte(',') + } + (v15).MarshalEasyJSON(out) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventDataCollected) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventDataCollected) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventDataCollected) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventDataCollected) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(in *jlexer.Lexer, out *EventBufferUsage) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "percentFull": + out.PercentFull = float64(in.Float64()) + case "eventCount": + out.EventCount = float64(in.Float64()) + case "value": + out.Value = float64(in.Float64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(out *jwriter.Writer, in EventBufferUsage) { + out.RawByte('{') + first := true + _ = first + if in.PercentFull != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"percentFull\":") + out.Float64(float64(in.PercentFull)) + } + if in.EventCount != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"eventCount\":") + out.Float64(float64(in.EventCount)) + } + if in.Value != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.Float64(float64(in.Value)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventBufferUsage) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventBufferUsage) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventBufferUsage) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventBufferUsage) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing11(in *jlexer.Lexer, out *EndParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -663,7 +1078,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(out *jwriter.Writer, in EndParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing11(out *jwriter.Writer, in EndParams) { out.RawByte('{') first := true _ = first @@ -672,419 +1087,24 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EndParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EndParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing8(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EndParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EndParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing8(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(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 { - case "bufferUsageReportingInterval": - out.BufferUsageReportingInterval = float64(in.Float64()) - case "transferMode": - (out.TransferMode).UnmarshalEasyJSON(in) - case "traceConfig": - if in.IsNull() { - in.Skip() - out.TraceConfig = nil - } else { - if out.TraceConfig == nil { - out.TraceConfig = new(TraceConfig) - } - (*out.TraceConfig).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(out *jwriter.Writer, in StartParams) { - out.RawByte('{') - first := true - _ = first - if in.BufferUsageReportingInterval != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"bufferUsageReportingInterval\":") - out.Float64(float64(in.BufferUsageReportingInterval)) - } - if in.TransferMode != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"transferMode\":") - (in.TransferMode).MarshalEasyJSON(out) - } - if in.TraceConfig != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"traceConfig\":") - if in.TraceConfig == nil { - out.RawString("null") - } else { - (*in.TraceConfig).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StartParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StartParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing9(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StartParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing9(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(in *jlexer.Lexer, out *TraceConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeString() - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "recordMode": - (out.RecordMode).UnmarshalEasyJSON(in) - case "enableSampling": - out.EnableSampling = bool(in.Bool()) - case "enableSystrace": - out.EnableSystrace = bool(in.Bool()) - case "enableArgumentFilter": - out.EnableArgumentFilter = bool(in.Bool()) - case "includedCategories": - if in.IsNull() { - in.Skip() - out.IncludedCategories = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.IncludedCategories = make([]string, 0, 4) - } else { - out.IncludedCategories = []string{} - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.IncludedCategories = append(out.IncludedCategories, v7) - in.WantComma() - } - in.Delim(']') - } - case "excludedCategories": - if in.IsNull() { - in.Skip() - out.ExcludedCategories = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.ExcludedCategories = make([]string, 0, 4) - } else { - out.ExcludedCategories = []string{} - } - for !in.IsDelim(']') { - var v8 string - v8 = string(in.String()) - out.ExcludedCategories = append(out.ExcludedCategories, v8) - in.WantComma() - } - in.Delim(']') - } - case "syntheticDelays": - if in.IsNull() { - in.Skip() - out.SyntheticDelays = nil - } else { - in.Delim('[') - if !in.IsDelim(']') { - out.SyntheticDelays = make([]string, 0, 4) - } else { - out.SyntheticDelays = []string{} - } - for !in.IsDelim(']') { - var v9 string - v9 = string(in.String()) - out.SyntheticDelays = append(out.SyntheticDelays, v9) - in.WantComma() - } - in.Delim(']') - } - case "memoryDumpConfig": - if in.IsNull() { - in.Skip() - out.MemoryDumpConfig = nil - } else { - if out.MemoryDumpConfig == nil { - out.MemoryDumpConfig = new(MemoryDumpConfig) - } - (*out.MemoryDumpConfig).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(out *jwriter.Writer, in TraceConfig) { - out.RawByte('{') - first := true - _ = first - if in.RecordMode != "" { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"recordMode\":") - (in.RecordMode).MarshalEasyJSON(out) - } - if in.EnableSampling { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enableSampling\":") - out.Bool(bool(in.EnableSampling)) - } - if in.EnableSystrace { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enableSystrace\":") - out.Bool(bool(in.EnableSystrace)) - } - if in.EnableArgumentFilter { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"enableArgumentFilter\":") - out.Bool(bool(in.EnableArgumentFilter)) - } - if len(in.IncludedCategories) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"includedCategories\":") - if in.IncludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v10, v11 := range in.IncludedCategories { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if len(in.ExcludedCategories) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"excludedCategories\":") - if in.ExcludedCategories == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v12, v13 := range in.ExcludedCategories { - if v12 > 0 { - out.RawByte(',') - } - out.String(string(v13)) - } - out.RawByte(']') - } - } - if len(in.SyntheticDelays) != 0 { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"syntheticDelays\":") - if in.SyntheticDelays == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v14, v15 := range in.SyntheticDelays { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) - } - out.RawByte(']') - } - } - if in.MemoryDumpConfig != nil { - if !first { - out.RawByte(',') - } - first = false - out.RawString("\"memoryDumpConfig\":") - if in.MemoryDumpConfig == nil { - out.RawString("null") - } else { - (*in.MemoryDumpConfig).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TraceConfig) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TraceConfig) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing10(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TraceConfig) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TraceConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing10(l, v) -} -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing11(in *jlexer.Lexer, out *MemoryDumpConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.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 easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing11(out *jwriter.Writer, in MemoryDumpConfig) { - out.RawByte('{') - first := true - _ = first - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v MemoryDumpConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v MemoryDumpConfig) MarshalEasyJSON(w *jwriter.Writer) { +func (v EndParams) MarshalEasyJSON(w *jwriter.Writer) { easyjsonC5a4559bEncodeGithubComKnqChromedpCdpTracing11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *MemoryDumpConfig) UnmarshalJSON(data []byte) error { +func (v *EndParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *MemoryDumpConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { +func (v *EndParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpTracing11(l, v) } diff --git a/cmd/chromedp-gen/README.md b/cmd/chromedp-gen/README.md index f7931a2..c77d027 100644 --- a/cmd/chromedp-gen/README.md +++ b/cmd/chromedp-gen/README.md @@ -11,46 +11,28 @@ Run [`update.sh`](update.sh) to retrieve and combine the latest [`js_protocol.json`](https://chromium.googlesource.com/v8/v8/+/master/src/inspector/js_protocol.json) from the [Chromium source tree](https://chromium.googlesource.com/) into [`protocol.json`](protocol.json). -## Installing quicktemplate and easyjson +## Installing dependencies -`chromedp-gen` uses [quicktemplate](https://github.com/valyala/quicktemplate) for -code generation templates, and uses [easyjson](https://github.com/mailru/easyjson) -for JSON marshaling/unmarshaling. +`chromedp-gen` uses the cli tools [qtc](https://github.com/valyala/quicktemplate) for +code generation templates, [easyjson](https://github.com/mailru/easyjson) for +JSON marshaling/unmarshaling, and [goimports](https://golang.org/x/tools/cmd/goimports) +for formatting generated code (and fixing import statements). -Unfortunately, both of these projects cannot be used directly out of the box, -as the versions used by `chromedp-gen` make use of a couple minor modifications: - -1. quicktemplate has been modified to recognize '{% end %}' templates -2. easyjson has been modified to always output generated code in the same order - (previously, the mailru version did not always generate the same output, as - a couple points in the code were being affected by the Go map/key order - issue). - -I ([kenshaw](https://github.com/kenshaw)) have put in issues/pull requests to -both projects in the hope that the changes I've made get merged and/or fixed -otherwise. - -For now, the exact versions that are in use with `chromedp-gen` can be obtained -on my personal Github account: - -* [github.com/kenshaw/quicktemplate](https://github.com/kenshaw/quicktemplate) -* [github.com/kenshaw/easyjson](https://github.com/kenshaw/easyjson) - -The commands (and their associated dependencies) can be installed in the usual -Go way: +The cli commands (and their associated dependencies) can be installed in the +usual Go way: ```sh -go get -u github.com/kenshaw/quicktemplate/qtc github.com/kenshaw/easyjson/easyjson +go get -u github.com/valyala/quicktemplate/qtc github.com/mailru/easyjson/easyjson golang.org/x/tools/cmd/goimports ``` -Each package provides a command (`qtc` and `easyjson`, respectively) that need -to be available on the path for the `chromedp-gen` command to work. +Please make sure that `$GOPATH/bin` is somewhere on your `$PATH`. ## Generating types for chromedp -Assuming the `qtc` and `easyjson` commands are available (see above), one can -then run the [`build.sh`](build.sh) which will handle generating template -files, and building/invoking the `chromedp-gen` command. +Assuming the `qtc`, `easyjson`, and `goimports` commands are available on +`$PATH` (see above), one can then run the [`build.sh`](build.sh) which will +handle generating template files, and building/invoking the `chromedp-gen` +command. ## Reference Output diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 8b9d64f..df04b17 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -9902,6 +9902,7 @@ "longLayout", "blockedEvent", "blockedParser", + "discouragedAPIUse", "handler", "recurringHandler" ], diff --git a/cmd/chromedp-gen/templates/domain.qtpl b/cmd/chromedp-gen/templates/domain.qtpl index 6c7b840..80486d2 100644 --- a/cmd/chromedp-gen/templates/domain.qtpl +++ b/cmd/chromedp-gen/templates/domain.qtpl @@ -21,7 +21,7 @@ {%s= CommandFuncTemplate(c, d, domains) %} {% code /* add param funcs (only if it has parameters and a returns). */ %} -{% if len(c.Parameters) != 0 %}{% for _, p := range c.Parameters %}{% if !p.Optional %}{% continue %}{% end %} +{% if len(c.Parameters) != 0 %}{% for _, p := range c.Parameters %}{% if !p.Optional %}{% continue %}{% endif %} {%s= CommandOptionFuncTemplate(p, c, d, domains) %} {% endfor %}{% endif %} @@ -46,8 +46,8 @@ %} {%s= formatComment(c.GetDescription(), "", cmdName + " ") %}{% if len(c.Parameters) > 0 %} // -// parameters:{% for _, p := range c.Parameters %}{% if p.Optional %}{% continue %}{% end %} -// {%s= p.String() %}{% if p.Optional %} (optional){% end %}{% endfor %}{% endif %} +// parameters:{% for _, p := range c.Parameters %}{% if p.Optional %}{% continue %}{% endif %} +// {%s= p.String() %}{% if p.Optional %} (optional){% endif %}{% endfor %}{% endif %} func {%s= cmdName %}({%s= c.ParamList(d, domains, false) %}) *{%s= typ %}{ return &{%s= typ %}{{% for _, t := range c.Parameters %}{% if !t.Optional %} {%s= t.GoName(false) %}: {%s= t.GoName(true) %},{% endif %}{% endfor %} @@ -111,7 +111,7 @@ func (p {%s= typ %}) {%s= optName %}({%s= v %} {%s= t.GoType(d, domains) %}) *{% // Do executes {%s= c.ProtoName(d) %} against the provided context and // target handler.{% if !hasEmptyRet %} // -// returns:{% for _, p := range c.Returns %}{% if p.Name == internal.Base64EncodedParamName %}{% continue %}{% end %} +// returns:{% for _, p := range c.Returns %}{% if p.Name == internal.Base64EncodedParamName %}{% continue %}{% endif %} // {%s= p.String() %}{% endfor %}{% endif %} func (p *{%s= typ %}) Do(ctxt context.Context, h cdp.Handler) ({%s= retTypeList %}err error) {{% if hasEmptyRet %} return h.Execute(ctxt, cdp.{%s= c.CommandMethodType(d) %}, {%s= pval %}, nil){% else %} diff --git a/cmd/chromedp-gen/templates/extra.qtpl b/cmd/chromedp-gen/templates/extra.qtpl index 0136ca8..6a4552a 100644 --- a/cmd/chromedp-gen/templates/extra.qtpl +++ b/cmd/chromedp-gen/templates/extra.qtpl @@ -186,7 +186,7 @@ func (t *{%s= typ %}) UnmarshalEasyJSON(in *jlexer.Lexer) { in.AddError(err) } {% endif %} - *t = {%s= typ %}({% if parseFunc != "" %}v{% else %}buf{% end %}) + *t = {%s= typ %}({% if parseFunc != "" %}v{% else %}buf{% endif %}) } // UnmarshalJSON satisfies json.Unmarshaler. diff --git a/cmd/chromedp-gen/templates/file.qtpl b/cmd/chromedp-gen/templates/file.qtpl index 6f059f3..b9537cd 100644 --- a/cmd/chromedp-gen/templates/file.qtpl +++ b/cmd/chromedp-gen/templates/file.qtpl @@ -11,7 +11,7 @@ // {% if desc := d.Description; desc != "" %} {%s= formatComment(desc, "", "") %} //{% endif %} -// Generated by the chromedp-gen command.{% end %} +// Generated by the chromedp-gen command.{% endif %} package {%s= pkgName %} // AUTOGENERATED. DO NOT EDIT. @@ -28,7 +28,7 @@ package {%s= pkgName %} import ({% for _, k := range keys %}{% code v := m[k] %} - {% if k != v %}{%s= v %} {% end %}"{%s= k %}"{% endfor %} + {% if k != v %}{%s= v %} {% endif %}"{%s= k %}"{% endfor %} ) {% endfunc %}