MCPcopy Create free account
hub / github.com/cortexproject/cortex / Size

Method Size

pkg/ingester/client/ingester.pb.go:4782–4802  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4780}
4781
4782func (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
4804func (m *LabelNamesResponse) Size() (n int) {
4805 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovIngesterFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected