| // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. |
| |
| package target |
| |
| import ( |
| json "encoding/json" |
| cdp "github.com/chromedp/cdproto/cdp" |
| easyjson "github.com/mailru/easyjson" |
| jlexer "github.com/mailru/easyjson/jlexer" |
| jwriter "github.com/mailru/easyjson/jwriter" |
| ) |
| |
| // suppress unused package warning |
| var ( |
| _ *json.RawMessage |
| _ *jlexer.Lexer |
| _ *jwriter.Writer |
| _ easyjson.Marshaler |
| ) |
| |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget(out *jwriter.Writer, in SetRemoteLocationsParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"locations\":" |
| out.RawString(prefix[1:]) |
| 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{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetRemoteLocationsParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetRemoteLocationsParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetRemoteLocationsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget1(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget1(out *jwriter.Writer, in SetDiscoverTargetsParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"discover\":" |
| out.RawString(prefix[1:]) |
| out.Bool(bool(in.Discover)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetDiscoverTargetsParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget1(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetDiscoverTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget1(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetDiscoverTargetsParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget1(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetDiscoverTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget1(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget2(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()) |
| case "flatten": |
| out.Flatten = bool(in.Bool()) |
| case "windowOpen": |
| out.WindowOpen = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget2(out *jwriter.Writer, in SetAutoAttachParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"autoAttach\":" |
| out.RawString(prefix[1:]) |
| out.Bool(bool(in.AutoAttach)) |
| } |
| { |
| const prefix string = ",\"waitForDebuggerOnStart\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.WaitForDebuggerOnStart)) |
| } |
| if in.Flatten { |
| const prefix string = ",\"flatten\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.Flatten)) |
| } |
| if in.WindowOpen { |
| const prefix string = ",\"windowOpen\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.WindowOpen)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v SetAutoAttachParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget2(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v SetAutoAttachParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget2(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget2(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget2(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(in *jlexer.Lexer, out *RemoteLocation) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| continue |
| } |
| switch key { |
| case "host": |
| out.Host = string(in.String()) |
| case "port": |
| out.Port = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(out *jwriter.Writer, in RemoteLocation) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"host\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.Host)) |
| } |
| { |
| const prefix string = ",\"port\":" |
| out.RawString(prefix) |
| out.Int64(int64(in.Port)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v RemoteLocation) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v RemoteLocation) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *RemoteLocation) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *RemoteLocation) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(in *jlexer.Lexer, out *Info) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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()) |
| case "type": |
| out.Type = string(in.String()) |
| case "title": |
| out.Title = string(in.String()) |
| case "url": |
| out.URL = string(in.String()) |
| case "attached": |
| out.Attached = bool(in.Bool()) |
| case "openerId": |
| out.OpenerID = ID(in.String()) |
| case "browserContextId": |
| out.BrowserContextID = cdp.BrowserContextID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(out *jwriter.Writer, in Info) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| { |
| const prefix string = ",\"type\":" |
| out.RawString(prefix) |
| out.String(string(in.Type)) |
| } |
| { |
| const prefix string = ",\"title\":" |
| out.RawString(prefix) |
| out.String(string(in.Title)) |
| } |
| { |
| const prefix string = ",\"url\":" |
| out.RawString(prefix) |
| out.String(string(in.URL)) |
| } |
| { |
| const prefix string = ",\"attached\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.Attached)) |
| } |
| if in.OpenerID != "" { |
| const prefix string = ",\"openerId\":" |
| out.RawString(prefix) |
| out.String(string(in.OpenerID)) |
| } |
| if in.BrowserContextID != "" { |
| const prefix string = ",\"browserContextId\":" |
| out.RawString(prefix) |
| out.String(string(in.BrowserContextID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v Info) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v Info) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *Info) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *Info) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(in *jlexer.Lexer, out *GetTargetsReturns) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| continue |
| } |
| switch key { |
| case "targetInfos": |
| if in.IsNull() { |
| in.Skip() |
| out.TargetInfos = nil |
| } else { |
| in.Delim('[') |
| if out.TargetInfos == nil { |
| if !in.IsDelim(']') { |
| out.TargetInfos = make([]*Info, 0, 8) |
| } else { |
| out.TargetInfos = []*Info{} |
| } |
| } else { |
| out.TargetInfos = (out.TargetInfos)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v4 *Info |
| if in.IsNull() { |
| in.Skip() |
| v4 = nil |
| } else { |
| if v4 == nil { |
| v4 = new(Info) |
| } |
| (*v4).UnmarshalEasyJSON(in) |
| } |
| out.TargetInfos = append(out.TargetInfos, v4) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(out *jwriter.Writer, in GetTargetsReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if len(in.TargetInfos) != 0 { |
| const prefix string = ",\"targetInfos\":" |
| first = false |
| out.RawString(prefix[1:]) |
| { |
| out.RawByte('[') |
| for v5, v6 := range in.TargetInfos { |
| 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 GetTargetsReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetTargetsReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetTargetsReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetTargetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(in *jlexer.Lexer, out *GetTargetsParams) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(out *jwriter.Writer, in GetTargetsParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetTargetsParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetTargetsParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(in *jlexer.Lexer, out *GetTargetInfoReturns) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| 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) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(out *jwriter.Writer, in GetTargetInfoReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.TargetInfo != nil { |
| const prefix string = ",\"targetInfo\":" |
| first = false |
| out.RawString(prefix[1:]) |
| (*in.TargetInfo).MarshalEasyJSON(out) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetTargetInfoReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetTargetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetTargetInfoReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetTargetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(in *jlexer.Lexer, out *GetTargetInfoParams) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(out *jwriter.Writer, in GetTargetInfoParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.TargetID != "" { |
| const prefix string = ",\"targetId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetTargetInfoParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetTargetInfoParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetTargetInfoParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetTargetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(in *jlexer.Lexer, out *GetBrowserContextsReturns) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| continue |
| } |
| switch key { |
| case "browserContextIds": |
| if in.IsNull() { |
| in.Skip() |
| out.BrowserContextIds = nil |
| } else { |
| in.Delim('[') |
| if out.BrowserContextIds == nil { |
| if !in.IsDelim(']') { |
| out.BrowserContextIds = make([]cdp.BrowserContextID, 0, 4) |
| } else { |
| out.BrowserContextIds = []cdp.BrowserContextID{} |
| } |
| } else { |
| out.BrowserContextIds = (out.BrowserContextIds)[:0] |
| } |
| for !in.IsDelim(']') { |
| var v7 cdp.BrowserContextID |
| v7 = cdp.BrowserContextID(in.String()) |
| out.BrowserContextIds = append(out.BrowserContextIds, v7) |
| in.WantComma() |
| } |
| in.Delim(']') |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(out *jwriter.Writer, in GetBrowserContextsReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if len(in.BrowserContextIds) != 0 { |
| const prefix string = ",\"browserContextIds\":" |
| first = false |
| out.RawString(prefix[1:]) |
| { |
| out.RawByte('[') |
| for v8, v9 := range in.BrowserContextIds { |
| if v8 > 0 { |
| out.RawByte(',') |
| } |
| out.String(string(v9)) |
| } |
| out.RawByte(']') |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetBrowserContextsReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetBrowserContextsReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetBrowserContextsReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetBrowserContextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(in *jlexer.Lexer, out *GetBrowserContextsParams) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(out *jwriter.Writer, in GetBrowserContextsParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v GetBrowserContextsParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v GetBrowserContextsParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *GetBrowserContextsParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *GetBrowserContextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(in *jlexer.Lexer, out *ExposeDevToolsProtocolParams) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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()) |
| case "bindingName": |
| out.BindingName = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(out *jwriter.Writer, in ExposeDevToolsProtocolParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| if in.BindingName != "" { |
| const prefix string = ",\"bindingName\":" |
| out.RawString(prefix) |
| out.String(string(in.BindingName)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ExposeDevToolsProtocolParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ExposeDevToolsProtocolParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ExposeDevToolsProtocolParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ExposeDevToolsProtocolParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(in *jlexer.Lexer, out *EventTargetInfoChanged) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| 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) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(out *jwriter.Writer, in EventTargetInfoChanged) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetInfo\":" |
| out.RawString(prefix[1:]) |
| if in.TargetInfo == nil { |
| out.RawString("null") |
| } else { |
| (*in.TargetInfo).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventTargetInfoChanged) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventTargetInfoChanged) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventTargetInfoChanged) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventTargetInfoChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(in *jlexer.Lexer, out *EventTargetDestroyed) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(out *jwriter.Writer, in EventTargetDestroyed) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventTargetDestroyed) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventTargetDestroyed) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventTargetDestroyed) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventTargetDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(in *jlexer.Lexer, out *EventTargetCreated) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| in.Skip() |
| return |
| } |
| in.Delim('{') |
| for !in.IsDelim('}') { |
| key := in.UnsafeString() |
| in.WantColon() |
| if in.IsNull() { |
| in.Skip() |
| in.WantComma() |
| 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) |
| } |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(out *jwriter.Writer, in EventTargetCreated) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetInfo\":" |
| out.RawString(prefix[1:]) |
| if in.TargetInfo == nil { |
| out.RawString("null") |
| } else { |
| (*in.TargetInfo).MarshalEasyJSON(out) |
| } |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventTargetCreated) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventTargetCreated) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventTargetCreated) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventTargetCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(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 { |
| case "targetId": |
| out.TargetID = ID(in.String()) |
| case "status": |
| out.Status = string(in.String()) |
| case "errorCode": |
| out.ErrorCode = int64(in.Int64()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(out *jwriter.Writer, in EventTargetCrashed) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| { |
| const prefix string = ",\"status\":" |
| out.RawString(prefix) |
| out.String(string(in.Status)) |
| } |
| { |
| const prefix string = ",\"errorCode\":" |
| out.RawString(prefix) |
| out.Int64(int64(in.ErrorCode)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventTargetCrashed) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventTargetCrashed) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventTargetCrashed) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventTargetCrashed) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(in *jlexer.Lexer, out *EventReceivedMessageFromTarget) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 = SessionID(in.String()) |
| case "message": |
| out.Message = string(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(out *jwriter.Writer, in EventReceivedMessageFromTarget) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"sessionId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| { |
| const prefix string = ",\"message\":" |
| out.RawString(prefix) |
| out.String(string(in.Message)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventReceivedMessageFromTarget) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventReceivedMessageFromTarget) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventReceivedMessageFromTarget) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventReceivedMessageFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(in *jlexer.Lexer, out *EventDetachedFromTarget) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 = SessionID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(out *jwriter.Writer, in EventDetachedFromTarget) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"sessionId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventDetachedFromTarget) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventDetachedFromTarget) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventDetachedFromTarget) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventDetachedFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(in *jlexer.Lexer, out *EventAttachedToTarget) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 = SessionID(in.String()) |
| case "targetInfo": |
| if in.IsNull() { |
| in.Skip() |
| out.TargetInfo = nil |
| } else { |
| if out.TargetInfo == nil { |
| out.TargetInfo = new(Info) |
| } |
| (*out.TargetInfo).UnmarshalEasyJSON(in) |
| } |
| case "waitingForDebugger": |
| out.WaitingForDebugger = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(out *jwriter.Writer, in EventAttachedToTarget) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"sessionId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| { |
| const prefix string = ",\"targetInfo\":" |
| out.RawString(prefix) |
| if in.TargetInfo == nil { |
| out.RawString("null") |
| } else { |
| (*in.TargetInfo).MarshalEasyJSON(out) |
| } |
| } |
| { |
| const prefix string = ",\"waitingForDebugger\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.WaitingForDebugger)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v EventAttachedToTarget) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v EventAttachedToTarget) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *EventAttachedToTarget) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *EventAttachedToTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(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 = cdp.BrowserContextID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(out *jwriter.Writer, in DisposeBrowserContextParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"browserContextId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.BrowserContextID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(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 "sessionId": |
| out.SessionID = SessionID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(out *jwriter.Writer, in DetachFromTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.SessionID != "" { |
| const prefix string = ",\"sessionId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v DetachFromTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(out *jwriter.Writer, in CreateTargetReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.TargetID != "" { |
| const prefix string = ",\"targetId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateTargetReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateTargetReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(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 = cdp.BrowserContextID(in.String()) |
| case "enableBeginFrameControl": |
| out.EnableBeginFrameControl = bool(in.Bool()) |
| case "newWindow": |
| out.NewWindow = bool(in.Bool()) |
| case "background": |
| out.Background = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(out *jwriter.Writer, in CreateTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"url\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.URL)) |
| } |
| if in.Width != 0 { |
| const prefix string = ",\"width\":" |
| out.RawString(prefix) |
| out.Int64(int64(in.Width)) |
| } |
| if in.Height != 0 { |
| const prefix string = ",\"height\":" |
| out.RawString(prefix) |
| out.Int64(int64(in.Height)) |
| } |
| if in.BrowserContextID != "" { |
| const prefix string = ",\"browserContextId\":" |
| out.RawString(prefix) |
| out.String(string(in.BrowserContextID)) |
| } |
| if in.EnableBeginFrameControl { |
| const prefix string = ",\"enableBeginFrameControl\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.EnableBeginFrameControl)) |
| } |
| if in.NewWindow { |
| const prefix string = ",\"newWindow\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.NewWindow)) |
| } |
| if in.Background { |
| const prefix string = ",\"background\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.Background)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(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 = cdp.BrowserContextID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(out *jwriter.Writer, in CreateBrowserContextReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.BrowserContextID != "" { |
| const prefix string = ",\"browserContextId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.BrowserContextID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateBrowserContextReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateBrowserContextReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(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 { |
| case "disposeOnDetach": |
| out.DisposeOnDetach = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(out *jwriter.Writer, in CreateBrowserContextParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.DisposeOnDetach { |
| const prefix string = ",\"disposeOnDetach\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.Bool(bool(in.DisposeOnDetach)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(out *jwriter.Writer, in CloseTargetReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.Success { |
| const prefix string = ",\"success\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.Bool(bool(in.Success)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CloseTargetReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CloseTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CloseTargetReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CloseTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(out *jwriter.Writer, in CloseTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v CloseTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *CloseTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(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 "sessionId": |
| out.SessionID = SessionID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(out *jwriter.Writer, in AttachToTargetReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.SessionID != "" { |
| const prefix string = ",\"sessionId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AttachToTargetReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AttachToTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AttachToTargetReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AttachToTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(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()) |
| case "flatten": |
| out.Flatten = bool(in.Bool()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(out *jwriter.Writer, in AttachToTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| if in.Flatten { |
| const prefix string = ",\"flatten\":" |
| out.RawString(prefix) |
| out.Bool(bool(in.Flatten)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AttachToTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(in *jlexer.Lexer, out *AttachToBrowserTargetReturns) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.Consumed() |
| } |
| 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 = SessionID(in.String()) |
| default: |
| in.SkipRecursive() |
| } |
| in.WantComma() |
| } |
| in.Delim('}') |
| if isTopLevel { |
| in.Consumed() |
| } |
| } |
| func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(out *jwriter.Writer, in AttachToBrowserTargetReturns) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| if in.SessionID != "" { |
| const prefix string = ",\"sessionId\":" |
| first = false |
| out.RawString(prefix[1:]) |
| out.String(string(in.SessionID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AttachToBrowserTargetReturns) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AttachToBrowserTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AttachToBrowserTargetReturns) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AttachToBrowserTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(in *jlexer.Lexer, out *AttachToBrowserTargetParams) { |
| isTopLevel := in.IsStart() |
| if in.IsNull() { |
| if isTopLevel { |
| in.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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(out *jwriter.Writer, in AttachToBrowserTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v AttachToBrowserTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v AttachToBrowserTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *AttachToBrowserTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *AttachToBrowserTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(l, v) |
| } |
| func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(out *jwriter.Writer, in ActivateTargetParams) { |
| out.RawByte('{') |
| first := true |
| _ = first |
| { |
| const prefix string = ",\"targetId\":" |
| out.RawString(prefix[1:]) |
| out.String(string(in.TargetID)) |
| } |
| out.RawByte('}') |
| } |
| |
| // MarshalJSON supports json.Marshaler interface |
| func (v ActivateTargetParams) MarshalJSON() ([]byte, error) { |
| w := jwriter.Writer{} |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(&w, v) |
| return w.Buffer.BuildBytes(), w.Error |
| } |
| |
| // MarshalEasyJSON supports easyjson.Marshaler interface |
| func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { |
| easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(w, v) |
| } |
| |
| // UnmarshalJSON supports json.Unmarshaler interface |
| func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error { |
| r := jlexer.Lexer{Data: data} |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(&r, v) |
| return r.Error() |
| } |
| |
| // UnmarshalEasyJSON supports easyjson.Unmarshaler interface |
| func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { |
| easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(l, v) |
| } |