in aggregationpb/aggregation_vtproto.pb.go [104:136]
func (m *ServiceMetrics) CloneVT() *ServiceMetrics {
if m == nil {
return (*ServiceMetrics)(nil)
}
r := new(ServiceMetrics)
r.OverflowGroups = m.OverflowGroups.CloneVT()
if rhs := m.TransactionMetrics; rhs != nil {
tmpContainer := make([]*KeyedTransactionMetrics, len(rhs))
for k, v := range rhs {
tmpContainer[k] = v.CloneVT()
}
r.TransactionMetrics = tmpContainer
}
if rhs := m.ServiceTransactionMetrics; rhs != nil {
tmpContainer := make([]*KeyedServiceTransactionMetrics, len(rhs))
for k, v := range rhs {
tmpContainer[k] = v.CloneVT()
}
r.ServiceTransactionMetrics = tmpContainer
}
if rhs := m.SpanMetrics; rhs != nil {
tmpContainer := make([]*KeyedSpanMetrics, len(rhs))
for k, v := range rhs {
tmpContainer[k] = v.CloneVT()
}
r.SpanMetrics = tmpContainer
}
if len(m.unknownFields) > 0 {
r.unknownFields = make([]byte, len(m.unknownFields))
copy(r.unknownFields, m.unknownFields)
}
return r
}