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