package preload
import (
json "encoding/json"
cdp "github.com/chromedp/cdproto/cdp"
network "github.com/chromedp/cdproto/network"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
var (
_ *json .RawMessage
_ *jlexer .Lexer
_ *jwriter .Writer
_ easyjson .Marshaler
)
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload(in *jlexer .Lexer , out *RuleSet ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "id" :
out .ID = RuleSetID (in .String ())
case "loaderId" :
out .LoaderID = cdp .LoaderID (in .String ())
case "sourceText" :
out .SourceText = string (in .String ())
case "backendNodeId" :
(out .BackendNodeID ).UnmarshalEasyJSON (in )
case "url" :
out .URL = string (in .String ())
case "requestId" :
out .RequestID = network .RequestID (in .String ())
case "errorType" :
(out .ErrorType ).UnmarshalEasyJSON (in )
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload(out *jwriter .Writer , in RuleSet ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"id\":"
out .RawString (prefix [1 :])
out .String (string (in .ID ))
}
{
const prefix string = ",\"loaderId\":"
out .RawString (prefix )
out .String (string (in .LoaderID ))
}
{
const prefix string = ",\"sourceText\":"
out .RawString (prefix )
out .String (string (in .SourceText ))
}
if in .BackendNodeID != 0 {
const prefix string = ",\"backendNodeId\":"
out .RawString (prefix )
out .Int64 (int64 (in .BackendNodeID ))
}
if in .URL != "" {
const prefix string = ",\"url\":"
out .RawString (prefix )
out .String (string (in .URL ))
}
if in .RequestID != "" {
const prefix string = ",\"requestId\":"
out .RawString (prefix )
out .String (string (in .RequestID ))
}
if in .ErrorType != "" {
const prefix string = ",\"errorType\":"
out .RawString (prefix )
(in .ErrorType ).MarshalEasyJSON (out )
}
out .RawByte ('}' )
}
func (v RuleSet ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v RuleSet ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload (w , v )
}
func (v *RuleSet ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload (&r , v )
return r .Error ()
}
func (v *RuleSet ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload1(in *jlexer .Lexer , out *IngAttemptSource ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "key" :
if in .IsNull () {
in .Skip ()
out .Key = nil
} else {
if out .Key == nil {
out .Key = new (IngAttemptKey )
}
(*out .Key ).UnmarshalEasyJSON (in )
}
case "ruleSetIds" :
if in .IsNull () {
in .Skip ()
out .RuleSetIDs = nil
} else {
in .Delim ('[' )
if out .RuleSetIDs == nil {
if !in .IsDelim (']' ) {
out .RuleSetIDs = make ([]RuleSetID , 0 , 4 )
} else {
out .RuleSetIDs = []RuleSetID {}
}
} else {
out .RuleSetIDs = (out .RuleSetIDs )[:0 ]
}
for !in .IsDelim (']' ) {
var v1 RuleSetID
v1 = RuleSetID (in .String ())
out .RuleSetIDs = append (out .RuleSetIDs , v1 )
in .WantComma ()
}
in .Delim (']' )
}
case "nodeIds" :
if in .IsNull () {
in .Skip ()
out .NodeIDs = nil
} else {
in .Delim ('[' )
if out .NodeIDs == nil {
if !in .IsDelim (']' ) {
out .NodeIDs = make ([]cdp .BackendNodeID , 0 , 8 )
} else {
out .NodeIDs = []cdp .BackendNodeID {}
}
} else {
out .NodeIDs = (out .NodeIDs )[:0 ]
}
for !in .IsDelim (']' ) {
var v2 cdp .BackendNodeID
(v2 ).UnmarshalEasyJSON (in )
out .NodeIDs = append (out .NodeIDs , v2 )
in .WantComma ()
}
in .Delim (']' )
}
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload1(out *jwriter .Writer , in IngAttemptSource ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"key\":"
out .RawString (prefix [1 :])
if in .Key == nil {
out .RawString ("null" )
} else {
(*in .Key ).MarshalEasyJSON (out )
}
}
{
const prefix string = ",\"ruleSetIds\":"
out .RawString (prefix )
if in .RuleSetIDs == nil && (out .Flags &jwriter .NilSliceAsEmpty ) == 0 {
out .RawString ("null" )
} else {
out .RawByte ('[' )
for v3 , v4 := range in .RuleSetIDs {
if v3 > 0 {
out .RawByte (',' )
}
out .String (string (v4 ))
}
out .RawByte (']' )
}
}
{
const prefix string = ",\"nodeIds\":"
out .RawString (prefix )
if in .NodeIDs == nil && (out .Flags &jwriter .NilSliceAsEmpty ) == 0 {
out .RawString ("null" )
} else {
out .RawByte ('[' )
for v5 , v6 := range in .NodeIDs {
if v5 > 0 {
out .RawByte (',' )
}
out .Int64 (int64 (v6 ))
}
out .RawByte (']' )
}
}
out .RawByte ('}' )
}
func (v IngAttemptSource ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload1 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v IngAttemptSource ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload1 (w , v )
}
func (v *IngAttemptSource ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload1 (&r , v )
return r .Error ()
}
func (v *IngAttemptSource ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload1 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload2(in *jlexer .Lexer , out *IngAttemptKey ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "loaderId" :
out .LoaderID = cdp .LoaderID (in .String ())
case "action" :
(out .Action ).UnmarshalEasyJSON (in )
case "url" :
out .URL = string (in .String ())
case "targetHint" :
(out .TargetHint ).UnmarshalEasyJSON (in )
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload2(out *jwriter .Writer , in IngAttemptKey ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"loaderId\":"
out .RawString (prefix [1 :])
out .String (string (in .LoaderID ))
}
{
const prefix string = ",\"action\":"
out .RawString (prefix )
(in .Action ).MarshalEasyJSON (out )
}
{
const prefix string = ",\"url\":"
out .RawString (prefix )
out .String (string (in .URL ))
}
if in .TargetHint != "" {
const prefix string = ",\"targetHint\":"
out .RawString (prefix )
(in .TargetHint ).MarshalEasyJSON (out )
}
out .RawByte ('}' )
}
func (v IngAttemptKey ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload2 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v IngAttemptKey ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload2 (w , v )
}
func (v *IngAttemptKey ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload2 (&r , v )
return r .Error ()
}
func (v *IngAttemptKey ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload2 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload3(in *jlexer .Lexer , out *EventRuleSetUpdated ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "ruleSet" :
if in .IsNull () {
in .Skip ()
out .RuleSet = nil
} else {
if out .RuleSet == nil {
out .RuleSet = new (RuleSet )
}
(*out .RuleSet ).UnmarshalEasyJSON (in )
}
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload3(out *jwriter .Writer , in EventRuleSetUpdated ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"ruleSet\":"
out .RawString (prefix [1 :])
if in .RuleSet == nil {
out .RawString ("null" )
} else {
(*in .RuleSet ).MarshalEasyJSON (out )
}
}
out .RawByte ('}' )
}
func (v EventRuleSetUpdated ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload3 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventRuleSetUpdated ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload3 (w , v )
}
func (v *EventRuleSetUpdated ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload3 (&r , v )
return r .Error ()
}
func (v *EventRuleSetUpdated ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload3 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload4(in *jlexer .Lexer , out *EventRuleSetRemoved ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "id" :
out .ID = RuleSetID (in .String ())
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload4(out *jwriter .Writer , in EventRuleSetRemoved ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"id\":"
out .RawString (prefix [1 :])
out .String (string (in .ID ))
}
out .RawByte ('}' )
}
func (v EventRuleSetRemoved ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload4 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventRuleSetRemoved ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload4 (w , v )
}
func (v *EventRuleSetRemoved ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload4 (&r , v )
return r .Error ()
}
func (v *EventRuleSetRemoved ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload4 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload5(in *jlexer .Lexer , out *EventPrerenderStatusUpdated ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "key" :
if in .IsNull () {
in .Skip ()
out .Key = nil
} else {
if out .Key == nil {
out .Key = new (IngAttemptKey )
}
(*out .Key ).UnmarshalEasyJSON (in )
}
case "status" :
(out .Status ).UnmarshalEasyJSON (in )
case "prerenderStatus" :
(out .PrerenderStatus ).UnmarshalEasyJSON (in )
case "disallowedMojoInterface" :
out .DisallowedMojoInterface = string (in .String ())
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload5(out *jwriter .Writer , in EventPrerenderStatusUpdated ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"key\":"
out .RawString (prefix [1 :])
if in .Key == nil {
out .RawString ("null" )
} else {
(*in .Key ).MarshalEasyJSON (out )
}
}
{
const prefix string = ",\"status\":"
out .RawString (prefix )
(in .Status ).MarshalEasyJSON (out )
}
if in .PrerenderStatus != "" {
const prefix string = ",\"prerenderStatus\":"
out .RawString (prefix )
(in .PrerenderStatus ).MarshalEasyJSON (out )
}
if in .DisallowedMojoInterface != "" {
const prefix string = ",\"disallowedMojoInterface\":"
out .RawString (prefix )
out .String (string (in .DisallowedMojoInterface ))
}
out .RawByte ('}' )
}
func (v EventPrerenderStatusUpdated ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload5 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventPrerenderStatusUpdated ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload5 (w , v )
}
func (v *EventPrerenderStatusUpdated ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload5 (&r , v )
return r .Error ()
}
func (v *EventPrerenderStatusUpdated ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload5 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6(in *jlexer .Lexer , out *EventPreloadingAttemptSourcesUpdated ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "loaderId" :
out .LoaderID = cdp .LoaderID (in .String ())
case "preloadingAttemptSources" :
if in .IsNull () {
in .Skip ()
out .PreloadingAttemptSources = nil
} else {
in .Delim ('[' )
if out .PreloadingAttemptSources == nil {
if !in .IsDelim (']' ) {
out .PreloadingAttemptSources = make ([]*IngAttemptSource , 0 , 8 )
} else {
out .PreloadingAttemptSources = []*IngAttemptSource {}
}
} else {
out .PreloadingAttemptSources = (out .PreloadingAttemptSources )[:0 ]
}
for !in .IsDelim (']' ) {
var v7 *IngAttemptSource
if in .IsNull () {
in .Skip ()
v7 = nil
} else {
if v7 == nil {
v7 = new (IngAttemptSource )
}
(*v7 ).UnmarshalEasyJSON (in )
}
out .PreloadingAttemptSources = append (out .PreloadingAttemptSources , v7 )
in .WantComma ()
}
in .Delim (']' )
}
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6(out *jwriter .Writer , in EventPreloadingAttemptSourcesUpdated ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"loaderId\":"
out .RawString (prefix [1 :])
out .String (string (in .LoaderID ))
}
{
const prefix string = ",\"preloadingAttemptSources\":"
out .RawString (prefix )
if in .PreloadingAttemptSources == nil && (out .Flags &jwriter .NilSliceAsEmpty ) == 0 {
out .RawString ("null" )
} else {
out .RawByte ('[' )
for v8 , v9 := range in .PreloadingAttemptSources {
if v8 > 0 {
out .RawByte (',' )
}
if v9 == nil {
out .RawString ("null" )
} else {
(*v9 ).MarshalEasyJSON (out )
}
}
out .RawByte (']' )
}
}
out .RawByte ('}' )
}
func (v EventPreloadingAttemptSourcesUpdated ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventPreloadingAttemptSourcesUpdated ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload6 (w , v )
}
func (v *EventPreloadingAttemptSourcesUpdated ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6 (&r , v )
return r .Error ()
}
func (v *EventPreloadingAttemptSourcesUpdated ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload6 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7(in *jlexer .Lexer , out *EventPreloadEnabledStateUpdated ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "disabledByPreference" :
out .DisabledByPreference = bool (in .Bool ())
case "disabledByDataSaver" :
out .DisabledByDataSaver = bool (in .Bool ())
case "disabledByBatterySaver" :
out .DisabledByBatterySaver = bool (in .Bool ())
case "disabledByHoldbackPrefetchSpeculationRules" :
out .DisabledByHoldbackPrefetchSpeculationRules = bool (in .Bool ())
case "disabledByHoldbackPrerenderSpeculationRules" :
out .DisabledByHoldbackPrerenderSpeculationRules = bool (in .Bool ())
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7(out *jwriter .Writer , in EventPreloadEnabledStateUpdated ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"disabledByPreference\":"
out .RawString (prefix [1 :])
out .Bool (bool (in .DisabledByPreference ))
}
{
const prefix string = ",\"disabledByDataSaver\":"
out .RawString (prefix )
out .Bool (bool (in .DisabledByDataSaver ))
}
{
const prefix string = ",\"disabledByBatterySaver\":"
out .RawString (prefix )
out .Bool (bool (in .DisabledByBatterySaver ))
}
{
const prefix string = ",\"disabledByHoldbackPrefetchSpeculationRules\":"
out .RawString (prefix )
out .Bool (bool (in .DisabledByHoldbackPrefetchSpeculationRules ))
}
{
const prefix string = ",\"disabledByHoldbackPrerenderSpeculationRules\":"
out .RawString (prefix )
out .Bool (bool (in .DisabledByHoldbackPrerenderSpeculationRules ))
}
out .RawByte ('}' )
}
func (v EventPreloadEnabledStateUpdated ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventPreloadEnabledStateUpdated ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload7 (w , v )
}
func (v *EventPreloadEnabledStateUpdated ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7 (&r , v )
return r .Error ()
}
func (v *EventPreloadEnabledStateUpdated ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload7 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8(in *jlexer .Lexer , out *EventPrefetchStatusUpdated ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
case "key" :
if in .IsNull () {
in .Skip ()
out .Key = nil
} else {
if out .Key == nil {
out .Key = new (IngAttemptKey )
}
(*out .Key ).UnmarshalEasyJSON (in )
}
case "initiatingFrameId" :
(out .InitiatingFrameID ).UnmarshalEasyJSON (in )
case "prefetchUrl" :
out .PrefetchURL = string (in .String ())
case "status" :
(out .Status ).UnmarshalEasyJSON (in )
case "prefetchStatus" :
(out .PrefetchStatus ).UnmarshalEasyJSON (in )
case "requestId" :
out .RequestID = network .RequestID (in .String ())
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8(out *jwriter .Writer , in EventPrefetchStatusUpdated ) {
out .RawByte ('{' )
first := true
_ = first
{
const prefix string = ",\"key\":"
out .RawString (prefix [1 :])
if in .Key == nil {
out .RawString ("null" )
} else {
(*in .Key ).MarshalEasyJSON (out )
}
}
{
const prefix string = ",\"initiatingFrameId\":"
out .RawString (prefix )
out .String (string (in .InitiatingFrameID ))
}
{
const prefix string = ",\"prefetchUrl\":"
out .RawString (prefix )
out .String (string (in .PrefetchURL ))
}
{
const prefix string = ",\"status\":"
out .RawString (prefix )
(in .Status ).MarshalEasyJSON (out )
}
{
const prefix string = ",\"prefetchStatus\":"
out .RawString (prefix )
(in .PrefetchStatus ).MarshalEasyJSON (out )
}
{
const prefix string = ",\"requestId\":"
out .RawString (prefix )
out .String (string (in .RequestID ))
}
out .RawByte ('}' )
}
func (v EventPrefetchStatusUpdated ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EventPrefetchStatusUpdated ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload8 (w , v )
}
func (v *EventPrefetchStatusUpdated ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8 (&r , v )
return r .Error ()
}
func (v *EventPrefetchStatusUpdated ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload8 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9(in *jlexer .Lexer , out *EnableParams ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9(out *jwriter .Writer , in EnableParams ) {
out .RawByte ('{' )
first := true
_ = first
out .RawByte ('}' )
}
func (v EnableParams ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v EnableParams ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload9 (w , v )
}
func (v *EnableParams ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9 (&r , v )
return r .Error ()
}
func (v *EnableParams ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload9 (l , v )
}
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10(in *jlexer .Lexer , out *DisableParams ) {
isTopLevel := in .IsStart ()
if in .IsNull () {
if isTopLevel {
in .Consumed ()
}
in .Skip ()
return
}
in .Delim ('{' )
for !in .IsDelim ('}' ) {
key := in .UnsafeFieldName (false )
in .WantColon ()
if in .IsNull () {
in .Skip ()
in .WantComma ()
continue
}
switch key {
default :
in .SkipRecursive ()
}
in .WantComma ()
}
in .Delim ('}' )
if isTopLevel {
in .Consumed ()
}
}
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10(out *jwriter .Writer , in DisableParams ) {
out .RawByte ('{' )
first := true
_ = first
out .RawByte ('}' )
}
func (v DisableParams ) MarshalJSON () ([]byte , error ) {
w := jwriter .Writer {}
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10 (&w , v )
return w .Buffer .BuildBytes (), w .Error
}
func (v DisableParams ) MarshalEasyJSON (w *jwriter .Writer ) {
easyjsonC5a4559bEncodeGithubComChromedpCdprotoPreload10 (w , v )
}
func (v *DisableParams ) UnmarshalJSON (data []byte ) error {
r := jlexer .Lexer {Data : data }
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10 (&r , v )
return r .Error ()
}
func (v *DisableParams ) UnmarshalEasyJSON (l *jlexer .Lexer ) {
easyjsonC5a4559bDecodeGithubComChromedpCdprotoPreload10 (l , v )
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .