2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package network
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
|
|
runtime "github.com/knq/chromedp/cdp/runtime"
|
|
|
|
security "github.com/knq/chromedp/cdp/security"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(in *jlexer.Lexer, out *WebSocketResponse) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "status":
|
|
|
|
out.Status = float64(in.Float64())
|
|
|
|
case "statusText":
|
|
|
|
out.StatusText = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v1 interface{}
|
|
|
|
if m, ok := v1.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v1.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v1 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v1
|
|
|
|
in.WantComma()
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
case "headersText":
|
|
|
|
out.HeadersText = string(in.String())
|
|
|
|
case "requestHeaders":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RequestHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RequestHeaders = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v2 interface{}
|
|
|
|
if m, ok := v2.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v2.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v2 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.RequestHeaders)[key] = v2
|
|
|
|
in.WantComma()
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
case "requestHeadersText":
|
|
|
|
out.RequestHeadersText = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(out *jwriter.Writer, in WebSocketResponse) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.Float64(float64(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"statusText\":")
|
|
|
|
out.String(string(in.StatusText))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v3First := true
|
|
|
|
for v3Name, v3Value := range in.Headers {
|
|
|
|
if !v3First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v3First = false
|
|
|
|
out.String(string(v3Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v3Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v3Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v3Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.HeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"headersText\":")
|
|
|
|
out.String(string(in.HeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RequestHeaders) != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v4First := true
|
|
|
|
for v4Name, v4Value := range in.RequestHeaders {
|
|
|
|
if !v4First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v4First = false
|
|
|
|
out.String(string(v4Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v4Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v4Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v4Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.RequestHeadersText != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"requestHeadersText\":")
|
|
|
|
out.String(string(in.RequestHeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketResponse) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketResponse) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(in *jlexer.Lexer, out *WebSocketRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v5 interface{}
|
|
|
|
if m, ok := v5.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v5.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v5 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v5
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(out *jwriter.Writer, in WebSocketRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v6First := true
|
|
|
|
for v6Name, v6Value := range in.Headers {
|
|
|
|
if !v6First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v6First = false
|
|
|
|
out.String(string(v6Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v6Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v6Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v6Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketRequest) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork1(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketRequest) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork1(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(in *jlexer.Lexer, out *WebSocketFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "opcode":
|
|
|
|
out.Opcode = float64(in.Float64())
|
|
|
|
case "mask":
|
|
|
|
out.Mask = bool(in.Bool())
|
|
|
|
case "payloadData":
|
|
|
|
out.PayloadData = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(out *jwriter.Writer, in WebSocketFrame) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"opcode\":")
|
|
|
|
out.Float64(float64(in.Opcode))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"mask\":")
|
|
|
|
out.Bool(bool(in.Mask))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"payloadData\":")
|
|
|
|
out.String(string(in.PayloadData))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketFrame) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork2(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketFrame) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork2(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(in *jlexer.Lexer, out *SignedCertificateTimestamp) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "status":
|
|
|
|
out.Status = string(in.String())
|
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
|
|
|
case "logDescription":
|
|
|
|
out.LogDescription = string(in.String())
|
|
|
|
case "logId":
|
|
|
|
out.LogID = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "hashAlgorithm":
|
|
|
|
out.HashAlgorithm = string(in.String())
|
|
|
|
case "signatureAlgorithm":
|
|
|
|
out.SignatureAlgorithm = string(in.String())
|
|
|
|
case "signatureData":
|
|
|
|
out.SignatureData = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(out *jwriter.Writer, in SignedCertificateTimestamp) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.String(string(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"logDescription\":")
|
|
|
|
out.String(string(in.LogDescription))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"logId\":")
|
|
|
|
out.String(string(in.LogID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"hashAlgorithm\":")
|
|
|
|
out.String(string(in.HashAlgorithm))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"signatureAlgorithm\":")
|
|
|
|
out.String(string(in.SignatureAlgorithm))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"signatureData\":")
|
|
|
|
out.String(string(in.SignatureData))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork3(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork3(l, v)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(in *jlexer.Lexer, out *SetUserAgentOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "userAgent":
|
|
|
|
out.UserAgent = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(out *jwriter.Writer, in SetUserAgentOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"userAgent\":")
|
|
|
|
out.String(string(in.UserAgent))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetUserAgentOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetUserAgentOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork4(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetUserAgentOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetUserAgentOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork4(l, v)
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(in *jlexer.Lexer, out *SetRequestInterceptionEnabledParams) {
|
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "enabled":
|
|
|
|
out.Enabled = bool(in.Bool())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(out *jwriter.Writer, in SetRequestInterceptionEnabledParams) {
|
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"enabled\":")
|
|
|
|
out.Bool(bool(in.Enabled))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetRequestInterceptionEnabledParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetRequestInterceptionEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork5(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetRequestInterceptionEnabledParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetRequestInterceptionEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork5(l, v)
|
|
|
|
}
|
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(in *jlexer.Lexer, out *SetExtraHTTPHeadersParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v7 interface{}
|
|
|
|
if m, ok := v7.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v7.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v7 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v7
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(out *jwriter.Writer, in SetExtraHTTPHeadersParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v8First := true
|
|
|
|
for v8Name, v8Value := range in.Headers {
|
|
|
|
if !v8First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v8First = false
|
|
|
|
out.String(string(v8Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v8Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v8Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v8Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork6(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork6(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(in *jlexer.Lexer, out *SetDataSizeLimitsForTestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "maxTotalSize":
|
|
|
|
out.MaxTotalSize = int64(in.Int64())
|
|
|
|
case "maxResourceSize":
|
|
|
|
out.MaxResourceSize = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(out *jwriter.Writer, in SetDataSizeLimitsForTestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"maxTotalSize\":")
|
|
|
|
out.Int64(int64(in.MaxTotalSize))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"maxResourceSize\":")
|
|
|
|
out.Int64(int64(in.MaxResourceSize))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork7(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookieReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "success":
|
|
|
|
out.Success = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookieReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Success {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"success\":")
|
|
|
|
out.Bool(bool(in.Success))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieReturns) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
2017-01-24 15:09:23 +00:00
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
|
|
|
case "secure":
|
|
|
|
out.Secure = bool(in.Bool())
|
|
|
|
case "httpOnly":
|
|
|
|
out.HTTPOnly = bool(in.Bool())
|
|
|
|
case "sameSite":
|
|
|
|
(out.SameSite).UnmarshalEasyJSON(in)
|
|
|
|
case "expirationDate":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ExpirationDate = nil
|
|
|
|
} else {
|
|
|
|
if out.ExpirationDate == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.ExpirationDate = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.ExpirationDate).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
if in.Domain != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Path != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Secure {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"secure\":")
|
|
|
|
out.Bool(bool(in.Secure))
|
|
|
|
}
|
|
|
|
if in.HTTPOnly {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"httpOnly\":")
|
|
|
|
out.Bool(bool(in.HTTPOnly))
|
|
|
|
}
|
|
|
|
if in.SameSite != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sameSite\":")
|
|
|
|
(in.SameSite).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.ExpirationDate != nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"expirationDate\":")
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.ExpirationDate == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ExpirationDate).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCacheDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "cacheDisabled":
|
|
|
|
out.CacheDisabled = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCacheDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"cacheDisabled\":")
|
|
|
|
out.Bool(bool(in.CacheDisabled))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "bypass":
|
|
|
|
out.Bypass = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetBypassServiceWorkerParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"bypass\":")
|
|
|
|
out.Bool(bool(in.Bypass))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBlockedURLSParams) {
|
2017-03-13 02:29:26 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "urls":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Urls = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Urls == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Urls = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.Urls = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Urls = (out.Urls)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v9 string
|
|
|
|
v9 = string(in.String())
|
|
|
|
out.Urls = append(out.Urls, v9)
|
2017-03-13 02:29:26 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBlockedURLSParams) {
|
2017-03-13 02:29:26 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"urls\":")
|
|
|
|
if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-06-18 03:27:15 +00:00
|
|
|
for v10, v11 := range in.Urls {
|
|
|
|
if v10 > 0 {
|
2017-03-13 02:29:26 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.String(string(v11))
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v)
|
2017-03-13 02:29:26 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SecurityDetails) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "protocol":
|
|
|
|
out.Protocol = string(in.String())
|
|
|
|
case "keyExchange":
|
|
|
|
out.KeyExchange = string(in.String())
|
|
|
|
case "keyExchangeGroup":
|
|
|
|
out.KeyExchangeGroup = string(in.String())
|
|
|
|
case "cipher":
|
|
|
|
out.Cipher = string(in.String())
|
|
|
|
case "mac":
|
|
|
|
out.Mac = string(in.String())
|
|
|
|
case "certificateId":
|
|
|
|
out.CertificateID = security.CertificateID(in.Int64())
|
|
|
|
case "subjectName":
|
|
|
|
out.SubjectName = string(in.String())
|
|
|
|
case "sanList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SanList = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.SanList == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.SanList = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.SanList = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.SanList = (out.SanList)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v12 string
|
|
|
|
v12 = string(in.String())
|
|
|
|
out.SanList = append(out.SanList, v12)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "issuer":
|
|
|
|
out.Issuer = string(in.String())
|
|
|
|
case "validFrom":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ValidFrom = nil
|
|
|
|
} else {
|
|
|
|
if out.ValidFrom == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.ValidFrom = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.ValidFrom).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "validTo":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ValidTo = nil
|
|
|
|
} else {
|
|
|
|
if out.ValidTo == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.ValidTo = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.ValidTo).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "signedCertificateTimestampList":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SignedCertificateTimestampList = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.SignedCertificateTimestampList == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.SignedCertificateTimestampList = make([]*SignedCertificateTimestamp, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.SignedCertificateTimestampList = []*SignedCertificateTimestamp{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v13 *SignedCertificateTimestamp
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 03:27:15 +00:00
|
|
|
v13 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
if v13 == nil {
|
|
|
|
v13 = new(SignedCertificateTimestamp)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
(*v13).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v13)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SecurityDetails) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"protocol\":")
|
|
|
|
out.String(string(in.Protocol))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"keyExchange\":")
|
|
|
|
out.String(string(in.KeyExchange))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.KeyExchangeGroup != "" {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"keyExchangeGroup\":")
|
|
|
|
out.String(string(in.KeyExchangeGroup))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"cipher\":")
|
|
|
|
out.String(string(in.Cipher))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Mac != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"mac\":")
|
|
|
|
out.String(string(in.Mac))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"certificateId\":")
|
|
|
|
out.Int64(int64(in.CertificateID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"subjectName\":")
|
|
|
|
out.String(string(in.SubjectName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sanList\":")
|
|
|
|
if in.SanList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v14, v15 := range in.SanList {
|
|
|
|
if v14 > 0 {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.String(string(v15))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(']')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"issuer\":")
|
|
|
|
out.String(string(in.Issuer))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"validFrom\":")
|
|
|
|
if in.ValidFrom == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ValidFrom).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"validTo\":")
|
|
|
|
if in.ValidTo == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ValidTo).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"signedCertificateTimestampList\":")
|
|
|
|
if in.SignedCertificateTimestampList == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v16, v17 := range in.SignedCertificateTimestampList {
|
|
|
|
if v16 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v17 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v17).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SecurityDetails) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *Response) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "status":
|
|
|
|
out.Status = float64(in.Float64())
|
|
|
|
case "statusText":
|
|
|
|
out.StatusText = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v18 interface{}
|
|
|
|
if m, ok := v18.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v18.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v18 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v18
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "headersText":
|
|
|
|
out.HeadersText = string(in.String())
|
|
|
|
case "mimeType":
|
|
|
|
out.MimeType = string(in.String())
|
|
|
|
case "requestHeaders":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RequestHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RequestHeaders = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v19 interface{}
|
|
|
|
if m, ok := v19.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v19.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v19 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.RequestHeaders)[key] = v19
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestHeadersText":
|
|
|
|
out.RequestHeadersText = string(in.String())
|
|
|
|
case "connectionReused":
|
|
|
|
out.ConnectionReused = bool(in.Bool())
|
|
|
|
case "connectionId":
|
|
|
|
out.ConnectionID = float64(in.Float64())
|
|
|
|
case "remoteIPAddress":
|
|
|
|
out.RemoteIPAddress = string(in.String())
|
|
|
|
case "remotePort":
|
|
|
|
out.RemotePort = int64(in.Int64())
|
|
|
|
case "fromDiskCache":
|
|
|
|
out.FromDiskCache = bool(in.Bool())
|
|
|
|
case "fromServiceWorker":
|
|
|
|
out.FromServiceWorker = bool(in.Bool())
|
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = float64(in.Float64())
|
|
|
|
case "timing":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Timing = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Timing == nil {
|
|
|
|
out.Timing = new(ResourceTiming)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Timing).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "protocol":
|
|
|
|
out.Protocol = string(in.String())
|
|
|
|
case "securityState":
|
|
|
|
(out.SecurityState).UnmarshalEasyJSON(in)
|
|
|
|
case "securityDetails":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.SecurityDetails = nil
|
|
|
|
} else {
|
|
|
|
if out.SecurityDetails == nil {
|
|
|
|
out.SecurityDetails = new(SecurityDetails)
|
|
|
|
}
|
|
|
|
(*out.SecurityDetails).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in Response) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"status\":")
|
|
|
|
out.Float64(float64(in.Status))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"statusText\":")
|
|
|
|
out.String(string(in.StatusText))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v20First := true
|
|
|
|
for v20Name, v20Value := range in.Headers {
|
|
|
|
if !v20First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v20First = false
|
|
|
|
out.String(string(v20Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v20Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v20Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v20Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.HeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"headersText\":")
|
|
|
|
out.String(string(in.HeadersText))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"mimeType\":")
|
|
|
|
out.String(string(in.MimeType))
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RequestHeaders) != 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"requestHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RequestHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v21First := true
|
|
|
|
for v21Name, v21Value := range in.RequestHeaders {
|
|
|
|
if !v21First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v21First = false
|
|
|
|
out.String(string(v21Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v21Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v21Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v21Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RequestHeadersText != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestHeadersText\":")
|
|
|
|
out.String(string(in.RequestHeadersText))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionReused\":")
|
|
|
|
out.Bool(bool(in.ConnectionReused))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionId\":")
|
|
|
|
out.Float64(float64(in.ConnectionID))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RemoteIPAddress != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"remoteIPAddress\":")
|
|
|
|
out.String(string(in.RemoteIPAddress))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.RemotePort != 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"remotePort\":")
|
|
|
|
out.Int64(int64(in.RemotePort))
|
|
|
|
}
|
|
|
|
if in.FromDiskCache {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fromDiskCache\":")
|
|
|
|
out.Bool(bool(in.FromDiskCache))
|
|
|
|
}
|
|
|
|
if in.FromServiceWorker {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fromServiceWorker\":")
|
|
|
|
out.Bool(bool(in.FromServiceWorker))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Float64(float64(in.EncodedDataLength))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Timing != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timing\":")
|
|
|
|
if in.Timing == nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
(*in.Timing).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Protocol != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"protocol\":")
|
|
|
|
out.String(string(in.Protocol))
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"securityState\":")
|
|
|
|
(in.SecurityState).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.SecurityDetails != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"securityDetails\":")
|
|
|
|
if in.SecurityDetails == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.SecurityDetails).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Response) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Response) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *ResourceTiming) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestTime":
|
|
|
|
out.RequestTime = float64(in.Float64())
|
|
|
|
case "proxyStart":
|
|
|
|
out.ProxyStart = float64(in.Float64())
|
|
|
|
case "proxyEnd":
|
|
|
|
out.ProxyEnd = float64(in.Float64())
|
|
|
|
case "dnsStart":
|
|
|
|
out.DNSStart = float64(in.Float64())
|
|
|
|
case "dnsEnd":
|
|
|
|
out.DNSEnd = float64(in.Float64())
|
|
|
|
case "connectStart":
|
|
|
|
out.ConnectStart = float64(in.Float64())
|
|
|
|
case "connectEnd":
|
|
|
|
out.ConnectEnd = float64(in.Float64())
|
|
|
|
case "sslStart":
|
|
|
|
out.SslStart = float64(in.Float64())
|
|
|
|
case "sslEnd":
|
|
|
|
out.SslEnd = float64(in.Float64())
|
|
|
|
case "workerStart":
|
|
|
|
out.WorkerStart = float64(in.Float64())
|
|
|
|
case "workerReady":
|
|
|
|
out.WorkerReady = float64(in.Float64())
|
|
|
|
case "sendStart":
|
|
|
|
out.SendStart = float64(in.Float64())
|
|
|
|
case "sendEnd":
|
|
|
|
out.SendEnd = float64(in.Float64())
|
|
|
|
case "pushStart":
|
|
|
|
out.PushStart = float64(in.Float64())
|
|
|
|
case "pushEnd":
|
|
|
|
out.PushEnd = float64(in.Float64())
|
|
|
|
case "receiveHeadersEnd":
|
|
|
|
out.ReceiveHeadersEnd = float64(in.Float64())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in ResourceTiming) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestTime\":")
|
|
|
|
out.Float64(float64(in.RequestTime))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"proxyStart\":")
|
|
|
|
out.Float64(float64(in.ProxyStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"proxyEnd\":")
|
|
|
|
out.Float64(float64(in.ProxyEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dnsStart\":")
|
|
|
|
out.Float64(float64(in.DNSStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dnsEnd\":")
|
|
|
|
out.Float64(float64(in.DNSEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectStart\":")
|
|
|
|
out.Float64(float64(in.ConnectStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"connectEnd\":")
|
|
|
|
out.Float64(float64(in.ConnectEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sslStart\":")
|
|
|
|
out.Float64(float64(in.SslStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sslEnd\":")
|
|
|
|
out.Float64(float64(in.SslEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"workerStart\":")
|
|
|
|
out.Float64(float64(in.WorkerStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"workerReady\":")
|
|
|
|
out.Float64(float64(in.WorkerReady))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sendStart\":")
|
|
|
|
out.Float64(float64(in.SendStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"sendEnd\":")
|
|
|
|
out.Float64(float64(in.SendEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pushStart\":")
|
|
|
|
out.Float64(float64(in.PushStart))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pushEnd\":")
|
|
|
|
out.Float64(float64(in.PushEnd))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"receiveHeadersEnd\":")
|
|
|
|
out.Float64(float64(in.ReceiveHeadersEnd))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResourceTiming) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *Request) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "method":
|
|
|
|
out.Method = string(in.String())
|
|
|
|
case "headers":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v22 interface{}
|
|
|
|
if m, ok := v22.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v22.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v22 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v22
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "postData":
|
|
|
|
out.PostData = string(in.String())
|
|
|
|
case "mixedContentType":
|
|
|
|
(out.MixedContentType).UnmarshalEasyJSON(in)
|
|
|
|
case "initialPriority":
|
|
|
|
(out.InitialPriority).UnmarshalEasyJSON(in)
|
|
|
|
case "referrerPolicy":
|
|
|
|
(out.ReferrerPolicy).UnmarshalEasyJSON(in)
|
2017-04-04 08:44:57 +00:00
|
|
|
case "isLinkPreload":
|
|
|
|
out.IsLinkPreload = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in Request) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"method\":")
|
|
|
|
out.String(string(in.Method))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
|
|
|
} else {
|
|
|
|
out.RawByte('{')
|
|
|
|
v23First := true
|
|
|
|
for v23Name, v23Value := range in.Headers {
|
|
|
|
if !v23First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v23First = false
|
|
|
|
out.String(string(v23Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v23Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v23Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v23Value))
|
2017-06-18 03:27:15 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('}')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.PostData != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawString("\"postData\":")
|
|
|
|
out.String(string(in.PostData))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if in.MixedContentType != "" {
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawString("\"mixedContentType\":")
|
|
|
|
(in.MixedContentType).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"initialPriority\":")
|
|
|
|
(in.InitialPriority).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"referrerPolicy\":")
|
|
|
|
(in.ReferrerPolicy).MarshalEasyJSON(out)
|
2017-04-04 08:44:57 +00:00
|
|
|
if in.IsLinkPreload {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"isLinkPreload\":")
|
|
|
|
out.Bool(bool(in.IsLinkPreload))
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Request) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Request) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *ReplayXHRParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in ReplayXHRParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-03-13 02:29:26 +00:00
|
|
|
func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Initiator) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "stack":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Stack = nil
|
|
|
|
} else {
|
|
|
|
if out.Stack == nil {
|
|
|
|
out.Stack = new(runtime.StackTrace)
|
|
|
|
}
|
|
|
|
(*out.Stack).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "lineNumber":
|
|
|
|
out.LineNumber = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in Initiator) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Stack != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"stack\":")
|
|
|
|
if in.Stack == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Stack).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.LineNumber != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"lineNumber\":")
|
|
|
|
out.Float64(float64(in.LineNumber))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Initiator) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Initiator) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *GetResponseBodyReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "body":
|
|
|
|
out.Body = string(in.String())
|
|
|
|
case "base64Encoded":
|
|
|
|
out.Base64encoded = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in GetResponseBodyReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Body != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"body\":")
|
|
|
|
out.String(string(in.Body))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Base64encoded {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"base64Encoded\":")
|
|
|
|
out.Bool(bool(in.Base64encoded))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "cookies":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Cookies = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Cookies == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Cookies = make([]*Cookie, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Cookies = []*Cookie{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Cookies = (out.Cookies)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v24 *Cookie
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 03:27:15 +00:00
|
|
|
v24 = nil
|
2017-02-18 03:58:29 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
if v24 == nil {
|
|
|
|
v24 = new(Cookie)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
(*v24).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Cookies = append(out.Cookies, v24)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Cookies) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookies\":")
|
|
|
|
if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-06-18 03:27:15 +00:00
|
|
|
for v25, v26 := range in.Cookies {
|
|
|
|
if v25 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if v26 == nil {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
(*v26).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "urls":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Urls = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.Urls == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Urls = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.Urls = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.Urls = (out.Urls)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v27 string
|
|
|
|
v27 = string(in.String())
|
|
|
|
out.Urls = append(out.Urls, v27)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.Urls) != 0 {
|
2017-01-24 15:21:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"urls\":")
|
|
|
|
if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-06-18 03:27:15 +00:00
|
|
|
for v28, v29 := range in.Urls {
|
|
|
|
if v28 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.String(string(v29))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
2017-01-24 15:21:23 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCertificateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "tableNames":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.TableNames = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
|
|
|
if out.TableNames == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.TableNames = make([]string, 0, 4)
|
|
|
|
} else {
|
|
|
|
out.TableNames = []string{}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
out.TableNames = (out.TableNames)[:0]
|
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v30 string
|
|
|
|
v30 = string(in.String())
|
|
|
|
out.TableNames = append(out.TableNames, v30)
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCertificateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if len(in.TableNames) != 0 {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"tableNames\":")
|
|
|
|
if in.TableNames == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-06-18 03:27:15 +00:00
|
|
|
for v31, v32 := range in.TableNames {
|
|
|
|
if v31 > 0 {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.String(string(v32))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetAllCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "cookies":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Cookies = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Cookies == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Cookies = make([]*Cookie, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Cookies = []*Cookie{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Cookies = (out.Cookies)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-06-18 03:27:15 +00:00
|
|
|
var v33 *Cookie
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-06-18 03:27:15 +00:00
|
|
|
v33 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
if v33 == nil {
|
|
|
|
v33 = new(Cookie)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
(*v33).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
out.Cookies = append(out.Cookies, v33)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetAllCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if len(in.Cookies) != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookies\":")
|
|
|
|
if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
2017-06-18 03:27:15 +00:00
|
|
|
for v34, v35 := range in.Cookies {
|
|
|
|
if v34 > 0 {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte(',')
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if v35 == nil {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
(*v35).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte(']')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "wallTime":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.WallTime = nil
|
|
|
|
} else {
|
|
|
|
if out.WallTime == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.WallTime = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.WallTime).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(WebSocketRequest)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"wallTime\":")
|
|
|
|
if in.WallTime == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.WallTime).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Response = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketResponse)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketFrameSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketFrame)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketFrameSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(WebSocketFrame)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "errorMessage":
|
|
|
|
out.ErrorMessage = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameError) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"errorMessage\":")
|
|
|
|
out.String(string(in.ErrorMessage))
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketCreated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "initiator":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Initiator = nil
|
|
|
|
} else {
|
|
|
|
if out.Initiator == nil {
|
|
|
|
out.Initiator = new(Initiator)
|
|
|
|
}
|
|
|
|
(*out.Initiator).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketCreated) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Initiator != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"initiator\":")
|
|
|
|
if in.Initiator == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Initiator).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketClosed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "loaderId":
|
|
|
|
out.LoaderID = cdp.LoaderID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(Response)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventResponseReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"loaderId\":")
|
|
|
|
out.String(string(in.LoaderID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResponseReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResponseReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResourceChangedPriority) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "newPriority":
|
|
|
|
(out.NewPriority).UnmarshalEasyJSON(in)
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResourceChangedPriority) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"newPriority\":")
|
|
|
|
(in.NewPriority).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventRequestWillBeSent) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "loaderId":
|
|
|
|
out.LoaderID = cdp.LoaderID(in.String())
|
|
|
|
case "documentURL":
|
|
|
|
out.DocumentURL = string(in.String())
|
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(Request)
|
|
|
|
}
|
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "wallTime":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.WallTime = nil
|
|
|
|
} else {
|
|
|
|
if out.WallTime == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.WallTime = new(cdp.TimeSinceEpoch)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.WallTime).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "initiator":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Initiator = nil
|
|
|
|
} else {
|
|
|
|
if out.Initiator == nil {
|
|
|
|
out.Initiator = new(Initiator)
|
|
|
|
}
|
|
|
|
(*out.Initiator).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "redirectResponse":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.RedirectResponse = nil
|
|
|
|
} else {
|
|
|
|
if out.RedirectResponse == nil {
|
|
|
|
out.RedirectResponse = new(Response)
|
|
|
|
}
|
|
|
|
(*out.RedirectResponse).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
2017-07-04 01:07:34 +00:00
|
|
|
case "frameId":
|
|
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
2017-02-18 03:58:29 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventRequestWillBeSent) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"loaderId\":")
|
|
|
|
out.String(string(in.LoaderID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"documentURL\":")
|
|
|
|
out.String(string(in.DocumentURL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"wallTime\":")
|
|
|
|
if in.WallTime == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.WallTime).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"initiator\":")
|
|
|
|
if in.Initiator == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Initiator).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.RedirectResponse != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectResponse\":")
|
|
|
|
if in.RedirectResponse == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.RedirectResponse).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Type != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-04 01:07:34 +00:00
|
|
|
if in.FrameID != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"frameId\":")
|
|
|
|
out.String(string(in.FrameID))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestServedFromCache) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestServedFromCache) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestIntercepted) {
|
2017-06-06 10:57:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-06-18 00:55:45 +00:00
|
|
|
case "interceptionId":
|
2017-06-06 10:57:18 +00:00
|
|
|
out.InterceptionID = InterceptionID(in.String())
|
|
|
|
case "request":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Request = nil
|
|
|
|
} else {
|
|
|
|
if out.Request == nil {
|
|
|
|
out.Request = new(Request)
|
|
|
|
}
|
|
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
case "resourceType":
|
|
|
|
(out.ResourceType).UnmarshalEasyJSON(in)
|
2017-06-06 10:57:18 +00:00
|
|
|
case "redirectHeaders":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.RedirectHeaders = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.RedirectHeaders = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v36 interface{}
|
|
|
|
if m, ok := v36.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v36.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v36 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.RedirectHeaders)[key] = v36
|
|
|
|
in.WantComma()
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
case "redirectStatusCode":
|
|
|
|
out.RedirectStatusCode = int64(in.Int64())
|
|
|
|
case "redirectUrl":
|
|
|
|
out.RedirectURL = string(in.String())
|
2017-06-18 00:55:45 +00:00
|
|
|
case "authChallenge":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AuthChallenge = nil
|
|
|
|
} else {
|
|
|
|
if out.AuthChallenge == nil {
|
|
|
|
out.AuthChallenge = new(AuthChallenge)
|
|
|
|
}
|
|
|
|
(*out.AuthChallenge).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestIntercepted) {
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"interceptionId\":")
|
|
|
|
out.String(string(in.InterceptionID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"request\":")
|
|
|
|
if in.Request == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Request).MarshalEasyJSON(out)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"resourceType\":")
|
|
|
|
(in.ResourceType).MarshalEasyJSON(out)
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.RedirectHeaders) != 0 {
|
2017-06-06 10:57:18 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectHeaders\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.RedirectHeaders == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-06-06 10:57:18 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v37First := true
|
|
|
|
for v37Name, v37Value := range in.RedirectHeaders {
|
|
|
|
if !v37First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v37First = false
|
|
|
|
out.String(string(v37Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v37Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v37Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v37Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.RedirectStatusCode != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectStatusCode\":")
|
|
|
|
out.Int64(int64(in.RedirectStatusCode))
|
|
|
|
}
|
|
|
|
if in.RedirectURL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"redirectUrl\":")
|
|
|
|
out.String(string(in.RedirectURL))
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.AuthChallenge != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"authChallenge\":")
|
|
|
|
if in.AuthChallenge == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AuthChallenge).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventRequestIntercepted) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EventRequestIntercepted) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EventRequestIntercepted) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EventRequestIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventLoadingFinished) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventLoadingFinished) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Float64(float64(in.EncodedDataLength))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFinished) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFailed) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "errorText":
|
|
|
|
out.ErrorText = string(in.String())
|
|
|
|
case "canceled":
|
|
|
|
out.Canceled = bool(in.Bool())
|
|
|
|
case "blockedReason":
|
|
|
|
(out.BlockedReason).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFailed) {
|
2017-07-02 11:44:34 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"errorText\":")
|
|
|
|
out.String(string(in.ErrorText))
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Canceled {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"canceled\":")
|
|
|
|
out.Bool(bool(in.Canceled))
|
|
|
|
}
|
|
|
|
if in.BlockedReason != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"blockedReason\":")
|
|
|
|
(in.BlockedReason).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
2017-01-24 15:09:23 +00:00
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFailed) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventEventSourceMessageReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "eventName":
|
|
|
|
out.EventName = string(in.String())
|
|
|
|
case "eventId":
|
|
|
|
out.EventID = string(in.String())
|
|
|
|
case "data":
|
|
|
|
out.Data = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventEventSourceMessageReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"eventName\":")
|
|
|
|
out.String(string(in.EventName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"eventId\":")
|
|
|
|
out.String(string(in.EventID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"data\":")
|
|
|
|
out.String(string(in.Data))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-09 01:40:29 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventDataReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "requestId":
|
|
|
|
out.RequestID = RequestID(in.String())
|
|
|
|
case "timestamp":
|
2017-07-01 13:06:43 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Timestamp = nil
|
|
|
|
} else {
|
|
|
|
if out.Timestamp == nil {
|
2017-07-09 01:40:29 +00:00
|
|
|
out.Timestamp = new(cdp.MonotonicTime)
|
2017-07-01 13:06:43 +00:00
|
|
|
}
|
|
|
|
(*out.Timestamp).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
case "dataLength":
|
|
|
|
out.DataLength = int64(in.Int64())
|
|
|
|
case "encodedDataLength":
|
|
|
|
out.EncodedDataLength = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-09 01:40:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventDataReceived) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"requestId\":")
|
|
|
|
out.String(string(in.RequestID))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"timestamp\":")
|
|
|
|
if in.Timestamp == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Timestamp).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"dataLength\":")
|
|
|
|
out.Int64(int64(in.DataLength))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"encodedDataLength\":")
|
|
|
|
out.Int64(int64(in.EncodedDataLength))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventDataReceived) MarshalJSON() ([]byte, error) {
|
2017-06-06 10:57:18 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v *EventDataReceived) UnmarshalJSON(data []byte) error {
|
2017-06-06 10:57:18 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-07-09 01:40:29 +00:00
|
|
|
func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "maxTotalBufferSize":
|
|
|
|
out.MaxTotalBufferSize = int64(in.Int64())
|
|
|
|
case "maxResourceBufferSize":
|
|
|
|
out.MaxResourceBufferSize = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EnableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.MaxTotalBufferSize != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxTotalBufferSize\":")
|
|
|
|
out.Int64(int64(in.MaxTotalBufferSize))
|
|
|
|
}
|
|
|
|
if in.MaxResourceBufferSize != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"maxResourceBufferSize\":")
|
|
|
|
out.Int64(int64(in.MaxResourceBufferSize))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "offline":
|
|
|
|
out.Offline = bool(in.Bool())
|
|
|
|
case "latency":
|
|
|
|
out.Latency = float64(in.Float64())
|
|
|
|
case "downloadThroughput":
|
|
|
|
out.DownloadThroughput = float64(in.Float64())
|
|
|
|
case "uploadThroughput":
|
|
|
|
out.UploadThroughput = float64(in.Float64())
|
|
|
|
case "connectionType":
|
|
|
|
(out.ConnectionType).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EmulateNetworkConditionsParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"offline\":")
|
|
|
|
out.Bool(bool(in.Offline))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"latency\":")
|
|
|
|
out.Float64(float64(in.Latency))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"downloadThroughput\":")
|
|
|
|
out.Float64(float64(in.DownloadThroughput))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"uploadThroughput\":")
|
|
|
|
out.Float64(float64(in.UploadThroughput))
|
|
|
|
if in.ConnectionType != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"connectionType\":")
|
|
|
|
(in.ConnectionType).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in DisableParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DeleteCookieParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "cookieName":
|
|
|
|
out.CookieName = string(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DeleteCookieParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"cookieName\":")
|
|
|
|
out.String(string(in.CookieName))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v DeleteCookieParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v DeleteCookieParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *DeleteCookieParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *DeleteCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *Cookie) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "name":
|
|
|
|
out.Name = string(in.String())
|
|
|
|
case "value":
|
|
|
|
out.Value = string(in.String())
|
|
|
|
case "domain":
|
|
|
|
out.Domain = string(in.String())
|
|
|
|
case "path":
|
|
|
|
out.Path = string(in.String())
|
|
|
|
case "expires":
|
|
|
|
out.Expires = float64(in.Float64())
|
|
|
|
case "size":
|
|
|
|
out.Size = int64(in.Int64())
|
|
|
|
case "httpOnly":
|
|
|
|
out.HTTPOnly = bool(in.Bool())
|
|
|
|
case "secure":
|
|
|
|
out.Secure = bool(in.Bool())
|
|
|
|
case "session":
|
|
|
|
out.Session = bool(in.Bool())
|
|
|
|
case "sameSite":
|
|
|
|
(out.SameSite).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in Cookie) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"name\":")
|
|
|
|
out.String(string(in.Name))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.String(string(in.Value))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"domain\":")
|
|
|
|
out.String(string(in.Domain))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"path\":")
|
|
|
|
out.String(string(in.Path))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"expires\":")
|
|
|
|
out.Float64(float64(in.Expires))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"size\":")
|
|
|
|
out.Int64(int64(in.Size))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"httpOnly\":")
|
|
|
|
out.Bool(bool(in.HTTPOnly))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"secure\":")
|
|
|
|
out.Bool(bool(in.Secure))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"session\":")
|
|
|
|
out.Bool(bool(in.Session))
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.SameSite != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"sameSite\":")
|
|
|
|
(in.SameSite).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v Cookie) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *Cookie) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *ContinueInterceptedRequestParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-06-06 10:57:18 +00:00
|
|
|
case "interceptionId":
|
|
|
|
out.InterceptionID = InterceptionID(in.String())
|
|
|
|
case "errorReason":
|
|
|
|
(out.ErrorReason).UnmarshalEasyJSON(in)
|
|
|
|
case "rawResponse":
|
|
|
|
out.RawResponse = string(in.String())
|
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "method":
|
|
|
|
out.Method = string(in.String())
|
|
|
|
case "postData":
|
|
|
|
out.PostData = string(in.String())
|
|
|
|
case "headers":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('{')
|
|
|
|
if !in.IsDelim('}') {
|
|
|
|
out.Headers = make(Headers)
|
|
|
|
} else {
|
|
|
|
out.Headers = nil
|
|
|
|
}
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := string(in.String())
|
|
|
|
in.WantColon()
|
|
|
|
var v38 interface{}
|
|
|
|
if m, ok := v38.(easyjson.Unmarshaler); ok {
|
|
|
|
m.UnmarshalEasyJSON(in)
|
|
|
|
} else if m, ok := v38.(json.Unmarshaler); ok {
|
2017-06-25 01:38:47 +00:00
|
|
|
_ = m.UnmarshalJSON(in.Raw())
|
2017-06-18 03:27:15 +00:00
|
|
|
} else {
|
|
|
|
v38 = in.Interface()
|
|
|
|
}
|
|
|
|
(out.Headers)[key] = v38
|
|
|
|
in.WantComma()
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
in.Delim('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
case "authChallengeResponse":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.AuthChallengeResponse = nil
|
|
|
|
} else {
|
|
|
|
if out.AuthChallengeResponse == nil {
|
|
|
|
out.AuthChallengeResponse = new(AuthChallengeResponse)
|
|
|
|
}
|
|
|
|
(*out.AuthChallengeResponse).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in ContinueInterceptedRequestParams) {
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"interceptionId\":")
|
|
|
|
out.String(string(in.InterceptionID))
|
|
|
|
if in.ErrorReason != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"errorReason\":")
|
|
|
|
(in.ErrorReason).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
if in.RawResponse != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"rawResponse\":")
|
|
|
|
out.String(string(in.RawResponse))
|
|
|
|
}
|
|
|
|
if in.URL != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
}
|
|
|
|
if in.Method != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"method\":")
|
|
|
|
out.String(string(in.Method))
|
|
|
|
}
|
|
|
|
if in.PostData != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"postData\":")
|
|
|
|
out.String(string(in.PostData))
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
if len(in.Headers) != 0 {
|
2017-06-06 10:57:18 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"headers\":")
|
2017-06-18 03:27:15 +00:00
|
|
|
if in.Headers == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
|
|
out.RawString(`null`)
|
2017-06-06 10:57:18 +00:00
|
|
|
} else {
|
2017-06-18 03:27:15 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
v39First := true
|
|
|
|
for v39Name, v39Value := range in.Headers {
|
|
|
|
if !v39First {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
v39First = false
|
|
|
|
out.String(string(v39Name))
|
|
|
|
out.RawByte(':')
|
|
|
|
if m, ok := v39Value.(easyjson.Marshaler); ok {
|
|
|
|
m.MarshalEasyJSON(out)
|
|
|
|
} else if m, ok := v39Value.(json.Marshaler); ok {
|
|
|
|
out.Raw(m.MarshalJSON())
|
|
|
|
} else {
|
|
|
|
out.Raw(json.Marshal(v39Value))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
}
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.AuthChallengeResponse != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"authChallengeResponse\":")
|
|
|
|
if in.AuthChallengeResponse == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.AuthChallengeResponse).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-06-06 10:57:18 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v)
|
2017-06-06 10:57:18 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *ClearBrowserCookiesParams) {
|
2017-06-06 10:57:18 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in ClearBrowserCookiesParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *ClearBrowserCacheParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in ClearBrowserCacheParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsReturns) MarshalJSON() ([]byte, error) {
|
2017-02-14 08:41:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error {
|
2017-02-14 08:41:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) {
|
2017-02-14 08:41:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanClearBrowserCookiesReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-14 08:41:23 +00:00
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v CanClearBrowserCookiesReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanClearBrowserCookiesParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCookiesParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCacheReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v CanClearBrowserCacheReturns) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CanClearBrowserCacheParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Skip()
|
|
|
|
return
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.WantComma()
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CanClearBrowserCacheParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCacheParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *CachedResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "url":
|
|
|
|
out.URL = string(in.String())
|
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "response":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Response = nil
|
|
|
|
} else {
|
|
|
|
if out.Response == nil {
|
|
|
|
out.Response = new(Response)
|
|
|
|
}
|
|
|
|
(*out.Response).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "bodySize":
|
|
|
|
out.BodySize = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in CachedResource) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"url\":")
|
|
|
|
out.String(string(in.URL))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Response != nil {
|
2017-02-14 08:41:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"response\":")
|
|
|
|
if in.Response == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Response).MarshalEasyJSON(out)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"bodySize\":")
|
|
|
|
out.Float64(float64(in.BodySize))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CachedResource) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CachedResource) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, out *AuthChallengeResponse) {
|
2017-06-18 00:55:45 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "response":
|
|
|
|
(out.Response).UnmarshalEasyJSON(in)
|
|
|
|
case "username":
|
|
|
|
out.Username = string(in.String())
|
|
|
|
case "password":
|
|
|
|
out.Password = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, in AuthChallengeResponse) {
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"response\":")
|
|
|
|
(in.Response).MarshalEasyJSON(out)
|
2017-06-18 00:55:45 +00:00
|
|
|
if in.Username != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"username\":")
|
|
|
|
out.String(string(in.Username))
|
|
|
|
}
|
|
|
|
if in.Password != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"password\":")
|
|
|
|
out.String(string(in.Password))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(&w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(&r, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(l, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, out *AuthChallenge) {
|
2017-06-18 00:55:45 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "source":
|
|
|
|
(out.Source).UnmarshalEasyJSON(in)
|
|
|
|
case "origin":
|
|
|
|
out.Origin = string(in.String())
|
|
|
|
case "scheme":
|
|
|
|
out.Scheme = string(in.String())
|
|
|
|
case "realm":
|
|
|
|
out.Realm = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-06-18 03:27:15 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, in AuthChallenge) {
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if in.Source != "" {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"source\":")
|
|
|
|
(in.Source).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"origin\":")
|
|
|
|
out.String(string(in.Origin))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"scheme\":")
|
|
|
|
out.String(string(in.Scheme))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"realm\":")
|
|
|
|
out.String(string(in.Realm))
|
2017-06-18 00:55:45 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v AuthChallenge) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(&w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(w, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *AuthChallenge) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(&r, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-06-18 03:27:15 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(l, v)
|
2017-06-18 00:55:45 +00:00
|
|
|
}
|