func()

in aggregationpb/aggregation_vtproto.pb.go [1604:1634]


func (m *ServiceMetrics) SizeVT() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.OverflowGroups != nil {
		l = m.OverflowGroups.SizeVT()
		n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
	}
	if len(m.TransactionMetrics) > 0 {
		for _, e := range m.TransactionMetrics {
			l = e.SizeVT()
			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
		}
	}
	if len(m.ServiceTransactionMetrics) > 0 {
		for _, e := range m.ServiceTransactionMetrics {
			l = e.SizeVT()
			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
		}
	}
	if len(m.SpanMetrics) > 0 {
		for _, e := range m.SpanMetrics {
			l = e.SizeVT()
			n += 1 + l + protohelpers.SizeOfVarint(uint64(l))
		}
	}
	n += len(m.unknownFields)
	return n
}