()
| 12102 | } |
| 12103 | |
| 12104 | func (m *SubscriptionRequest) Size() (n int) { |
| 12105 | if m == nil { |
| 12106 | return 0 |
| 12107 | } |
| 12108 | var l int |
| 12109 | _ = l |
| 12110 | if len(m.Prefixes) > 0 { |
| 12111 | for _, b := range m.Prefixes { |
| 12112 | l = len(b) |
| 12113 | n += 1 + l + sovPb(uint64(l)) |
| 12114 | } |
| 12115 | } |
| 12116 | return n |
| 12117 | } |
| 12118 | |
| 12119 | func (m *SubscriptionResponse) Size() (n int) { |
| 12120 | if m == nil { |