stash/vendor/github.com/chromedp/cdproto/runtime/easyjson.go

5006 lines
122 KiB
Go

// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package runtime
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime(in *jlexer.Lexer, out *TerminateExecutionParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime(out *jwriter.Writer, in TerminateExecutionParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v TerminateExecutionParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v TerminateExecutionParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *TerminateExecutionParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TerminateExecutionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime1(in *jlexer.Lexer, out *StackTraceID) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "id":
out.ID = string(in.String())
case "debuggerId":
out.DebuggerID = UniqueDebuggerID(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime1(out *jwriter.Writer, in StackTraceID) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"id\":"
out.RawString(prefix[1:])
out.String(string(in.ID))
}
if in.DebuggerID != "" {
const prefix string = ",\"debuggerId\":"
out.RawString(prefix)
out.String(string(in.DebuggerID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StackTraceID) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime1(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StackTraceID) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime1(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StackTraceID) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime1(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StackTraceID) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime1(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime2(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.UnsafeFieldName(false)
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 "parentId":
if in.IsNull() {
in.Skip()
out.ParentID = nil
} else {
if out.ParentID == nil {
out.ParentID = new(StackTraceID)
}
(*out.ParentID).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime2(out *jwriter.Writer, in StackTrace) {
out.RawByte('{')
first := true
_ = first
if in.Description != "" {
const prefix string = ",\"description\":"
first = false
out.RawString(prefix[1:])
out.String(string(in.Description))
}
{
const prefix string = ",\"callFrames\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
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 {
const prefix string = ",\"parent\":"
out.RawString(prefix)
(*in.Parent).MarshalEasyJSON(out)
}
if in.ParentID != nil {
const prefix string = ",\"parentId\":"
out.RawString(prefix)
(*in.ParentID).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v StackTrace) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime2(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v StackTrace) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime2(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *StackTrace) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime2(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StackTrace) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime2(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime3(in *jlexer.Lexer, out *SetMaxCallStackSizeToCaptureParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "size":
out.Size = int64(in.Int64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime3(out *jwriter.Writer, in SetMaxCallStackSizeToCaptureParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"size\":"
out.RawString(prefix[1:])
out.Int64(int64(in.Size))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetMaxCallStackSizeToCaptureParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime3(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetMaxCallStackSizeToCaptureParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime3(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetMaxCallStackSizeToCaptureParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime3(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetMaxCallStackSizeToCaptureParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime3(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime4(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime4(out *jwriter.Writer, in SetCustomObjectFormatterEnabledParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"enabled\":"
out.RawString(prefix[1:])
out.Bool(bool(in.Enabled))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v SetCustomObjectFormatterEnabledParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime4(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v SetCustomObjectFormatterEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime4(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *SetCustomObjectFormatterEnabledParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime4(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SetCustomObjectFormatterEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime4(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime5(in *jlexer.Lexer, out *RunScriptReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime5(out *jwriter.Writer, in RunScriptReturns) {
out.RawByte('{')
first := true
_ = first
if in.Result != nil {
const prefix string = ",\"result\":"
first = false
out.RawString(prefix[1:])
(*in.Result).MarshalEasyJSON(out)
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RunScriptReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime5(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RunScriptReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime5(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RunScriptReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime5(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RunScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime5(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime6(in *jlexer.Lexer, out *RunScriptParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "scriptId":
out.ScriptID = ScriptID(in.String())
case "executionContextId":
out.ExecutionContextID = ExecutionContextID(in.Int64())
case "objectGroup":
out.ObjectGroup = string(in.String())
case "silent":
out.Silent = bool(in.Bool())
case "includeCommandLineAPI":
out.IncludeCommandLineAPI = bool(in.Bool())
case "returnByValue":
out.ReturnByValue = bool(in.Bool())
case "generatePreview":
out.GeneratePreview = bool(in.Bool())
case "awaitPromise":
out.AwaitPromise = bool(in.Bool())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime6(out *jwriter.Writer, in RunScriptParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"scriptId\":"
out.RawString(prefix[1:])
out.String(string(in.ScriptID))
}
if in.ExecutionContextID != 0 {
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
if in.ObjectGroup != "" {
const prefix string = ",\"objectGroup\":"
out.RawString(prefix)
out.String(string(in.ObjectGroup))
}
if in.Silent {
const prefix string = ",\"silent\":"
out.RawString(prefix)
out.Bool(bool(in.Silent))
}
if in.IncludeCommandLineAPI {
const prefix string = ",\"includeCommandLineAPI\":"
out.RawString(prefix)
out.Bool(bool(in.IncludeCommandLineAPI))
}
if in.ReturnByValue {
const prefix string = ",\"returnByValue\":"
out.RawString(prefix)
out.Bool(bool(in.ReturnByValue))
}
if in.GeneratePreview {
const prefix string = ",\"generatePreview\":"
out.RawString(prefix)
out.Bool(bool(in.GeneratePreview))
}
if in.AwaitPromise {
const prefix string = ",\"awaitPromise\":"
out.RawString(prefix)
out.Bool(bool(in.AwaitPromise))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RunScriptParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime6(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RunScriptParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime6(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RunScriptParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime6(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RunScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime6(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime7(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime7(out *jwriter.Writer, in RunIfWaitingForDebuggerParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RunIfWaitingForDebuggerParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime7(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RunIfWaitingForDebuggerParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime7(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RunIfWaitingForDebuggerParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime7(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RunIfWaitingForDebuggerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime7(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime8(in *jlexer.Lexer, out *RemoveBindingParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "name":
out.Name = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime8(out *jwriter.Writer, in RemoveBindingParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RemoveBindingParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime8(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoveBindingParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime8(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RemoveBindingParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime8(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoveBindingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime8(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime9(in *jlexer.Lexer, out *RemoteObject) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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 "className":
out.ClassName = string(in.String())
case "value":
(out.Value).UnmarshalEasyJSON(in)
case "unserializableValue":
out.UnserializableValue = UnserializableValue(in.String())
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime9(out *jwriter.Writer, in RemoteObject) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"type\":"
out.RawString(prefix[1:])
(in.Type).MarshalEasyJSON(out)
}
if in.Subtype != "" {
const prefix string = ",\"subtype\":"
out.RawString(prefix)
(in.Subtype).MarshalEasyJSON(out)
}
if in.ClassName != "" {
const prefix string = ",\"className\":"
out.RawString(prefix)
out.String(string(in.ClassName))
}
if (in.Value).IsDefined() {
const prefix string = ",\"value\":"
out.RawString(prefix)
(in.Value).MarshalEasyJSON(out)
}
if in.UnserializableValue != "" {
const prefix string = ",\"unserializableValue\":"
out.RawString(prefix)
out.String(string(in.UnserializableValue))
}
if in.Description != "" {
const prefix string = ",\"description\":"
out.RawString(prefix)
out.String(string(in.Description))
}
if in.ObjectID != "" {
const prefix string = ",\"objectId\":"
out.RawString(prefix)
out.String(string(in.ObjectID))
}
if in.Preview != nil {
const prefix string = ",\"preview\":"
out.RawString(prefix)
(*in.Preview).MarshalEasyJSON(out)
}
if in.CustomPreview != nil {
const prefix string = ",\"customPreview\":"
out.RawString(prefix)
(*in.CustomPreview).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v RemoteObject) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime9(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v RemoteObject) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime9(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *RemoteObject) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime9(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *RemoteObject) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime9(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime10(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime10(out *jwriter.Writer, in ReleaseObjectParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"objectId\":"
out.RawString(prefix[1:])
out.String(string(in.ObjectID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ReleaseObjectParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime10(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ReleaseObjectParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime10(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ReleaseObjectParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime10(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ReleaseObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime10(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime11(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime11(out *jwriter.Writer, in ReleaseObjectGroupParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"objectGroup\":"
out.RawString(prefix[1:])
out.String(string(in.ObjectGroup))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ReleaseObjectGroupParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime11(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ReleaseObjectGroupParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime11(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ReleaseObjectGroupParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime11(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ReleaseObjectGroupParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime11(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime12(in *jlexer.Lexer, out *QueryObjectsReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "objects":
if in.IsNull() {
in.Skip()
out.Objects = nil
} else {
if out.Objects == nil {
out.Objects = new(RemoteObject)
}
(*out.Objects).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime12(out *jwriter.Writer, in QueryObjectsReturns) {
out.RawByte('{')
first := true
_ = first
if in.Objects != nil {
const prefix string = ",\"objects\":"
first = false
out.RawString(prefix[1:])
(*in.Objects).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v QueryObjectsReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime12(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v QueryObjectsReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime12(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *QueryObjectsReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime12(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QueryObjectsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime12(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime13(in *jlexer.Lexer, out *QueryObjectsParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "prototypeObjectId":
out.PrototypeObjectID = RemoteObjectID(in.String())
case "objectGroup":
out.ObjectGroup = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime13(out *jwriter.Writer, in QueryObjectsParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"prototypeObjectId\":"
out.RawString(prefix[1:])
out.String(string(in.PrototypeObjectID))
}
if in.ObjectGroup != "" {
const prefix string = ",\"objectGroup\":"
out.RawString(prefix)
out.String(string(in.ObjectGroup))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v QueryObjectsParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime13(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v QueryObjectsParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime13(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *QueryObjectsParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime13(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *QueryObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime13(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime14(in *jlexer.Lexer, out *PropertyPreview) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
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()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime14(out *jwriter.Writer, in PropertyPreview) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
{
const prefix string = ",\"type\":"
out.RawString(prefix)
(in.Type).MarshalEasyJSON(out)
}
if in.Value != "" {
const prefix string = ",\"value\":"
out.RawString(prefix)
out.String(string(in.Value))
}
if in.ValuePreview != nil {
const prefix string = ",\"valuePreview\":"
out.RawString(prefix)
(*in.ValuePreview).MarshalEasyJSON(out)
}
if in.Subtype != "" {
const prefix string = ",\"subtype\":"
out.RawString(prefix)
(in.Subtype).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v PropertyPreview) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime14(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v PropertyPreview) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime14(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *PropertyPreview) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime14(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PropertyPreview) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime14(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime15(in *jlexer.Lexer, out *PropertyDescriptor) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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)
}
case "writable":
out.Writable = bool(in.Bool())
case "get":
if in.IsNull() {
in.Skip()
out.Get = nil
} else {
if out.Get == nil {
out.Get = new(RemoteObject)
}
(*out.Get).UnmarshalEasyJSON(in)
}
case "set":
if in.IsNull() {
in.Skip()
out.Set = nil
} else {
if out.Set == nil {
out.Set = new(RemoteObject)
}
(*out.Set).UnmarshalEasyJSON(in)
}
case "configurable":
out.Configurable = bool(in.Bool())
case "enumerable":
out.Enumerable = bool(in.Bool())
case "wasThrown":
out.WasThrown = bool(in.Bool())
case "isOwn":
out.IsOwn = bool(in.Bool())
case "symbol":
if in.IsNull() {
in.Skip()
out.Symbol = nil
} else {
if out.Symbol == nil {
out.Symbol = new(RemoteObject)
}
(*out.Symbol).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime15(out *jwriter.Writer, in PropertyDescriptor) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
if in.Value != nil {
const prefix string = ",\"value\":"
out.RawString(prefix)
(*in.Value).MarshalEasyJSON(out)
}
if in.Writable {
const prefix string = ",\"writable\":"
out.RawString(prefix)
out.Bool(bool(in.Writable))
}
if in.Get != nil {
const prefix string = ",\"get\":"
out.RawString(prefix)
(*in.Get).MarshalEasyJSON(out)
}
if in.Set != nil {
const prefix string = ",\"set\":"
out.RawString(prefix)
(*in.Set).MarshalEasyJSON(out)
}
{
const prefix string = ",\"configurable\":"
out.RawString(prefix)
out.Bool(bool(in.Configurable))
}
{
const prefix string = ",\"enumerable\":"
out.RawString(prefix)
out.Bool(bool(in.Enumerable))
}
if in.WasThrown {
const prefix string = ",\"wasThrown\":"
out.RawString(prefix)
out.Bool(bool(in.WasThrown))
}
if in.IsOwn {
const prefix string = ",\"isOwn\":"
out.RawString(prefix)
out.Bool(bool(in.IsOwn))
}
if in.Symbol != nil {
const prefix string = ",\"symbol\":"
out.RawString(prefix)
(*in.Symbol).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v PropertyDescriptor) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime15(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v PropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime15(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *PropertyDescriptor) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime15(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime15(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime16(in *jlexer.Lexer, out *PrivatePropertyDescriptor) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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)
}
case "get":
if in.IsNull() {
in.Skip()
out.Get = nil
} else {
if out.Get == nil {
out.Get = new(RemoteObject)
}
(*out.Get).UnmarshalEasyJSON(in)
}
case "set":
if in.IsNull() {
in.Skip()
out.Set = nil
} else {
if out.Set == nil {
out.Set = new(RemoteObject)
}
(*out.Set).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime16(out *jwriter.Writer, in PrivatePropertyDescriptor) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
if in.Value != nil {
const prefix string = ",\"value\":"
out.RawString(prefix)
(*in.Value).MarshalEasyJSON(out)
}
if in.Get != nil {
const prefix string = ",\"get\":"
out.RawString(prefix)
(*in.Get).MarshalEasyJSON(out)
}
if in.Set != nil {
const prefix string = ",\"set\":"
out.RawString(prefix)
(*in.Set).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v PrivatePropertyDescriptor) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime16(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v PrivatePropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime16(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *PrivatePropertyDescriptor) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime16(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *PrivatePropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime16(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime17(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime17(out *jwriter.Writer, in ObjectPreview) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"type\":"
out.RawString(prefix[1:])
(in.Type).MarshalEasyJSON(out)
}
if in.Subtype != "" {
const prefix string = ",\"subtype\":"
out.RawString(prefix)
(in.Subtype).MarshalEasyJSON(out)
}
if in.Description != "" {
const prefix string = ",\"description\":"
out.RawString(prefix)
out.String(string(in.Description))
}
{
const prefix string = ",\"overflow\":"
out.RawString(prefix)
out.Bool(bool(in.Overflow))
}
{
const prefix string = ",\"properties\":"
out.RawString(prefix)
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 {
const prefix string = ",\"entries\":"
out.RawString(prefix)
{
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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime17(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ObjectPreview) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime17(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ObjectPreview) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime17(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ObjectPreview) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime17(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime18(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime18(out *jwriter.Writer, in InternalPropertyDescriptor) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
if in.Value != nil {
const prefix string = ",\"value\":"
out.RawString(prefix)
(*in.Value).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v InternalPropertyDescriptor) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime18(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v InternalPropertyDescriptor) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime18(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *InternalPropertyDescriptor) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime18(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *InternalPropertyDescriptor) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime18(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime19(in *jlexer.Lexer, out *GlobalLexicalScopeNamesReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "names":
if in.IsNull() {
in.Skip()
out.Names = nil
} else {
in.Delim('[')
if out.Names == nil {
if !in.IsDelim(']') {
out.Names = make([]string, 0, 4)
} else {
out.Names = []string{}
}
} else {
out.Names = (out.Names)[:0]
}
for !in.IsDelim(']') {
var v10 string
v10 = string(in.String())
out.Names = append(out.Names, v10)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime19(out *jwriter.Writer, in GlobalLexicalScopeNamesReturns) {
out.RawByte('{')
first := true
_ = first
if len(in.Names) != 0 {
const prefix string = ",\"names\":"
first = false
out.RawString(prefix[1:])
{
out.RawByte('[')
for v11, v12 := range in.Names {
if v11 > 0 {
out.RawByte(',')
}
out.String(string(v12))
}
out.RawByte(']')
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GlobalLexicalScopeNamesReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime19(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GlobalLexicalScopeNamesReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime19(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GlobalLexicalScopeNamesReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime19(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GlobalLexicalScopeNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime19(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime20(in *jlexer.Lexer, out *GlobalLexicalScopeNamesParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime20(out *jwriter.Writer, in GlobalLexicalScopeNamesParams) {
out.RawByte('{')
first := true
_ = first
if in.ExecutionContextID != 0 {
const prefix string = ",\"executionContextId\":"
first = false
out.RawString(prefix[1:])
out.Int64(int64(in.ExecutionContextID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GlobalLexicalScopeNamesParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime20(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GlobalLexicalScopeNamesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime20(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GlobalLexicalScopeNamesParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime20(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GlobalLexicalScopeNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime20(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime21(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.UnsafeFieldName(false)
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 v13 *PropertyDescriptor
if in.IsNull() {
in.Skip()
v13 = nil
} else {
if v13 == nil {
v13 = new(PropertyDescriptor)
}
(*v13).UnmarshalEasyJSON(in)
}
out.Result = append(out.Result, v13)
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 v14 *InternalPropertyDescriptor
if in.IsNull() {
in.Skip()
v14 = nil
} else {
if v14 == nil {
v14 = new(InternalPropertyDescriptor)
}
(*v14).UnmarshalEasyJSON(in)
}
out.InternalProperties = append(out.InternalProperties, v14)
in.WantComma()
}
in.Delim(']')
}
case "privateProperties":
if in.IsNull() {
in.Skip()
out.PrivateProperties = nil
} else {
in.Delim('[')
if out.PrivateProperties == nil {
if !in.IsDelim(']') {
out.PrivateProperties = make([]*PrivatePropertyDescriptor, 0, 8)
} else {
out.PrivateProperties = []*PrivatePropertyDescriptor{}
}
} else {
out.PrivateProperties = (out.PrivateProperties)[:0]
}
for !in.IsDelim(']') {
var v15 *PrivatePropertyDescriptor
if in.IsNull() {
in.Skip()
v15 = nil
} else {
if v15 == nil {
v15 = new(PrivatePropertyDescriptor)
}
(*v15).UnmarshalEasyJSON(in)
}
out.PrivateProperties = append(out.PrivateProperties, v15)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime21(out *jwriter.Writer, in GetPropertiesReturns) {
out.RawByte('{')
first := true
_ = first
if len(in.Result) != 0 {
const prefix string = ",\"result\":"
first = false
out.RawString(prefix[1:])
{
out.RawByte('[')
for v16, v17 := range in.Result {
if v16 > 0 {
out.RawByte(',')
}
if v17 == nil {
out.RawString("null")
} else {
(*v17).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if len(in.InternalProperties) != 0 {
const prefix string = ",\"internalProperties\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v18, v19 := range in.InternalProperties {
if v18 > 0 {
out.RawByte(',')
}
if v19 == nil {
out.RawString("null")
} else {
(*v19).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if len(in.PrivateProperties) != 0 {
const prefix string = ",\"privateProperties\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
{
out.RawByte('[')
for v20, v21 := range in.PrivateProperties {
if v20 > 0 {
out.RawByte(',')
}
if v21 == nil {
out.RawString("null")
} else {
(*v21).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPropertiesReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime21(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPropertiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime21(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPropertiesReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime21(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPropertiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime21(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime22(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime22(out *jwriter.Writer, in GetPropertiesParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"objectId\":"
out.RawString(prefix[1:])
out.String(string(in.ObjectID))
}
if in.OwnProperties {
const prefix string = ",\"ownProperties\":"
out.RawString(prefix)
out.Bool(bool(in.OwnProperties))
}
if in.AccessorPropertiesOnly {
const prefix string = ",\"accessorPropertiesOnly\":"
out.RawString(prefix)
out.Bool(bool(in.AccessorPropertiesOnly))
}
if in.GeneratePreview {
const prefix string = ",\"generatePreview\":"
out.RawString(prefix)
out.Bool(bool(in.GeneratePreview))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetPropertiesParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime22(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetPropertiesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime22(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetPropertiesParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime22(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetPropertiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime22(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime23(in *jlexer.Lexer, out *GetIsolateIDReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "id":
out.ID = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime23(out *jwriter.Writer, in GetIsolateIDReturns) {
out.RawByte('{')
first := true
_ = first
if in.ID != "" {
const prefix string = ",\"id\":"
first = false
out.RawString(prefix[1:])
out.String(string(in.ID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetIsolateIDReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime23(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetIsolateIDReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime23(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetIsolateIDReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime23(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetIsolateIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime23(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime24(in *jlexer.Lexer, out *GetIsolateIDParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime24(out *jwriter.Writer, in GetIsolateIDParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetIsolateIDParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime24(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetIsolateIDParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime24(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetIsolateIDParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime24(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetIsolateIDParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime24(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime25(in *jlexer.Lexer, out *GetHeapUsageReturns) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "usedSize":
out.UsedSize = float64(in.Float64())
case "totalSize":
out.TotalSize = float64(in.Float64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime25(out *jwriter.Writer, in GetHeapUsageReturns) {
out.RawByte('{')
first := true
_ = first
if in.UsedSize != 0 {
const prefix string = ",\"usedSize\":"
first = false
out.RawString(prefix[1:])
out.Float64(float64(in.UsedSize))
}
if in.TotalSize != 0 {
const prefix string = ",\"totalSize\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.Float64(float64(in.TotalSize))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetHeapUsageReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime25(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetHeapUsageReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime25(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetHeapUsageReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime25(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetHeapUsageReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime25(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime26(in *jlexer.Lexer, out *GetHeapUsageParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime26(out *jwriter.Writer, in GetHeapUsageParams) {
out.RawByte('{')
first := true
_ = first
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v GetHeapUsageParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime26(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetHeapUsageParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime26(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *GetHeapUsageParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime26(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetHeapUsageParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime26(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27(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.UnsafeFieldName(false)
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 "uniqueId":
out.UniqueID = string(in.String())
case "auxData":
(out.AuxData).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime27(out *jwriter.Writer, in ExecutionContextDescription) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"id\":"
out.RawString(prefix[1:])
out.Int64(int64(in.ID))
}
{
const prefix string = ",\"origin\":"
out.RawString(prefix)
out.String(string(in.Origin))
}
{
const prefix string = ",\"name\":"
out.RawString(prefix)
out.String(string(in.Name))
}
{
const prefix string = ",\"uniqueId\":"
out.RawString(prefix)
out.String(string(in.UniqueID))
}
if (in.AuxData).IsDefined() {
const prefix string = ",\"auxData\":"
out.RawString(prefix)
(in.AuxData).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ExecutionContextDescription) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime27(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ExecutionContextDescription) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime27(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ExecutionContextDescription) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ExecutionContextDescription) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28(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.UnsafeFieldName(false)
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())
case "exceptionMetaData":
(out.ExceptionMetaData).UnmarshalEasyJSON(in)
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime28(out *jwriter.Writer, in ExceptionDetails) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"exceptionId\":"
out.RawString(prefix[1:])
out.Int64(int64(in.ExceptionID))
}
{
const prefix string = ",\"text\":"
out.RawString(prefix)
out.String(string(in.Text))
}
{
const prefix string = ",\"lineNumber\":"
out.RawString(prefix)
out.Int64(int64(in.LineNumber))
}
{
const prefix string = ",\"columnNumber\":"
out.RawString(prefix)
out.Int64(int64(in.ColumnNumber))
}
if in.ScriptID != "" {
const prefix string = ",\"scriptId\":"
out.RawString(prefix)
out.String(string(in.ScriptID))
}
if in.URL != "" {
const prefix string = ",\"url\":"
out.RawString(prefix)
out.String(string(in.URL))
}
if in.StackTrace != nil {
const prefix string = ",\"stackTrace\":"
out.RawString(prefix)
(*in.StackTrace).MarshalEasyJSON(out)
}
if in.Exception != nil {
const prefix string = ",\"exception\":"
out.RawString(prefix)
(*in.Exception).MarshalEasyJSON(out)
}
if in.ExecutionContextID != 0 {
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
if (in.ExceptionMetaData).IsDefined() {
const prefix string = ",\"exceptionMetaData\":"
out.RawString(prefix)
(in.ExceptionMetaData).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v ExceptionDetails) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime28(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v ExceptionDetails) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime28(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *ExceptionDetails) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *ExceptionDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime28(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime29(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime29(out *jwriter.Writer, in EventInspectRequested) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"object\":"
out.RawString(prefix[1:])
if in.Object == nil {
out.RawString("null")
} else {
(*in.Object).MarshalEasyJSON(out)
}
}
{
const prefix string = ",\"hints\":"
out.RawString(prefix)
(in.Hints).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventInspectRequested) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime29(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventInspectRequested) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime29(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventInspectRequested) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime29(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventInspectRequested) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime29(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime30(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime30(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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime30(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventExecutionContextsCleared) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime30(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventExecutionContextsCleared) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime30(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventExecutionContextsCleared) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime30(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime31(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime31(out *jwriter.Writer, in EventExecutionContextDestroyed) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"executionContextId\":"
out.RawString(prefix[1:])
out.Int64(int64(in.ExecutionContextID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventExecutionContextDestroyed) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime31(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventExecutionContextDestroyed) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime31(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventExecutionContextDestroyed) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime31(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventExecutionContextDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime31(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime32(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime32(out *jwriter.Writer, in EventExecutionContextCreated) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"context\":"
out.RawString(prefix[1:])
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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime32(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventExecutionContextCreated) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime32(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventExecutionContextCreated) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime32(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventExecutionContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime32(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime33(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "timestamp":
if in.IsNull() {
in.Skip()
out.Timestamp = nil
} else {
if out.Timestamp == nil {
out.Timestamp = new(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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime33(out *jwriter.Writer, in EventExceptionThrown) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"timestamp\":"
out.RawString(prefix[1:])
if in.Timestamp == nil {
out.RawString("null")
} else {
(*in.Timestamp).MarshalEasyJSON(out)
}
}
{
const prefix string = ",\"exceptionDetails\":"
out.RawString(prefix)
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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime33(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventExceptionThrown) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime33(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventExceptionThrown) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime33(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventExceptionThrown) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime33(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime34(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime34(out *jwriter.Writer, in EventExceptionRevoked) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"reason\":"
out.RawString(prefix[1:])
out.String(string(in.Reason))
}
{
const prefix string = ",\"exceptionId\":"
out.RawString(prefix)
out.Int64(int64(in.ExceptionID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventExceptionRevoked) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime34(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventExceptionRevoked) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime34(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventExceptionRevoked) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime34(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventExceptionRevoked) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime34(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime35(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.UnsafeFieldName(false)
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 v22 *RemoteObject
if in.IsNull() {
in.Skip()
v22 = nil
} else {
if v22 == nil {
v22 = new(RemoteObject)
}
(*v22).UnmarshalEasyJSON(in)
}
out.Args = append(out.Args, v22)
in.WantComma()
}
in.Delim(']')
}
case "executionContextId":
out.ExecutionContextID = ExecutionContextID(in.Int64())
case "timestamp":
if in.IsNull() {
in.Skip()
out.Timestamp = nil
} else {
if out.Timestamp == nil {
out.Timestamp = new(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)
}
case "context":
out.Context = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime35(out *jwriter.Writer, in EventConsoleAPICalled) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"type\":"
out.RawString(prefix[1:])
(in.Type).MarshalEasyJSON(out)
}
{
const prefix string = ",\"args\":"
out.RawString(prefix)
if in.Args == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
out.RawString("null")
} else {
out.RawByte('[')
for v23, v24 := range in.Args {
if v23 > 0 {
out.RawByte(',')
}
if v24 == nil {
out.RawString("null")
} else {
(*v24).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
{
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
{
const prefix string = ",\"timestamp\":"
out.RawString(prefix)
if in.Timestamp == nil {
out.RawString("null")
} else {
(*in.Timestamp).MarshalEasyJSON(out)
}
}
if in.StackTrace != nil {
const prefix string = ",\"stackTrace\":"
out.RawString(prefix)
(*in.StackTrace).MarshalEasyJSON(out)
}
if in.Context != "" {
const prefix string = ",\"context\":"
out.RawString(prefix)
out.String(string(in.Context))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventConsoleAPICalled) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime35(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventConsoleAPICalled) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime35(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventConsoleAPICalled) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime35(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventConsoleAPICalled) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime35(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime36(in *jlexer.Lexer, out *EventBindingCalled) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "name":
out.Name = string(in.String())
case "payload":
out.Payload = string(in.String())
case "executionContextId":
out.ExecutionContextID = ExecutionContextID(in.Int64())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime36(out *jwriter.Writer, in EventBindingCalled) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
{
const prefix string = ",\"payload\":"
out.RawString(prefix)
out.String(string(in.Payload))
}
{
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EventBindingCalled) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime36(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventBindingCalled) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime36(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EventBindingCalled) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime36(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventBindingCalled) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime36(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime37(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime37(out *jwriter.Writer, in EvaluateReturns) {
out.RawByte('{')
first := true
_ = first
if in.Result != nil {
const prefix string = ",\"result\":"
first = false
out.RawString(prefix[1:])
(*in.Result).MarshalEasyJSON(out)
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EvaluateReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime37(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EvaluateReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime37(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EvaluateReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime37(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EvaluateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime37(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime38(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.UnsafeFieldName(false)
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())
case "throwOnSideEffect":
out.ThrowOnSideEffect = bool(in.Bool())
case "timeout":
out.Timeout = TimeDelta(in.Float64())
case "disableBreaks":
out.DisableBreaks = bool(in.Bool())
case "replMode":
out.ReplMode = bool(in.Bool())
case "allowUnsafeEvalBlockedByCSP":
out.AllowUnsafeEvalBlockedByCSP = bool(in.Bool())
case "uniqueContextId":
out.UniqueContextID = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime38(out *jwriter.Writer, in EvaluateParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"expression\":"
out.RawString(prefix[1:])
out.String(string(in.Expression))
}
if in.ObjectGroup != "" {
const prefix string = ",\"objectGroup\":"
out.RawString(prefix)
out.String(string(in.ObjectGroup))
}
if in.IncludeCommandLineAPI {
const prefix string = ",\"includeCommandLineAPI\":"
out.RawString(prefix)
out.Bool(bool(in.IncludeCommandLineAPI))
}
if in.Silent {
const prefix string = ",\"silent\":"
out.RawString(prefix)
out.Bool(bool(in.Silent))
}
if in.ContextID != 0 {
const prefix string = ",\"contextId\":"
out.RawString(prefix)
out.Int64(int64(in.ContextID))
}
if in.ReturnByValue {
const prefix string = ",\"returnByValue\":"
out.RawString(prefix)
out.Bool(bool(in.ReturnByValue))
}
if in.GeneratePreview {
const prefix string = ",\"generatePreview\":"
out.RawString(prefix)
out.Bool(bool(in.GeneratePreview))
}
if in.UserGesture {
const prefix string = ",\"userGesture\":"
out.RawString(prefix)
out.Bool(bool(in.UserGesture))
}
if in.AwaitPromise {
const prefix string = ",\"awaitPromise\":"
out.RawString(prefix)
out.Bool(bool(in.AwaitPromise))
}
if in.ThrowOnSideEffect {
const prefix string = ",\"throwOnSideEffect\":"
out.RawString(prefix)
out.Bool(bool(in.ThrowOnSideEffect))
}
if in.Timeout != 0 {
const prefix string = ",\"timeout\":"
out.RawString(prefix)
out.Float64(float64(in.Timeout))
}
if in.DisableBreaks {
const prefix string = ",\"disableBreaks\":"
out.RawString(prefix)
out.Bool(bool(in.DisableBreaks))
}
if in.ReplMode {
const prefix string = ",\"replMode\":"
out.RawString(prefix)
out.Bool(bool(in.ReplMode))
}
if in.AllowUnsafeEvalBlockedByCSP {
const prefix string = ",\"allowUnsafeEvalBlockedByCSP\":"
out.RawString(prefix)
out.Bool(bool(in.AllowUnsafeEvalBlockedByCSP))
}
if in.UniqueContextID != "" {
const prefix string = ",\"uniqueContextId\":"
out.RawString(prefix)
out.String(string(in.UniqueContextID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EvaluateParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime38(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EvaluateParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime38(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EvaluateParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime38(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EvaluateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime38(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime39(in *jlexer.Lexer, out *EntryPreview) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
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(ObjectPreview)
}
(*out.Key).UnmarshalEasyJSON(in)
}
case "value":
if in.IsNull() {
in.Skip()
out.Value = nil
} else {
if out.Value == nil {
out.Value = new(ObjectPreview)
}
(*out.Value).UnmarshalEasyJSON(in)
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime39(out *jwriter.Writer, in EntryPreview) {
out.RawByte('{')
first := true
_ = first
if in.Key != nil {
const prefix string = ",\"key\":"
first = false
out.RawString(prefix[1:])
(*in.Key).MarshalEasyJSON(out)
}
{
const prefix string = ",\"value\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
if in.Value == nil {
out.RawString("null")
} else {
(*in.Value).MarshalEasyJSON(out)
}
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v EntryPreview) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime39(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EntryPreview) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime39(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EntryPreview) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime39(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EntryPreview) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime39(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime40(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime40(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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime40(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime40(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime40(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime40(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime41(in *jlexer.Lexer, out *DiscardConsoleEntriesParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime41(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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime41(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v DiscardConsoleEntriesParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime41(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *DiscardConsoleEntriesParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime41(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DiscardConsoleEntriesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime41(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime42(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime42(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{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime42(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime42(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime42(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime42(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime43(in *jlexer.Lexer, out *CustomPreview) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "header":
out.Header = string(in.String())
case "bodyGetterId":
out.BodyGetterID = RemoteObjectID(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime43(out *jwriter.Writer, in CustomPreview) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"header\":"
out.RawString(prefix[1:])
out.String(string(in.Header))
}
if in.BodyGetterID != "" {
const prefix string = ",\"bodyGetterId\":"
out.RawString(prefix)
out.String(string(in.BodyGetterID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CustomPreview) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime43(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CustomPreview) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime43(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CustomPreview) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime43(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CustomPreview) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime43(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime44(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime44(out *jwriter.Writer, in CompileScriptReturns) {
out.RawByte('{')
first := true
_ = first
if in.ScriptID != "" {
const prefix string = ",\"scriptId\":"
first = false
out.RawString(prefix[1:])
out.String(string(in.ScriptID))
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CompileScriptReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime44(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CompileScriptReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime44(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CompileScriptReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime44(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CompileScriptReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime44(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime45(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime45(out *jwriter.Writer, in CompileScriptParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"expression\":"
out.RawString(prefix[1:])
out.String(string(in.Expression))
}
{
const prefix string = ",\"sourceURL\":"
out.RawString(prefix)
out.String(string(in.SourceURL))
}
{
const prefix string = ",\"persistScript\":"
out.RawString(prefix)
out.Bool(bool(in.PersistScript))
}
if in.ExecutionContextID != 0 {
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CompileScriptParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime45(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CompileScriptParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime45(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CompileScriptParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime45(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CompileScriptParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime45(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime46(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime46(out *jwriter.Writer, in CallFunctionOnReturns) {
out.RawByte('{')
first := true
_ = first
if in.Result != nil {
const prefix string = ",\"result\":"
first = false
out.RawString(prefix[1:])
(*in.Result).MarshalEasyJSON(out)
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CallFunctionOnReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime46(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CallFunctionOnReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime46(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CallFunctionOnReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime46(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CallFunctionOnReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime46(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime47(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "functionDeclaration":
out.FunctionDeclaration = string(in.String())
case "objectId":
out.ObjectID = RemoteObjectID(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 v25 *CallArgument
if in.IsNull() {
in.Skip()
v25 = nil
} else {
if v25 == nil {
v25 = new(CallArgument)
}
(*v25).UnmarshalEasyJSON(in)
}
out.Arguments = append(out.Arguments, v25)
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())
case "executionContextId":
out.ExecutionContextID = ExecutionContextID(in.Int64())
case "objectGroup":
out.ObjectGroup = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime47(out *jwriter.Writer, in CallFunctionOnParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"functionDeclaration\":"
out.RawString(prefix[1:])
out.String(string(in.FunctionDeclaration))
}
if in.ObjectID != "" {
const prefix string = ",\"objectId\":"
out.RawString(prefix)
out.String(string(in.ObjectID))
}
if len(in.Arguments) != 0 {
const prefix string = ",\"arguments\":"
out.RawString(prefix)
{
out.RawByte('[')
for v26, v27 := range in.Arguments {
if v26 > 0 {
out.RawByte(',')
}
if v27 == nil {
out.RawString("null")
} else {
(*v27).MarshalEasyJSON(out)
}
}
out.RawByte(']')
}
}
if in.Silent {
const prefix string = ",\"silent\":"
out.RawString(prefix)
out.Bool(bool(in.Silent))
}
if in.ReturnByValue {
const prefix string = ",\"returnByValue\":"
out.RawString(prefix)
out.Bool(bool(in.ReturnByValue))
}
if in.GeneratePreview {
const prefix string = ",\"generatePreview\":"
out.RawString(prefix)
out.Bool(bool(in.GeneratePreview))
}
if in.UserGesture {
const prefix string = ",\"userGesture\":"
out.RawString(prefix)
out.Bool(bool(in.UserGesture))
}
if in.AwaitPromise {
const prefix string = ",\"awaitPromise\":"
out.RawString(prefix)
out.Bool(bool(in.AwaitPromise))
}
if in.ExecutionContextID != 0 {
const prefix string = ",\"executionContextId\":"
out.RawString(prefix)
out.Int64(int64(in.ExecutionContextID))
}
if in.ObjectGroup != "" {
const prefix string = ",\"objectGroup\":"
out.RawString(prefix)
out.String(string(in.ObjectGroup))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CallFunctionOnParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime47(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CallFunctionOnParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime47(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CallFunctionOnParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime47(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CallFunctionOnParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime47(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime48(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime48(out *jwriter.Writer, in CallFrame) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"functionName\":"
out.RawString(prefix[1:])
out.String(string(in.FunctionName))
}
{
const prefix string = ",\"scriptId\":"
out.RawString(prefix)
out.String(string(in.ScriptID))
}
{
const prefix string = ",\"url\":"
out.RawString(prefix)
out.String(string(in.URL))
}
{
const prefix string = ",\"lineNumber\":"
out.RawString(prefix)
out.Int64(int64(in.LineNumber))
}
{
const prefix string = ",\"columnNumber\":"
out.RawString(prefix)
out.Int64(int64(in.ColumnNumber))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CallFrame) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime48(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime48(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CallFrame) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime48(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime48(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime49(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.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "value":
(out.Value).UnmarshalEasyJSON(in)
case "unserializableValue":
out.UnserializableValue = UnserializableValue(in.String())
case "objectId":
out.ObjectID = RemoteObjectID(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime49(out *jwriter.Writer, in CallArgument) {
out.RawByte('{')
first := true
_ = first
if (in.Value).IsDefined() {
const prefix string = ",\"value\":"
first = false
out.RawString(prefix[1:])
(in.Value).MarshalEasyJSON(out)
}
if in.UnserializableValue != "" {
const prefix string = ",\"unserializableValue\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.UnserializableValue))
}
if in.ObjectID != "" {
const prefix string = ",\"objectId\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
out.String(string(in.ObjectID))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v CallArgument) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime49(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v CallArgument) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime49(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *CallArgument) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime49(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CallArgument) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime49(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime50(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime50(out *jwriter.Writer, in AwaitPromiseReturns) {
out.RawByte('{')
first := true
_ = first
if in.Result != nil {
const prefix string = ",\"result\":"
first = false
out.RawString(prefix[1:])
(*in.Result).MarshalEasyJSON(out)
}
if in.ExceptionDetails != nil {
const prefix string = ",\"exceptionDetails\":"
if first {
first = false
out.RawString(prefix[1:])
} else {
out.RawString(prefix)
}
(*in.ExceptionDetails).MarshalEasyJSON(out)
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v AwaitPromiseReturns) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime50(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v AwaitPromiseReturns) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime50(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *AwaitPromiseReturns) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime50(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AwaitPromiseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime50(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime51(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.UnsafeFieldName(false)
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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime51(out *jwriter.Writer, in AwaitPromiseParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"promiseObjectId\":"
out.RawString(prefix[1:])
out.String(string(in.PromiseObjectID))
}
if in.ReturnByValue {
const prefix string = ",\"returnByValue\":"
out.RawString(prefix)
out.Bool(bool(in.ReturnByValue))
}
if in.GeneratePreview {
const prefix string = ",\"generatePreview\":"
out.RawString(prefix)
out.Bool(bool(in.GeneratePreview))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v AwaitPromiseParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime51(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v AwaitPromiseParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime51(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *AwaitPromiseParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime51(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AwaitPromiseParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime51(l, v)
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime52(in *jlexer.Lexer, out *AddBindingParams) {
isTopLevel := in.IsStart()
if in.IsNull() {
if isTopLevel {
in.Consumed()
}
in.Skip()
return
}
in.Delim('{')
for !in.IsDelim('}') {
key := in.UnsafeFieldName(false)
in.WantColon()
if in.IsNull() {
in.Skip()
in.WantComma()
continue
}
switch key {
case "name":
out.Name = string(in.String())
case "executionContextName":
out.ExecutionContextName = string(in.String())
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime52(out *jwriter.Writer, in AddBindingParams) {
out.RawByte('{')
first := true
_ = first
{
const prefix string = ",\"name\":"
out.RawString(prefix[1:])
out.String(string(in.Name))
}
if in.ExecutionContextName != "" {
const prefix string = ",\"executionContextName\":"
out.RawString(prefix)
out.String(string(in.ExecutionContextName))
}
out.RawByte('}')
}
// MarshalJSON supports json.Marshaler interface
func (v AddBindingParams) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime52(&w, v)
return w.Buffer.BuildBytes(), w.Error
}
// MarshalEasyJSON supports easyjson.Marshaler interface
func (v AddBindingParams) MarshalEasyJSON(w *jwriter.Writer) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime52(w, v)
}
// UnmarshalJSON supports json.Unmarshaler interface
func (v *AddBindingParams) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime52(&r, v)
return r.Error()
}
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AddBindingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime52(l, v)
}