| 12200 | } |
| 12201 | |
| 12202 | func (m *BackupRequest) Size() (n int) { |
| 12203 | if m == nil { |
| 12204 | return 0 |
| 12205 | } |
| 12206 | var l int |
| 12207 | _ = l |
| 12208 | if m.ReadTs != 0 { |
| 12209 | n += 1 + sovPb(uint64(m.ReadTs)) |
| 12210 | } |
| 12211 | if m.SinceTs != 0 { |
| 12212 | n += 1 + sovPb(uint64(m.SinceTs)) |
| 12213 | } |
| 12214 | if m.GroupId != 0 { |
| 12215 | n += 1 + sovPb(uint64(m.GroupId)) |
| 12216 | } |
| 12217 | l = len(m.UnixTs) |
| 12218 | if l > 0 { |
| 12219 | n += 1 + l + sovPb(uint64(l)) |
| 12220 | } |
| 12221 | l = len(m.Destination) |
| 12222 | if l > 0 { |
| 12223 | n += 1 + l + sovPb(uint64(l)) |
| 12224 | } |
| 12225 | l = len(m.AccessKey) |
| 12226 | if l > 0 { |
| 12227 | n += 1 + l + sovPb(uint64(l)) |
| 12228 | } |
| 12229 | l = len(m.SecretKey) |
| 12230 | if l > 0 { |
| 12231 | n += 1 + l + sovPb(uint64(l)) |
| 12232 | } |
| 12233 | l = len(m.SessionToken) |
| 12234 | if l > 0 { |
| 12235 | n += 1 + l + sovPb(uint64(l)) |
| 12236 | } |
| 12237 | if m.Anonymous { |
| 12238 | n += 2 |
| 12239 | } |
| 12240 | if len(m.Predicates) > 0 { |
| 12241 | for _, s := range m.Predicates { |
| 12242 | l = len(s) |
| 12243 | n += 1 + l + sovPb(uint64(l)) |
| 12244 | } |
| 12245 | } |
| 12246 | return n |
| 12247 | } |
| 12248 | |
| 12249 | func (m *BackupResponse) Size() (n int) { |
| 12250 | if m == nil { |