()
| 4780 | } |
| 4781 | |
| 4782 | func (m *LabelNamesRequest) Size() (n int) { |
| 4783 | if m == nil { |
| 4784 | return 0 |
| 4785 | } |
| 4786 | var l int |
| 4787 | _ = l |
| 4788 | if m.StartTimestampMs != 0 { |
| 4789 | n += 1 + sovIngester(uint64(m.StartTimestampMs)) |
| 4790 | } |
| 4791 | if m.EndTimestampMs != 0 { |
| 4792 | n += 1 + sovIngester(uint64(m.EndTimestampMs)) |
| 4793 | } |
| 4794 | if m.Limit != 0 { |
| 4795 | n += 1 + sovIngester(uint64(m.Limit)) |
| 4796 | } |
| 4797 | if m.Matchers != nil { |
| 4798 | l = m.Matchers.Size() |
| 4799 | n += 1 + l + sovIngester(uint64(l)) |
| 4800 | } |
| 4801 | return n |
| 4802 | } |
| 4803 | |
| 4804 | func (m *LabelNamesResponse) Size() (n int) { |
| 4805 | if m == nil { |
no test coverage detected