func easyjsonCef4e921DecodeGithubComElasticFleetServerV7InternalPkgBulk2()

in internal/pkg/bulk/schema_easyjson.go [270:332]


func easyjsonCef4e921DecodeGithubComElasticFleetServerV7InternalPkgBulk2(in *jlexer.Lexer, out *MsearchResponseItem) {
	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 "status":
			out.Status = int(in.Int())
		case "took":
			out.Took = uint64(in.Uint64())
		case "timed_out":
			out.TimedOut = bool(in.Bool())
		case "_shards":
			easyjsonCef4e921Decode(in, &out.Shards)
		case "hits":
			easyjsonCef4e921DecodeGithubComElasticFleetServerV7InternalPkgEs(in, &out.Hits)
		case "aggregations":
			if in.IsNull() {
				in.Skip()
			} else {
				in.Delim('{')
				if !in.IsDelim('}') {
					out.Aggregations = make(map[string]es.Aggregation)
				} else {
					out.Aggregations = nil
				}
				for !in.IsDelim('}') {
					key := string(in.String())
					in.WantColon()
					var v4 es.Aggregation
					easyjsonCef4e921DecodeGithubComElasticFleetServerV7InternalPkgEs1(in, &v4)
					(out.Aggregations)[key] = v4
					in.WantComma()
				}
				in.Delim('}')
			}
		case "error":
			if data := in.Raw(); in.Ok() {
				in.AddError((out.Error).UnmarshalJSON(data))
			}
		default:
			in.SkipRecursive()
		}
		in.WantComma()
	}
	in.Delim('}')
	if isTopLevel {
		in.Consumed()
	}
}