| 1707 | } |
| 1708 | |
| 1709 | func (m *GroupStateDesc) Size() (n int) { |
| 1710 | if m == nil { |
| 1711 | return 0 |
| 1712 | } |
| 1713 | var l int |
| 1714 | _ = l |
| 1715 | if m.Group != nil { |
| 1716 | l = m.Group.Size() |
| 1717 | n += 1 + l + sovRuler(uint64(l)) |
| 1718 | } |
| 1719 | if len(m.ActiveRules) > 0 { |
| 1720 | for _, e := range m.ActiveRules { |
| 1721 | l = e.Size() |
| 1722 | n += 1 + l + sovRuler(uint64(l)) |
| 1723 | } |
| 1724 | } |
| 1725 | l = github_com_gogo_protobuf_types.SizeOfStdTime(m.EvaluationTimestamp) |
| 1726 | n += 1 + l + sovRuler(uint64(l)) |
| 1727 | l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.EvaluationDuration) |
| 1728 | n += 1 + l + sovRuler(uint64(l)) |
| 1729 | return n |
| 1730 | } |
| 1731 | |
| 1732 | func (m *RuleStateDesc) Size() (n int) { |
| 1733 | if m == nil { |