MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / Size

Method Size

bitmap/pb.pb.go:12408–12434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12406}
12407
12408func (m *UpdateGraphQLSchemaRequest) Size() (n int) {
12409 if m == nil {
12410 return 0
12411 }
12412 var l int
12413 _ = l
12414 if m.StartTs != 0 {
12415 n += 1 + sovPb(uint64(m.StartTs))
12416 }
12417 l = len(m.GraphqlSchema)
12418 if l > 0 {
12419 n += 1 + l + sovPb(uint64(l))
12420 }
12421 if len(m.DgraphPreds) > 0 {
12422 for _, e := range m.DgraphPreds {
12423 l = e.Size()
12424 n += 1 + l + sovPb(uint64(l))
12425 }
12426 }
12427 if len(m.DgraphTypes) > 0 {
12428 for _, e := range m.DgraphTypes {
12429 l = e.Size()
12430 n += 1 + l + sovPb(uint64(l))
12431 }
12432 }
12433 return n
12434}
12435
12436func (m *UpdateGraphQLSchemaResponse) Size() (n int) {
12437 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovPbFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected