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

Method Size

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

Source from the content-addressed store, hash-verified

4724}
4725
4726func (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
4752func (m *LabelValuesResponse) Size() (n int) {
4753 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