| 12341 | } |
| 12342 | |
| 12343 | func (m *BackupKey) Size() (n int) { |
| 12344 | if m == nil { |
| 12345 | return 0 |
| 12346 | } |
| 12347 | var l int |
| 12348 | _ = l |
| 12349 | if m.Type != 0 { |
| 12350 | n += 1 + sovPb(uint64(m.Type)) |
| 12351 | } |
| 12352 | l = len(m.Attr) |
| 12353 | if l > 0 { |
| 12354 | n += 1 + l + sovPb(uint64(l)) |
| 12355 | } |
| 12356 | if m.Uid != 0 { |
| 12357 | n += 1 + sovPb(uint64(m.Uid)) |
| 12358 | } |
| 12359 | if m.StartUid != 0 { |
| 12360 | n += 1 + sovPb(uint64(m.StartUid)) |
| 12361 | } |
| 12362 | l = len(m.Term) |
| 12363 | if l > 0 { |
| 12364 | n += 1 + l + sovPb(uint64(l)) |
| 12365 | } |
| 12366 | if m.Count != 0 { |
| 12367 | n += 1 + sovPb(uint64(m.Count)) |
| 12368 | } |
| 12369 | return n |
| 12370 | } |
| 12371 | |
| 12372 | func (m *BackupPostingList) Size() (n int) { |
| 12373 | if m == nil { |