in internal/pkg/bulk/schema_easyjson.go [160:215]
func easyjsonCef4e921DecodeGithubComElasticFleetServerV7InternalPkgBulk1(in *jlexer.Lexer, out *bulkIndexerResponse) {
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 "took":
out.Took = int(in.Int())
case "errors":
out.HasErrors = bool(in.Bool())
case "items":
if in.IsNull() {
in.Skip()
out.Items = nil
} else {
in.Delim('[')
if out.Items == nil {
if !in.IsDelim(']') {
out.Items = make([]bulkStubItem, 0, 2)
} else {
out.Items = []bulkStubItem{}
}
} else {
out.Items = (out.Items)[:0]
}
for !in.IsDelim(']') {
var v1 bulkStubItem
(v1).UnmarshalEasyJSON(in)
out.Items = append(out.Items, v1)
in.WantComma()
}
in.Delim(']')
}
default:
in.SkipRecursive()
}
in.WantComma()
}
in.Delim('}')
if isTopLevel {
in.Consumed()
}
}