func (p *MonitoringCollectResult) ReadField0(iprot thrift.TProtocol) error { _, _, size, err := iprot.ReadMapBegin() if err != nil { return thrift.PrependError("error reading map begin: ", err) } tMap := make(Metrics, size) p.Success = tMap for i := 0; i < size; i++ { var _key5 MetricID if v, err := iprot.ReadString(); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { temp := MetricID(v) _key5 = temp } var _val6 float64 if v, err := iprot.ReadDouble(); err != nil { return thrift.PrependError("error reading field 0: ", err) } else { _val6 = v } p.Success[_key5] = _val6 } if err := iprot.ReadMapEnd(); err != nil { return thrift.PrependError("error reading map end: ", err) } return nil }