()
| 11048 | } |
| 11049 | |
| 11050 | func (m *License) Size() (n int) { |
| 11051 | if m == nil { |
| 11052 | return 0 |
| 11053 | } |
| 11054 | var l int |
| 11055 | _ = l |
| 11056 | l = len(m.User) |
| 11057 | if l > 0 { |
| 11058 | n += 1 + l + sovPb(uint64(l)) |
| 11059 | } |
| 11060 | if m.MaxNodes != 0 { |
| 11061 | n += 1 + sovPb(uint64(m.MaxNodes)) |
| 11062 | } |
| 11063 | if m.ExpiryTs != 0 { |
| 11064 | n += 1 + sovPb(uint64(m.ExpiryTs)) |
| 11065 | } |
| 11066 | if m.Enabled { |
| 11067 | n += 2 |
| 11068 | } |
| 11069 | return n |
| 11070 | } |
| 11071 | |
| 11072 | func (m *ZeroProposal) Size() (n int) { |
| 11073 | if m == nil { |