mirror of
https://github.com/stashapp/stash.git
synced 2025-12-14 12:25:23 +01:00
964 lines
24 KiB
Go
964 lines
24 KiB
Go
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
|
|
|
package applicationcache
|
|
|
|
import (
|
|
json "encoding/json"
|
|
easyjson "github.com/mailru/easyjson"
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
)
|
|
|
|
// suppress unused package warning
|
|
var (
|
|
_ *json.RawMessage
|
|
_ *jlexer.Lexer
|
|
_ *jwriter.Writer
|
|
_ easyjson.Marshaler
|
|
)
|
|
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache(in *jlexer.Lexer, out *Resource) {
|
|
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 "size":
|
|
out.Size = int64(in.Int64())
|
|
case "type":
|
|
out.Type = string(in.String())
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache(out *jwriter.Writer, in Resource) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"url\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.URL))
|
|
}
|
|
{
|
|
const prefix string = ",\"size\":"
|
|
out.RawString(prefix)
|
|
out.Int64(int64(in.Size))
|
|
}
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Type))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v Resource) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v Resource) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *Resource) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *Resource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache1(in *jlexer.Lexer, out *GetManifestForFrameReturns) {
|
|
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 "manifestURL":
|
|
out.ManifestURL = string(in.String())
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache1(out *jwriter.Writer, in GetManifestForFrameReturns) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.ManifestURL != "" {
|
|
const prefix string = ",\"manifestURL\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.ManifestURL))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetManifestForFrameReturns) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache1(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetManifestForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache1(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetManifestForFrameReturns) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache1(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetManifestForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache1(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache2(in *jlexer.Lexer, out *GetManifestForFrameParams) {
|
|
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 "frameId":
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache2(out *jwriter.Writer, in GetManifestForFrameParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"frameId\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.FrameID))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetManifestForFrameParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache2(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetManifestForFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache2(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetManifestForFrameParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache2(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetManifestForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache2(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache3(in *jlexer.Lexer, out *GetFramesWithManifestsReturns) {
|
|
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 "frameIds":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.FrameIds = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.FrameIds == nil {
|
|
if !in.IsDelim(']') {
|
|
out.FrameIds = make([]*FrameWithManifest, 0, 8)
|
|
} else {
|
|
out.FrameIds = []*FrameWithManifest{}
|
|
}
|
|
} else {
|
|
out.FrameIds = (out.FrameIds)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v1 *FrameWithManifest
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
v1 = nil
|
|
} else {
|
|
if v1 == nil {
|
|
v1 = new(FrameWithManifest)
|
|
}
|
|
(*v1).UnmarshalEasyJSON(in)
|
|
}
|
|
out.FrameIds = append(out.FrameIds, v1)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache3(out *jwriter.Writer, in GetFramesWithManifestsReturns) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if len(in.FrameIds) != 0 {
|
|
const prefix string = ",\"frameIds\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
{
|
|
out.RawByte('[')
|
|
for v2, v3 := range in.FrameIds {
|
|
if v2 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v3 == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*v3).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetFramesWithManifestsReturns) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache3(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetFramesWithManifestsReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache3(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetFramesWithManifestsReturns) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache3(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetFramesWithManifestsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache3(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache4(in *jlexer.Lexer, out *GetFramesWithManifestsParams) {
|
|
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()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache4(out *jwriter.Writer, in GetFramesWithManifestsParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetFramesWithManifestsParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache4(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetFramesWithManifestsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache4(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetFramesWithManifestsParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache4(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetFramesWithManifestsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache4(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache5(in *jlexer.Lexer, out *GetApplicationCacheForFrameReturns) {
|
|
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 "applicationCache":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.ApplicationCache = nil
|
|
} else {
|
|
if out.ApplicationCache == nil {
|
|
out.ApplicationCache = new(ApplicationCache)
|
|
}
|
|
(*out.ApplicationCache).UnmarshalEasyJSON(in)
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache5(out *jwriter.Writer, in GetApplicationCacheForFrameReturns) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.ApplicationCache != nil {
|
|
const prefix string = ",\"applicationCache\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
(*in.ApplicationCache).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetApplicationCacheForFrameReturns) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache5(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetApplicationCacheForFrameReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache5(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetApplicationCacheForFrameReturns) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache5(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetApplicationCacheForFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache5(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache6(in *jlexer.Lexer, out *GetApplicationCacheForFrameParams) {
|
|
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 "frameId":
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache6(out *jwriter.Writer, in GetApplicationCacheForFrameParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"frameId\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.FrameID))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v GetApplicationCacheForFrameParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache6(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v GetApplicationCacheForFrameParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache6(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *GetApplicationCacheForFrameParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache6(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *GetApplicationCacheForFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache6(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache7(in *jlexer.Lexer, out *FrameWithManifest) {
|
|
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 "frameId":
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
case "manifestURL":
|
|
out.ManifestURL = string(in.String())
|
|
case "status":
|
|
out.Status = int64(in.Int64())
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache7(out *jwriter.Writer, in FrameWithManifest) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"frameId\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.FrameID))
|
|
}
|
|
{
|
|
const prefix string = ",\"manifestURL\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.ManifestURL))
|
|
}
|
|
{
|
|
const prefix string = ",\"status\":"
|
|
out.RawString(prefix)
|
|
out.Int64(int64(in.Status))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v FrameWithManifest) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache7(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v FrameWithManifest) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache7(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *FrameWithManifest) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache7(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *FrameWithManifest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache7(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache8(in *jlexer.Lexer, out *EventNetworkStateUpdated) {
|
|
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 "isNowOnline":
|
|
out.IsNowOnline = bool(in.Bool())
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache8(out *jwriter.Writer, in EventNetworkStateUpdated) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"isNowOnline\":"
|
|
out.RawString(prefix[1:])
|
|
out.Bool(bool(in.IsNowOnline))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EventNetworkStateUpdated) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache8(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EventNetworkStateUpdated) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache8(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EventNetworkStateUpdated) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache8(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EventNetworkStateUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache8(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache9(in *jlexer.Lexer, out *EventApplicationCacheStatusUpdated) {
|
|
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 "frameId":
|
|
(out.FrameID).UnmarshalEasyJSON(in)
|
|
case "manifestURL":
|
|
out.ManifestURL = string(in.String())
|
|
case "status":
|
|
out.Status = int64(in.Int64())
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache9(out *jwriter.Writer, in EventApplicationCacheStatusUpdated) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"frameId\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.FrameID))
|
|
}
|
|
{
|
|
const prefix string = ",\"manifestURL\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.ManifestURL))
|
|
}
|
|
{
|
|
const prefix string = ",\"status\":"
|
|
out.RawString(prefix)
|
|
out.Int64(int64(in.Status))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EventApplicationCacheStatusUpdated) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache9(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EventApplicationCacheStatusUpdated) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache9(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EventApplicationCacheStatusUpdated) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache9(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EventApplicationCacheStatusUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache9(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache10(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 {
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache10(out *jwriter.Writer, in EnableParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache10(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache10(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache10(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache10(l, v)
|
|
}
|
|
func easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache11(in *jlexer.Lexer, out *ApplicationCache) {
|
|
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 "manifestURL":
|
|
out.ManifestURL = string(in.String())
|
|
case "size":
|
|
out.Size = float64(in.Float64())
|
|
case "creationTime":
|
|
out.CreationTime = float64(in.Float64())
|
|
case "updateTime":
|
|
out.UpdateTime = float64(in.Float64())
|
|
case "resources":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Resources = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Resources == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Resources = make([]*Resource, 0, 8)
|
|
} else {
|
|
out.Resources = []*Resource{}
|
|
}
|
|
} else {
|
|
out.Resources = (out.Resources)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v4 *Resource
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
v4 = nil
|
|
} else {
|
|
if v4 == nil {
|
|
v4 = new(Resource)
|
|
}
|
|
(*v4).UnmarshalEasyJSON(in)
|
|
}
|
|
out.Resources = append(out.Resources, v4)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache11(out *jwriter.Writer, in ApplicationCache) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"manifestURL\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.ManifestURL))
|
|
}
|
|
{
|
|
const prefix string = ",\"size\":"
|
|
out.RawString(prefix)
|
|
out.Float64(float64(in.Size))
|
|
}
|
|
{
|
|
const prefix string = ",\"creationTime\":"
|
|
out.RawString(prefix)
|
|
out.Float64(float64(in.CreationTime))
|
|
}
|
|
{
|
|
const prefix string = ",\"updateTime\":"
|
|
out.RawString(prefix)
|
|
out.Float64(float64(in.UpdateTime))
|
|
}
|
|
{
|
|
const prefix string = ",\"resources\":"
|
|
out.RawString(prefix)
|
|
if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
out.RawString("null")
|
|
} else {
|
|
out.RawByte('[')
|
|
for v5, v6 := range in.Resources {
|
|
if v5 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v6 == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*v6).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ApplicationCache) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache11(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ApplicationCache) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache11(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ApplicationCache) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache11(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ApplicationCache) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationcache11(l, v)
|
|
}
|