()
| 4724 | } |
| 4725 | |
| 4726 | func (m *LabelValuesRequest) Size() (n int) { |
| 4727 | if m == nil { |
| 4728 | return 0 |
| 4729 | } |
| 4730 | var l int |
| 4731 | _ = l |
| 4732 | l = len(m.LabelName) |
| 4733 | if l > 0 { |
| 4734 | n += 1 + l + sovIngester(uint64(l)) |
| 4735 | } |
| 4736 | if m.StartTimestampMs != 0 { |
| 4737 | n += 1 + sovIngester(uint64(m.StartTimestampMs)) |
| 4738 | } |
| 4739 | if m.EndTimestampMs != 0 { |
| 4740 | n += 1 + sovIngester(uint64(m.EndTimestampMs)) |
| 4741 | } |
| 4742 | if m.Matchers != nil { |
| 4743 | l = m.Matchers.Size() |
| 4744 | n += 1 + l + sovIngester(uint64(l)) |
| 4745 | } |
| 4746 | if m.Limit != 0 { |
| 4747 | n += 1 + sovIngester(uint64(m.Limit)) |
| 4748 | } |
| 4749 | return n |
| 4750 | } |
| 4751 | |
| 4752 | func (m *LabelValuesResponse) Size() (n int) { |
| 4753 | if m == nil { |
no test coverage detected