| 11263 | } |
| 11264 | |
| 11265 | func (m *Tablet) Size() (n int) { |
| 11266 | if m == nil { |
| 11267 | return 0 |
| 11268 | } |
| 11269 | var l int |
| 11270 | _ = l |
| 11271 | if m.GroupId != 0 { |
| 11272 | n += 1 + sovPb(uint64(m.GroupId)) |
| 11273 | } |
| 11274 | l = len(m.Predicate) |
| 11275 | if l > 0 { |
| 11276 | n += 1 + l + sovPb(uint64(l)) |
| 11277 | } |
| 11278 | if m.Force { |
| 11279 | n += 2 |
| 11280 | } |
| 11281 | if m.OnDiskBytes != 0 { |
| 11282 | n += 1 + sovPb(uint64(m.OnDiskBytes)) |
| 11283 | } |
| 11284 | if m.Remove { |
| 11285 | n += 2 |
| 11286 | } |
| 11287 | if m.ReadOnly { |
| 11288 | n += 2 |
| 11289 | } |
| 11290 | if m.MoveTs != 0 { |
| 11291 | n += 1 + sovPb(uint64(m.MoveTs)) |
| 11292 | } |
| 11293 | if m.UncompressedBytes != 0 { |
| 11294 | n += 1 + sovPb(uint64(m.UncompressedBytes)) |
| 11295 | } |
| 11296 | return n |
| 11297 | } |
| 11298 | |
| 11299 | func (m *DirectedEdge) Size() (n int) { |
| 11300 | if m == nil { |