()
| 10875 | } |
| 10876 | |
| 10877 | func (m *Order) Size() (n int) { |
| 10878 | if m == nil { |
| 10879 | return 0 |
| 10880 | } |
| 10881 | var l int |
| 10882 | _ = l |
| 10883 | l = len(m.Attr) |
| 10884 | if l > 0 { |
| 10885 | n += 1 + l + sovPb(uint64(l)) |
| 10886 | } |
| 10887 | if m.Desc { |
| 10888 | n += 2 |
| 10889 | } |
| 10890 | if len(m.Langs) > 0 { |
| 10891 | for _, s := range m.Langs { |
| 10892 | l = len(s) |
| 10893 | n += 1 + l + sovPb(uint64(l)) |
| 10894 | } |
| 10895 | } |
| 10896 | return n |
| 10897 | } |
| 10898 | |
| 10899 | func (m *SortMessage) Size() (n int) { |
| 10900 | if m == nil { |