func (z *StatsPayload) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			return
		}
		switch msgp.UnsafeString(field) {
		case "AgentHostname":
			z.AgentHostname, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "AgentEnv":
			z.AgentEnv, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]ClientStatsPayload, zb0002)
			}
			for za0001 := range z.Stats {
				bts, err = z.Stats[za0001].UnmarshalMsg(bts)
				if err != nil {
					return
				}
			}
		case "AgentVersion":
			z.AgentVersion, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "ClientComputed":
			z.ClientComputed, bts, err = msgp.ReadBoolBytes(bts)
			if err != nil {
				return
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				return
			}
		}
	}
	o = bts
	return
}
// UnmarshalMsg implements msgp.Unmarshaler
UnmarshalMsg implements msgp.Unmarshaler
// UnmarshalMsg implements msgp . Unmarshaler
func (z *StatsPayload) UnmarshalMsg(bts []byte) (o []byte, err error) {
	var field []byte
	_ = field
	var zb0001 uint32
	zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
	if err != nil {
		return
	}
	for zb0001 > 0 {
		zb0001--
		field, bts, err = msgp.ReadMapKeyZC(bts)
		if err != nil {
			return
		}
		switch msgp.UnsafeString(field) {
		case "AgentHostname":
			z.AgentHostname, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "AgentEnv":
			z.AgentEnv, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "Stats":
			var zb0002 uint32
			zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts)
			if err != nil {
				return
			}
			if cap(z.Stats) >= int(zb0002) {
				z.Stats = (z.Stats)[:zb0002]
			} else {
				z.Stats = make([]ClientStatsPayload, zb0002)
			}
			for za0001 := range z.Stats {
				bts, err = z.Stats[za0001].UnmarshalMsg(bts)
				if err != nil {
					return
				}
			}
		case "AgentVersion":
			z.AgentVersion, bts, err = msgp.ReadStringBytes(bts)
			if err != nil {
				return
			}
		case "ClientComputed":
			z.ClientComputed, bts, err = msgp.ReadBoolBytes(bts)
			if err != nil {
				return
			}
		default:
			bts, err = msgp.Skip(bts)
			if err != nil {
				return
			}
		}
	}
	o = bts
	return
}
func ( z * StatsPayload ) UnmarshalMsg ( bts [ ] byte ) ( o [ ] byte , err error ) { var field [ ] byte _ = field var zb0001 uint32 zb0001 , bts , err = msgp . ReadMapHeaderBytes ( bts ) if err != nil { return } for zb0001 > 0 { zb0001 -- field , bts , err = msgp . ReadMapKeyZC ( bts ) if err != nil { return } switch msgp . UnsafeString ( field ) { case " " : z . AgentHostname , bts , err = msgp . ReadStringBytes ( bts ) if err != nil { return } case " " : z . AgentEnv , bts , err = msgp . ReadStringBytes ( bts ) if err != nil { return } case " " : var zb0002 uint32 zb0002 , bts , err = msgp . ReadArrayHeaderBytes ( bts ) if err != nil { return } if cap ( z . Stats ) >= int ( zb0002 ) { z . Stats = ( z . Stats ) [ : zb0002 ] } else { z . Stats = make ( [ ] ClientStatsPayload , zb0002 ) } for za0001 := range z . Stats { bts , err = z . Stats [ za0001 ] . UnmarshalMsg ( bts ) if err != nil { return } } case " " : z . AgentVersion , bts , err = msgp . ReadStringBytes ( bts ) if err != nil { return } case " " : z . ClientComputed , bts , err = msgp . ReadBoolBytes ( bts ) if err != nil { return } default : bts , err = msgp . Skip ( bts ) if err != nil { return } } } o = bts return }
UnmarshalMsg implements msgp.Unmarshaler
UnmarshalMsg implements msgp . Unmarshaler