2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package emulation
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
2017-02-07 13:07:16 +00:00
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(in *jlexer.Lexer, out *SetVirtualTimePolicyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "policy":
|
|
|
|
(out.Policy).UnmarshalEasyJSON(in)
|
|
|
|
case "budget":
|
|
|
|
out.Budget = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(out *jwriter.Writer, in SetVirtualTimePolicyParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"policy\":")
|
|
|
|
(in.Policy).MarshalEasyJSON(out)
|
|
|
|
if in.Budget != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"budget\":")
|
|
|
|
out.Int64(int64(in.Budget))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetVirtualTimePolicyParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetVirtualTimePolicyParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetVirtualTimePolicyParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetVirtualTimePolicyParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(in *jlexer.Lexer, out *SetTouchEmulationEnabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "enabled":
|
|
|
|
out.Enabled = bool(in.Bool())
|
|
|
|
case "configuration":
|
|
|
|
(out.Configuration).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(out *jwriter.Writer, in SetTouchEmulationEnabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"enabled\":")
|
|
|
|
out.Bool(bool(in.Enabled))
|
|
|
|
if in.Configuration != "" {
|
2017-01-24 15:09:23 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"configuration\":")
|
|
|
|
(in.Configuration).MarshalEasyJSON(out)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetTouchEmulationEnabledParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetTouchEmulationEnabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation1(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetTouchEmulationEnabledParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetTouchEmulationEnabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation1(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(in *jlexer.Lexer, out *SetScriptExecutionDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "value":
|
|
|
|
out.Value = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(out *jwriter.Writer, in SetScriptExecutionDisabledParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"value\":")
|
|
|
|
out.Bool(bool(in.Value))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetScriptExecutionDisabledParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetScriptExecutionDisabledParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation2(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetScriptExecutionDisabledParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetScriptExecutionDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation2(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(in *jlexer.Lexer, out *SetPageScaleFactorParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "pageScaleFactor":
|
|
|
|
out.PageScaleFactor = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(out *jwriter.Writer, in SetPageScaleFactorParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"pageScaleFactor\":")
|
|
|
|
out.Float64(float64(in.PageScaleFactor))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetPageScaleFactorParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation3(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation3(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(in *jlexer.Lexer, out *SetGeolocationOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "latitude":
|
|
|
|
out.Latitude = float64(in.Float64())
|
|
|
|
case "longitude":
|
|
|
|
out.Longitude = float64(in.Float64())
|
|
|
|
case "accuracy":
|
|
|
|
out.Accuracy = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(out *jwriter.Writer, in SetGeolocationOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Latitude != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"latitude\":")
|
|
|
|
out.Float64(float64(in.Latitude))
|
|
|
|
}
|
|
|
|
if in.Longitude != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"longitude\":")
|
|
|
|
out.Float64(float64(in.Longitude))
|
|
|
|
}
|
|
|
|
if in.Accuracy != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"accuracy\":")
|
|
|
|
out.Float64(float64(in.Accuracy))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation4(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation4(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(in *jlexer.Lexer, out *SetEmulatedMediaParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "media":
|
|
|
|
out.Media = string(in.String())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(out *jwriter.Writer, in SetEmulatedMediaParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"media\":")
|
|
|
|
out.String(string(in.Media))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetEmulatedMediaParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetEmulatedMediaParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation5(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetEmulatedMediaParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetEmulatedMediaParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation5(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(in *jlexer.Lexer, out *SetDeviceMetricsOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "width":
|
|
|
|
out.Width = int64(in.Int64())
|
|
|
|
case "height":
|
|
|
|
out.Height = int64(in.Int64())
|
|
|
|
case "deviceScaleFactor":
|
|
|
|
out.DeviceScaleFactor = float64(in.Float64())
|
|
|
|
case "mobile":
|
|
|
|
out.Mobile = bool(in.Bool())
|
|
|
|
case "fitWindow":
|
|
|
|
out.FitWindow = bool(in.Bool())
|
|
|
|
case "scale":
|
|
|
|
out.Scale = float64(in.Float64())
|
|
|
|
case "screenWidth":
|
|
|
|
out.ScreenWidth = int64(in.Int64())
|
|
|
|
case "screenHeight":
|
|
|
|
out.ScreenHeight = int64(in.Int64())
|
|
|
|
case "positionX":
|
|
|
|
out.PositionX = int64(in.Int64())
|
|
|
|
case "positionY":
|
|
|
|
out.PositionY = int64(in.Int64())
|
|
|
|
case "screenOrientation":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.ScreenOrientation = nil
|
|
|
|
} else {
|
|
|
|
if out.ScreenOrientation == nil {
|
|
|
|
out.ScreenOrientation = new(ScreenOrientation)
|
|
|
|
}
|
|
|
|
(*out.ScreenOrientation).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(out *jwriter.Writer, in SetDeviceMetricsOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"width\":")
|
|
|
|
out.Int64(int64(in.Width))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"height\":")
|
|
|
|
out.Int64(int64(in.Height))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"deviceScaleFactor\":")
|
|
|
|
out.Float64(float64(in.DeviceScaleFactor))
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"mobile\":")
|
|
|
|
out.Bool(bool(in.Mobile))
|
2017-07-13 00:28:14 +00:00
|
|
|
if in.FitWindow {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"fitWindow\":")
|
|
|
|
out.Bool(bool(in.FitWindow))
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
if in.Scale != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"scale\":")
|
|
|
|
out.Float64(float64(in.Scale))
|
|
|
|
}
|
|
|
|
if in.ScreenWidth != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"screenWidth\":")
|
|
|
|
out.Int64(int64(in.ScreenWidth))
|
|
|
|
}
|
|
|
|
if in.ScreenHeight != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"screenHeight\":")
|
|
|
|
out.Int64(int64(in.ScreenHeight))
|
|
|
|
}
|
|
|
|
if in.PositionX != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"positionX\":")
|
|
|
|
out.Int64(int64(in.PositionX))
|
|
|
|
}
|
|
|
|
if in.PositionY != 0 {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"positionY\":")
|
|
|
|
out.Int64(int64(in.PositionY))
|
|
|
|
}
|
|
|
|
if in.ScreenOrientation != nil {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"screenOrientation\":")
|
|
|
|
if in.ScreenOrientation == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.ScreenOrientation).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation6(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation6(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(in *jlexer.Lexer, out *SetDefaultBackgroundColorOverrideParams) {
|
2017-02-07 13:07:16 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "color":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Color = nil
|
|
|
|
} else {
|
|
|
|
if out.Color == nil {
|
|
|
|
out.Color = new(cdp.RGBA)
|
|
|
|
}
|
|
|
|
(*out.Color).UnmarshalEasyJSON(in)
|
|
|
|
}
|
2017-02-07 13:07:16 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(out *jwriter.Writer, in SetDefaultBackgroundColorOverrideParams) {
|
2017-02-07 13:07:16 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Color != nil {
|
2017-02-07 13:07:16 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawString("\"color\":")
|
|
|
|
if in.Color == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.Color).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-02-07 13:07:16 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDefaultBackgroundColorOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-02-07 13:07:16 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(&w, v)
|
2017-02-07 13:07:16 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetDefaultBackgroundColorOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation7(w, v)
|
2017-02-07 13:07:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-02-07 13:07:16 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(&r, v)
|
2017-02-07 13:07:16 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetDefaultBackgroundColorOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation7(l, v)
|
2017-02-07 13:07:16 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(in *jlexer.Lexer, out *SetCPUThrottlingRateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "rate":
|
|
|
|
out.Rate = float64(in.Float64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(out *jwriter.Writer, in SetCPUThrottlingRateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"rate\":")
|
|
|
|
out.Float64(float64(in.Rate))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCPUThrottlingRateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v SetCPUThrottlingRateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation8(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCPUThrottlingRateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *SetCPUThrottlingRateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation8(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(in *jlexer.Lexer, out *ScreenOrientation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "type":
|
|
|
|
(out.Type).UnmarshalEasyJSON(in)
|
|
|
|
case "angle":
|
|
|
|
out.Angle = int64(in.Int64())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(out *jwriter.Writer, in ScreenOrientation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-07-02 11:44:34 +00:00
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"type\":")
|
|
|
|
(in.Type).MarshalEasyJSON(out)
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
first = false
|
|
|
|
out.RawString("\"angle\":")
|
|
|
|
out.Int64(int64(in.Angle))
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ScreenOrientation) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ScreenOrientation) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation9(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ScreenOrientation) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ScreenOrientation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation9(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(in *jlexer.Lexer, out *ResetPageScaleFactorParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(out *jwriter.Writer, in ResetPageScaleFactorParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResetPageScaleFactorParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ResetPageScaleFactorParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation10(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResetPageScaleFactorParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ResetPageScaleFactorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation10(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(in *jlexer.Lexer, out *EventVirtualTimeBudgetExpired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(out *jwriter.Writer, in EventVirtualTimeBudgetExpired) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventVirtualTimeBudgetExpired) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v EventVirtualTimeBudgetExpired) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation11(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventVirtualTimeBudgetExpired) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *EventVirtualTimeBudgetExpired) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation11(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(in *jlexer.Lexer, out *ClearGeolocationOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(out *jwriter.Writer, in ClearGeolocationOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearGeolocationOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearGeolocationOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation12(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearGeolocationOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearGeolocationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation12(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(in *jlexer.Lexer, out *ClearDeviceMetricsOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(out *jwriter.Writer, in ClearDeviceMetricsOverrideParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearDeviceMetricsOverrideParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v ClearDeviceMetricsOverrideParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation13(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearDeviceMetricsOverrideParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *ClearDeviceMetricsOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation13(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(in *jlexer.Lexer, out *CanEmulateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "result":
|
|
|
|
out.Result = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(out *jwriter.Writer, in CanEmulateReturns) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-02-18 03:58:29 +00:00
|
|
|
if in.Result {
|
|
|
|
if !first {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
first = false
|
|
|
|
out.RawString("\"result\":")
|
|
|
|
out.Bool(bool(in.Result))
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateReturns) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation14(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateReturns) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation14(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(in *jlexer.Lexer, out *CanEmulateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-07-13 00:28:14 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(out *jwriter.Writer, in CanEmulateParams) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateParams) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v CanEmulateParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpEmulation15(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateParams) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *CanEmulateParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-07-13 00:28:14 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpEmulation15(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|