()
| 3646 | } |
| 3647 | |
| 3648 | func (m *ExemplarV2) Size() (n int) { |
| 3649 | if m == nil { |
| 3650 | return 0 |
| 3651 | } |
| 3652 | var l int |
| 3653 | _ = l |
| 3654 | if len(m.LabelsRefs) > 0 { |
| 3655 | l = 0 |
| 3656 | for _, e := range m.LabelsRefs { |
| 3657 | l += sovCortex(uint64(e)) |
| 3658 | } |
| 3659 | n += 1 + sovCortex(uint64(l)) + l |
| 3660 | } |
| 3661 | if m.Value != 0 { |
| 3662 | n += 9 |
| 3663 | } |
| 3664 | if m.Timestamp != 0 { |
| 3665 | n += 1 + sovCortex(uint64(m.Timestamp)) |
| 3666 | } |
| 3667 | return n |
| 3668 | } |
| 3669 | |
| 3670 | func (m *MetadataV2) Size() (n int) { |
| 3671 | if m == nil { |