| 10897 | } |
| 10898 | |
| 10899 | func (m *SortMessage) Size() (n int) { |
| 10900 | if m == nil { |
| 10901 | return 0 |
| 10902 | } |
| 10903 | var l int |
| 10904 | _ = l |
| 10905 | if len(m.Order) > 0 { |
| 10906 | for _, e := range m.Order { |
| 10907 | l = e.Size() |
| 10908 | n += 1 + l + sovPb(uint64(l)) |
| 10909 | } |
| 10910 | } |
| 10911 | if len(m.UidMatrix) > 0 { |
| 10912 | for _, e := range m.UidMatrix { |
| 10913 | l = e.Size() |
| 10914 | n += 1 + l + sovPb(uint64(l)) |
| 10915 | } |
| 10916 | } |
| 10917 | if m.Count != 0 { |
| 10918 | n += 1 + sovPb(uint64(m.Count)) |
| 10919 | } |
| 10920 | if m.Offset != 0 { |
| 10921 | n += 1 + sovPb(uint64(m.Offset)) |
| 10922 | } |
| 10923 | if m.ReadTs != 0 { |
| 10924 | n += 1 + sovPb(uint64(m.ReadTs)) |
| 10925 | } |
| 10926 | return n |
| 10927 | } |
| 10928 | |
| 10929 | func (m *SortResult) Size() (n int) { |
| 10930 | if m == nil { |