github.com/vipernet-xyz/tm@v0.34.24/proto/tendermint/consensus/wal.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/consensus/wal.proto
     3  
     4  package consensus
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	_ "github.com/gogo/protobuf/types"
    11  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    12  	_ "github.com/golang/protobuf/ptypes/duration"
    13  	types "github.com/vipernet-xyz/tm/proto/tendermint/types"
    14  	io "io"
    15  	math "math"
    16  	math_bits "math/bits"
    17  	time "time"
    18  )
    19  
    20  // Reference imports to suppress errors if they are not otherwise used.
    21  var _ = proto.Marshal
    22  var _ = fmt.Errorf
    23  var _ = math.Inf
    24  var _ = time.Kitchen
    25  
    26  // This is a compile-time assertion to ensure that this generated file
    27  // is compatible with the proto package it is being compiled against.
    28  // A compilation error at this line likely means your copy of the
    29  // proto package needs to be updated.
    30  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    31  
    32  // MsgInfo are msgs from the reactor which may update the state
    33  type MsgInfo struct {
    34  	Msg    Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"`
    35  	PeerID string  `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
    36  }
    37  
    38  func (m *MsgInfo) Reset()         { *m = MsgInfo{} }
    39  func (m *MsgInfo) String() string { return proto.CompactTextString(m) }
    40  func (*MsgInfo) ProtoMessage()    {}
    41  func (*MsgInfo) Descriptor() ([]byte, []int) {
    42  	return fileDescriptor_ed0b60c2d348ab09, []int{0}
    43  }
    44  func (m *MsgInfo) XXX_Unmarshal(b []byte) error {
    45  	return m.Unmarshal(b)
    46  }
    47  func (m *MsgInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	if deterministic {
    49  		return xxx_messageInfo_MsgInfo.Marshal(b, m, deterministic)
    50  	} else {
    51  		b = b[:cap(b)]
    52  		n, err := m.MarshalToSizedBuffer(b)
    53  		if err != nil {
    54  			return nil, err
    55  		}
    56  		return b[:n], nil
    57  	}
    58  }
    59  func (m *MsgInfo) XXX_Merge(src proto.Message) {
    60  	xxx_messageInfo_MsgInfo.Merge(m, src)
    61  }
    62  func (m *MsgInfo) XXX_Size() int {
    63  	return m.Size()
    64  }
    65  func (m *MsgInfo) XXX_DiscardUnknown() {
    66  	xxx_messageInfo_MsgInfo.DiscardUnknown(m)
    67  }
    68  
    69  var xxx_messageInfo_MsgInfo proto.InternalMessageInfo
    70  
    71  func (m *MsgInfo) GetMsg() Message {
    72  	if m != nil {
    73  		return m.Msg
    74  	}
    75  	return Message{}
    76  }
    77  
    78  func (m *MsgInfo) GetPeerID() string {
    79  	if m != nil {
    80  		return m.PeerID
    81  	}
    82  	return ""
    83  }
    84  
    85  // TimeoutInfo internally generated messages which may update the state
    86  type TimeoutInfo struct {
    87  	Duration time.Duration `protobuf:"bytes,1,opt,name=duration,proto3,stdduration" json:"duration"`
    88  	Height   int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
    89  	Round    int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
    90  	Step     uint32        `protobuf:"varint,4,opt,name=step,proto3" json:"step,omitempty"`
    91  }
    92  
    93  func (m *TimeoutInfo) Reset()         { *m = TimeoutInfo{} }
    94  func (m *TimeoutInfo) String() string { return proto.CompactTextString(m) }
    95  func (*TimeoutInfo) ProtoMessage()    {}
    96  func (*TimeoutInfo) Descriptor() ([]byte, []int) {
    97  	return fileDescriptor_ed0b60c2d348ab09, []int{1}
    98  }
    99  func (m *TimeoutInfo) XXX_Unmarshal(b []byte) error {
   100  	return m.Unmarshal(b)
   101  }
   102  func (m *TimeoutInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   103  	if deterministic {
   104  		return xxx_messageInfo_TimeoutInfo.Marshal(b, m, deterministic)
   105  	} else {
   106  		b = b[:cap(b)]
   107  		n, err := m.MarshalToSizedBuffer(b)
   108  		if err != nil {
   109  			return nil, err
   110  		}
   111  		return b[:n], nil
   112  	}
   113  }
   114  func (m *TimeoutInfo) XXX_Merge(src proto.Message) {
   115  	xxx_messageInfo_TimeoutInfo.Merge(m, src)
   116  }
   117  func (m *TimeoutInfo) XXX_Size() int {
   118  	return m.Size()
   119  }
   120  func (m *TimeoutInfo) XXX_DiscardUnknown() {
   121  	xxx_messageInfo_TimeoutInfo.DiscardUnknown(m)
   122  }
   123  
   124  var xxx_messageInfo_TimeoutInfo proto.InternalMessageInfo
   125  
   126  func (m *TimeoutInfo) GetDuration() time.Duration {
   127  	if m != nil {
   128  		return m.Duration
   129  	}
   130  	return 0
   131  }
   132  
   133  func (m *TimeoutInfo) GetHeight() int64 {
   134  	if m != nil {
   135  		return m.Height
   136  	}
   137  	return 0
   138  }
   139  
   140  func (m *TimeoutInfo) GetRound() int32 {
   141  	if m != nil {
   142  		return m.Round
   143  	}
   144  	return 0
   145  }
   146  
   147  func (m *TimeoutInfo) GetStep() uint32 {
   148  	if m != nil {
   149  		return m.Step
   150  	}
   151  	return 0
   152  }
   153  
   154  // EndHeight marks the end of the given height inside WAL.
   155  // @internal used by scripts/wal2json util.
   156  type EndHeight struct {
   157  	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
   158  }
   159  
   160  func (m *EndHeight) Reset()         { *m = EndHeight{} }
   161  func (m *EndHeight) String() string { return proto.CompactTextString(m) }
   162  func (*EndHeight) ProtoMessage()    {}
   163  func (*EndHeight) Descriptor() ([]byte, []int) {
   164  	return fileDescriptor_ed0b60c2d348ab09, []int{2}
   165  }
   166  func (m *EndHeight) XXX_Unmarshal(b []byte) error {
   167  	return m.Unmarshal(b)
   168  }
   169  func (m *EndHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   170  	if deterministic {
   171  		return xxx_messageInfo_EndHeight.Marshal(b, m, deterministic)
   172  	} else {
   173  		b = b[:cap(b)]
   174  		n, err := m.MarshalToSizedBuffer(b)
   175  		if err != nil {
   176  			return nil, err
   177  		}
   178  		return b[:n], nil
   179  	}
   180  }
   181  func (m *EndHeight) XXX_Merge(src proto.Message) {
   182  	xxx_messageInfo_EndHeight.Merge(m, src)
   183  }
   184  func (m *EndHeight) XXX_Size() int {
   185  	return m.Size()
   186  }
   187  func (m *EndHeight) XXX_DiscardUnknown() {
   188  	xxx_messageInfo_EndHeight.DiscardUnknown(m)
   189  }
   190  
   191  var xxx_messageInfo_EndHeight proto.InternalMessageInfo
   192  
   193  func (m *EndHeight) GetHeight() int64 {
   194  	if m != nil {
   195  		return m.Height
   196  	}
   197  	return 0
   198  }
   199  
   200  type WALMessage struct {
   201  	// Types that are valid to be assigned to Sum:
   202  	//	*WALMessage_EventDataRoundState
   203  	//	*WALMessage_MsgInfo
   204  	//	*WALMessage_TimeoutInfo
   205  	//	*WALMessage_EndHeight
   206  	Sum isWALMessage_Sum `protobuf_oneof:"sum"`
   207  }
   208  
   209  func (m *WALMessage) Reset()         { *m = WALMessage{} }
   210  func (m *WALMessage) String() string { return proto.CompactTextString(m) }
   211  func (*WALMessage) ProtoMessage()    {}
   212  func (*WALMessage) Descriptor() ([]byte, []int) {
   213  	return fileDescriptor_ed0b60c2d348ab09, []int{3}
   214  }
   215  func (m *WALMessage) XXX_Unmarshal(b []byte) error {
   216  	return m.Unmarshal(b)
   217  }
   218  func (m *WALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	if deterministic {
   220  		return xxx_messageInfo_WALMessage.Marshal(b, m, deterministic)
   221  	} else {
   222  		b = b[:cap(b)]
   223  		n, err := m.MarshalToSizedBuffer(b)
   224  		if err != nil {
   225  			return nil, err
   226  		}
   227  		return b[:n], nil
   228  	}
   229  }
   230  func (m *WALMessage) XXX_Merge(src proto.Message) {
   231  	xxx_messageInfo_WALMessage.Merge(m, src)
   232  }
   233  func (m *WALMessage) XXX_Size() int {
   234  	return m.Size()
   235  }
   236  func (m *WALMessage) XXX_DiscardUnknown() {
   237  	xxx_messageInfo_WALMessage.DiscardUnknown(m)
   238  }
   239  
   240  var xxx_messageInfo_WALMessage proto.InternalMessageInfo
   241  
   242  type isWALMessage_Sum interface {
   243  	isWALMessage_Sum()
   244  	MarshalTo([]byte) (int, error)
   245  	Size() int
   246  }
   247  
   248  type WALMessage_EventDataRoundState struct {
   249  	EventDataRoundState *types.EventDataRoundState `protobuf:"bytes,1,opt,name=event_data_round_state,json=eventDataRoundState,proto3,oneof" json:"event_data_round_state,omitempty"`
   250  }
   251  type WALMessage_MsgInfo struct {
   252  	MsgInfo *MsgInfo `protobuf:"bytes,2,opt,name=msg_info,json=msgInfo,proto3,oneof" json:"msg_info,omitempty"`
   253  }
   254  type WALMessage_TimeoutInfo struct {
   255  	TimeoutInfo *TimeoutInfo `protobuf:"bytes,3,opt,name=timeout_info,json=timeoutInfo,proto3,oneof" json:"timeout_info,omitempty"`
   256  }
   257  type WALMessage_EndHeight struct {
   258  	EndHeight *EndHeight `protobuf:"bytes,4,opt,name=end_height,json=endHeight,proto3,oneof" json:"end_height,omitempty"`
   259  }
   260  
   261  func (*WALMessage_EventDataRoundState) isWALMessage_Sum() {}
   262  func (*WALMessage_MsgInfo) isWALMessage_Sum()             {}
   263  func (*WALMessage_TimeoutInfo) isWALMessage_Sum()         {}
   264  func (*WALMessage_EndHeight) isWALMessage_Sum()           {}
   265  
   266  func (m *WALMessage) GetSum() isWALMessage_Sum {
   267  	if m != nil {
   268  		return m.Sum
   269  	}
   270  	return nil
   271  }
   272  
   273  func (m *WALMessage) GetEventDataRoundState() *types.EventDataRoundState {
   274  	if x, ok := m.GetSum().(*WALMessage_EventDataRoundState); ok {
   275  		return x.EventDataRoundState
   276  	}
   277  	return nil
   278  }
   279  
   280  func (m *WALMessage) GetMsgInfo() *MsgInfo {
   281  	if x, ok := m.GetSum().(*WALMessage_MsgInfo); ok {
   282  		return x.MsgInfo
   283  	}
   284  	return nil
   285  }
   286  
   287  func (m *WALMessage) GetTimeoutInfo() *TimeoutInfo {
   288  	if x, ok := m.GetSum().(*WALMessage_TimeoutInfo); ok {
   289  		return x.TimeoutInfo
   290  	}
   291  	return nil
   292  }
   293  
   294  func (m *WALMessage) GetEndHeight() *EndHeight {
   295  	if x, ok := m.GetSum().(*WALMessage_EndHeight); ok {
   296  		return x.EndHeight
   297  	}
   298  	return nil
   299  }
   300  
   301  // XXX_OneofWrappers is for the internal use of the proto package.
   302  func (*WALMessage) XXX_OneofWrappers() []interface{} {
   303  	return []interface{}{
   304  		(*WALMessage_EventDataRoundState)(nil),
   305  		(*WALMessage_MsgInfo)(nil),
   306  		(*WALMessage_TimeoutInfo)(nil),
   307  		(*WALMessage_EndHeight)(nil),
   308  	}
   309  }
   310  
   311  // TimedWALMessage wraps WALMessage and adds Time for debugging purposes.
   312  type TimedWALMessage struct {
   313  	Time time.Time   `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
   314  	Msg  *WALMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
   315  }
   316  
   317  func (m *TimedWALMessage) Reset()         { *m = TimedWALMessage{} }
   318  func (m *TimedWALMessage) String() string { return proto.CompactTextString(m) }
   319  func (*TimedWALMessage) ProtoMessage()    {}
   320  func (*TimedWALMessage) Descriptor() ([]byte, []int) {
   321  	return fileDescriptor_ed0b60c2d348ab09, []int{4}
   322  }
   323  func (m *TimedWALMessage) XXX_Unmarshal(b []byte) error {
   324  	return m.Unmarshal(b)
   325  }
   326  func (m *TimedWALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   327  	if deterministic {
   328  		return xxx_messageInfo_TimedWALMessage.Marshal(b, m, deterministic)
   329  	} else {
   330  		b = b[:cap(b)]
   331  		n, err := m.MarshalToSizedBuffer(b)
   332  		if err != nil {
   333  			return nil, err
   334  		}
   335  		return b[:n], nil
   336  	}
   337  }
   338  func (m *TimedWALMessage) XXX_Merge(src proto.Message) {
   339  	xxx_messageInfo_TimedWALMessage.Merge(m, src)
   340  }
   341  func (m *TimedWALMessage) XXX_Size() int {
   342  	return m.Size()
   343  }
   344  func (m *TimedWALMessage) XXX_DiscardUnknown() {
   345  	xxx_messageInfo_TimedWALMessage.DiscardUnknown(m)
   346  }
   347  
   348  var xxx_messageInfo_TimedWALMessage proto.InternalMessageInfo
   349  
   350  func (m *TimedWALMessage) GetTime() time.Time {
   351  	if m != nil {
   352  		return m.Time
   353  	}
   354  	return time.Time{}
   355  }
   356  
   357  func (m *TimedWALMessage) GetMsg() *WALMessage {
   358  	if m != nil {
   359  		return m.Msg
   360  	}
   361  	return nil
   362  }
   363  
   364  func init() {
   365  	proto.RegisterType((*MsgInfo)(nil), "tendermint.consensus.MsgInfo")
   366  	proto.RegisterType((*TimeoutInfo)(nil), "tendermint.consensus.TimeoutInfo")
   367  	proto.RegisterType((*EndHeight)(nil), "tendermint.consensus.EndHeight")
   368  	proto.RegisterType((*WALMessage)(nil), "tendermint.consensus.WALMessage")
   369  	proto.RegisterType((*TimedWALMessage)(nil), "tendermint.consensus.TimedWALMessage")
   370  }
   371  
   372  func init() { proto.RegisterFile("tendermint/consensus/wal.proto", fileDescriptor_ed0b60c2d348ab09) }
   373  
   374  var fileDescriptor_ed0b60c2d348ab09 = []byte{
   375  	// 539 bytes of a gzipped FileDescriptorProto
   376  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0xdd, 0x8a, 0xd3, 0x40,
   377  	0x14, 0xce, 0x6c, 0xff, 0x4f, 0x15, 0x21, 0x96, 0xa5, 0x16, 0x36, 0x8d, 0x5d, 0x84, 0x5e, 0x25,
   378  	0xb0, 0x22, 0x88, 0x5e, 0xa8, 0xa5, 0x2b, 0x2d, 0xb8, 0x20, 0xe3, 0x8a, 0x20, 0x42, 0x48, 0x37,
   379  	0xa7, 0x69, 0x60, 0x33, 0x53, 0x32, 0x13, 0xc5, 0x2b, 0x5f, 0xa1, 0x97, 0xbe, 0x89, 0xaf, 0xb0,
   380  	0x97, 0x7b, 0xe9, 0xd5, 0x2a, 0xed, 0x8b, 0x48, 0x66, 0xd2, 0x36, 0xb8, 0xd9, 0xbb, 0x39, 0x73,
   381  	0xbe, 0x73, 0xbe, 0x73, 0xbe, 0x6f, 0x06, 0x2c, 0x89, 0x2c, 0xc0, 0x24, 0x8e, 0x98, 0x74, 0x2f,
   382  	0x38, 0x13, 0xc8, 0x44, 0x2a, 0xdc, 0x6f, 0xfe, 0xa5, 0xb3, 0x4c, 0xb8, 0xe4, 0x66, 0x67, 0x9f,
   383  	0x77, 0x76, 0xf9, 0x5e, 0x27, 0xe4, 0x21, 0x57, 0x00, 0x37, 0x3b, 0x69, 0x6c, 0xcf, 0x2e, 0xed,
   384  	0x25, 0xbf, 0x2f, 0x51, 0xe4, 0x88, 0xa3, 0x02, 0x42, 0xdd, 0xbb, 0xf8, 0x15, 0x99, 0xdc, 0xa6,
   385  	0xad, 0x90, 0xf3, 0xf0, 0x12, 0x5d, 0x15, 0xcd, 0xd2, 0xb9, 0x1b, 0xa4, 0x89, 0x2f, 0x23, 0xce,
   386  	0xf2, 0x7c, 0xff, 0xff, 0xbc, 0x8c, 0x62, 0x14, 0xd2, 0x8f, 0x97, 0x1a, 0x30, 0x40, 0x68, 0x9c,
   387  	0x89, 0x70, 0xca, 0xe6, 0xdc, 0x7c, 0x06, 0x95, 0x58, 0x84, 0x5d, 0x62, 0x93, 0x61, 0xfb, 0xe4,
   388  	0xc8, 0x29, 0x5b, 0xc3, 0x39, 0x43, 0x21, 0xfc, 0x10, 0x47, 0xd5, 0xab, 0x9b, 0xbe, 0x41, 0x33,
   389  	0xbc, 0x79, 0x0c, 0x8d, 0x25, 0x62, 0xe2, 0x45, 0x41, 0xf7, 0xc0, 0x26, 0xc3, 0xd6, 0x08, 0xd6,
   390  	0x37, 0xfd, 0xfa, 0x7b, 0xc4, 0x64, 0x3a, 0xa6, 0xf5, 0x2c, 0x35, 0x0d, 0x06, 0x2b, 0x02, 0xed,
   391  	0xf3, 0x28, 0x46, 0x9e, 0x4a, 0xc5, 0xf5, 0x0a, 0x9a, 0xdb, 0x49, 0x73, 0xc2, 0x47, 0x8e, 0x1e,
   392  	0xd5, 0xd9, 0x8e, 0xea, 0x8c, 0x73, 0xc0, 0xa8, 0x99, 0x91, 0xfd, 0xfc, 0xd3, 0x27, 0x74, 0x57,
   393  	0x64, 0x1e, 0x42, 0x7d, 0x81, 0x51, 0xb8, 0x90, 0x8a, 0xb4, 0x42, 0xf3, 0xc8, 0xec, 0x40, 0x2d,
   394  	0xe1, 0x29, 0x0b, 0xba, 0x15, 0x9b, 0x0c, 0x6b, 0x54, 0x07, 0xa6, 0x09, 0x55, 0x21, 0x71, 0xd9,
   395  	0xad, 0xda, 0x64, 0x78, 0x9f, 0xaa, 0xf3, 0xe0, 0x18, 0x5a, 0xa7, 0x2c, 0x98, 0xe8, 0xb2, 0x7d,
   396  	0x3b, 0x52, 0x6c, 0x37, 0xf8, 0x75, 0x00, 0xf0, 0xe9, 0xcd, 0xbb, 0x7c, 0x6d, 0xf3, 0x0b, 0x1c,
   397  	0x2a, 0xf9, 0xbd, 0xc0, 0x97, 0xbe, 0xa7, 0x7a, 0x7b, 0x42, 0xfa, 0x12, 0xf3, 0x25, 0x9e, 0x14,
   398  	0x55, 0xd3, 0x36, 0x9e, 0x66, 0xf8, 0xb1, 0x2f, 0x7d, 0x9a, 0xa1, 0x3f, 0x64, 0xe0, 0x89, 0x41,
   399  	0x1f, 0xe2, 0xed, 0x6b, 0xf3, 0x05, 0x34, 0x63, 0x11, 0x7a, 0x11, 0x9b, 0x73, 0xb5, 0xd5, 0xdd,
   400  	0x2e, 0x68, 0xc7, 0x26, 0x06, 0x6d, 0xc4, 0xb9, 0x79, 0x6f, 0xe1, 0x9e, 0xd4, 0xfa, 0xea, 0xfa,
   401  	0x8a, 0xaa, 0x7f, 0x5c, 0x5e, 0x5f, 0x70, 0x62, 0x62, 0xd0, 0xb6, 0x2c, 0x18, 0xf3, 0x1a, 0x00,
   402  	0x59, 0xe0, 0xe5, 0x62, 0x54, 0x55, 0x97, 0x7e, 0x79, 0x97, 0x9d, 0x7a, 0x13, 0x83, 0xb6, 0x70,
   403  	0x1b, 0x8c, 0x6a, 0x50, 0x11, 0x69, 0x3c, 0xf8, 0x01, 0x0f, 0x32, 0x9a, 0xa0, 0xa0, 0xde, 0x73,
   404  	0xa8, 0x66, 0x54, 0xb9, 0x56, 0xbd, 0x5b, 0x86, 0x9f, 0x6f, 0xdf, 0xa6, 0x76, 0x7c, 0x95, 0x39,
   405  	0xae, 0x2a, 0xcc, 0x13, 0xfd, 0x34, 0xb5, 0x28, 0x76, 0xf9, 0x38, 0x7b, 0x22, 0xf5, 0x2e, 0x47,
   406  	0x1f, 0xaf, 0xd6, 0x16, 0xb9, 0x5e, 0x5b, 0xe4, 0xef, 0xda, 0x22, 0xab, 0x8d, 0x65, 0x5c, 0x6f,
   407  	0x2c, 0xe3, 0xf7, 0xc6, 0x32, 0x3e, 0xbf, 0x0c, 0x23, 0xb9, 0x48, 0x67, 0xce, 0x05, 0x8f, 0xdd,
   408  	0xe2, 0xf7, 0xda, 0x1f, 0xf5, 0x47, 0x2d, 0xfb, 0x9c, 0xb3, 0xba, 0xca, 0x3d, 0xfd, 0x17, 0x00,
   409  	0x00, 0xff, 0xff, 0x0b, 0xad, 0x1c, 0x1b, 0x07, 0x04, 0x00, 0x00,
   410  }
   411  
   412  func (m *MsgInfo) Marshal() (dAtA []byte, err error) {
   413  	size := m.Size()
   414  	dAtA = make([]byte, size)
   415  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   416  	if err != nil {
   417  		return nil, err
   418  	}
   419  	return dAtA[:n], nil
   420  }
   421  
   422  func (m *MsgInfo) MarshalTo(dAtA []byte) (int, error) {
   423  	size := m.Size()
   424  	return m.MarshalToSizedBuffer(dAtA[:size])
   425  }
   426  
   427  func (m *MsgInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   428  	i := len(dAtA)
   429  	_ = i
   430  	var l int
   431  	_ = l
   432  	if len(m.PeerID) > 0 {
   433  		i -= len(m.PeerID)
   434  		copy(dAtA[i:], m.PeerID)
   435  		i = encodeVarintWal(dAtA, i, uint64(len(m.PeerID)))
   436  		i--
   437  		dAtA[i] = 0x12
   438  	}
   439  	{
   440  		size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i])
   441  		if err != nil {
   442  			return 0, err
   443  		}
   444  		i -= size
   445  		i = encodeVarintWal(dAtA, i, uint64(size))
   446  	}
   447  	i--
   448  	dAtA[i] = 0xa
   449  	return len(dAtA) - i, nil
   450  }
   451  
   452  func (m *TimeoutInfo) Marshal() (dAtA []byte, err error) {
   453  	size := m.Size()
   454  	dAtA = make([]byte, size)
   455  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   456  	if err != nil {
   457  		return nil, err
   458  	}
   459  	return dAtA[:n], nil
   460  }
   461  
   462  func (m *TimeoutInfo) MarshalTo(dAtA []byte) (int, error) {
   463  	size := m.Size()
   464  	return m.MarshalToSizedBuffer(dAtA[:size])
   465  }
   466  
   467  func (m *TimeoutInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   468  	i := len(dAtA)
   469  	_ = i
   470  	var l int
   471  	_ = l
   472  	if m.Step != 0 {
   473  		i = encodeVarintWal(dAtA, i, uint64(m.Step))
   474  		i--
   475  		dAtA[i] = 0x20
   476  	}
   477  	if m.Round != 0 {
   478  		i = encodeVarintWal(dAtA, i, uint64(m.Round))
   479  		i--
   480  		dAtA[i] = 0x18
   481  	}
   482  	if m.Height != 0 {
   483  		i = encodeVarintWal(dAtA, i, uint64(m.Height))
   484  		i--
   485  		dAtA[i] = 0x10
   486  	}
   487  	n2, err2 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.Duration, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration):])
   488  	if err2 != nil {
   489  		return 0, err2
   490  	}
   491  	i -= n2
   492  	i = encodeVarintWal(dAtA, i, uint64(n2))
   493  	i--
   494  	dAtA[i] = 0xa
   495  	return len(dAtA) - i, nil
   496  }
   497  
   498  func (m *EndHeight) Marshal() (dAtA []byte, err error) {
   499  	size := m.Size()
   500  	dAtA = make([]byte, size)
   501  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   502  	if err != nil {
   503  		return nil, err
   504  	}
   505  	return dAtA[:n], nil
   506  }
   507  
   508  func (m *EndHeight) MarshalTo(dAtA []byte) (int, error) {
   509  	size := m.Size()
   510  	return m.MarshalToSizedBuffer(dAtA[:size])
   511  }
   512  
   513  func (m *EndHeight) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   514  	i := len(dAtA)
   515  	_ = i
   516  	var l int
   517  	_ = l
   518  	if m.Height != 0 {
   519  		i = encodeVarintWal(dAtA, i, uint64(m.Height))
   520  		i--
   521  		dAtA[i] = 0x8
   522  	}
   523  	return len(dAtA) - i, nil
   524  }
   525  
   526  func (m *WALMessage) Marshal() (dAtA []byte, err error) {
   527  	size := m.Size()
   528  	dAtA = make([]byte, size)
   529  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   530  	if err != nil {
   531  		return nil, err
   532  	}
   533  	return dAtA[:n], nil
   534  }
   535  
   536  func (m *WALMessage) MarshalTo(dAtA []byte) (int, error) {
   537  	size := m.Size()
   538  	return m.MarshalToSizedBuffer(dAtA[:size])
   539  }
   540  
   541  func (m *WALMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   542  	i := len(dAtA)
   543  	_ = i
   544  	var l int
   545  	_ = l
   546  	if m.Sum != nil {
   547  		{
   548  			size := m.Sum.Size()
   549  			i -= size
   550  			if _, err := m.Sum.MarshalTo(dAtA[i:]); err != nil {
   551  				return 0, err
   552  			}
   553  		}
   554  	}
   555  	return len(dAtA) - i, nil
   556  }
   557  
   558  func (m *WALMessage_EventDataRoundState) MarshalTo(dAtA []byte) (int, error) {
   559  	size := m.Size()
   560  	return m.MarshalToSizedBuffer(dAtA[:size])
   561  }
   562  
   563  func (m *WALMessage_EventDataRoundState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   564  	i := len(dAtA)
   565  	if m.EventDataRoundState != nil {
   566  		{
   567  			size, err := m.EventDataRoundState.MarshalToSizedBuffer(dAtA[:i])
   568  			if err != nil {
   569  				return 0, err
   570  			}
   571  			i -= size
   572  			i = encodeVarintWal(dAtA, i, uint64(size))
   573  		}
   574  		i--
   575  		dAtA[i] = 0xa
   576  	}
   577  	return len(dAtA) - i, nil
   578  }
   579  func (m *WALMessage_MsgInfo) MarshalTo(dAtA []byte) (int, error) {
   580  	size := m.Size()
   581  	return m.MarshalToSizedBuffer(dAtA[:size])
   582  }
   583  
   584  func (m *WALMessage_MsgInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   585  	i := len(dAtA)
   586  	if m.MsgInfo != nil {
   587  		{
   588  			size, err := m.MsgInfo.MarshalToSizedBuffer(dAtA[:i])
   589  			if err != nil {
   590  				return 0, err
   591  			}
   592  			i -= size
   593  			i = encodeVarintWal(dAtA, i, uint64(size))
   594  		}
   595  		i--
   596  		dAtA[i] = 0x12
   597  	}
   598  	return len(dAtA) - i, nil
   599  }
   600  func (m *WALMessage_TimeoutInfo) MarshalTo(dAtA []byte) (int, error) {
   601  	size := m.Size()
   602  	return m.MarshalToSizedBuffer(dAtA[:size])
   603  }
   604  
   605  func (m *WALMessage_TimeoutInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   606  	i := len(dAtA)
   607  	if m.TimeoutInfo != nil {
   608  		{
   609  			size, err := m.TimeoutInfo.MarshalToSizedBuffer(dAtA[:i])
   610  			if err != nil {
   611  				return 0, err
   612  			}
   613  			i -= size
   614  			i = encodeVarintWal(dAtA, i, uint64(size))
   615  		}
   616  		i--
   617  		dAtA[i] = 0x1a
   618  	}
   619  	return len(dAtA) - i, nil
   620  }
   621  func (m *WALMessage_EndHeight) MarshalTo(dAtA []byte) (int, error) {
   622  	size := m.Size()
   623  	return m.MarshalToSizedBuffer(dAtA[:size])
   624  }
   625  
   626  func (m *WALMessage_EndHeight) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   627  	i := len(dAtA)
   628  	if m.EndHeight != nil {
   629  		{
   630  			size, err := m.EndHeight.MarshalToSizedBuffer(dAtA[:i])
   631  			if err != nil {
   632  				return 0, err
   633  			}
   634  			i -= size
   635  			i = encodeVarintWal(dAtA, i, uint64(size))
   636  		}
   637  		i--
   638  		dAtA[i] = 0x22
   639  	}
   640  	return len(dAtA) - i, nil
   641  }
   642  func (m *TimedWALMessage) Marshal() (dAtA []byte, err error) {
   643  	size := m.Size()
   644  	dAtA = make([]byte, size)
   645  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   646  	if err != nil {
   647  		return nil, err
   648  	}
   649  	return dAtA[:n], nil
   650  }
   651  
   652  func (m *TimedWALMessage) MarshalTo(dAtA []byte) (int, error) {
   653  	size := m.Size()
   654  	return m.MarshalToSizedBuffer(dAtA[:size])
   655  }
   656  
   657  func (m *TimedWALMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   658  	i := len(dAtA)
   659  	_ = i
   660  	var l int
   661  	_ = l
   662  	if m.Msg != nil {
   663  		{
   664  			size, err := m.Msg.MarshalToSizedBuffer(dAtA[:i])
   665  			if err != nil {
   666  				return 0, err
   667  			}
   668  			i -= size
   669  			i = encodeVarintWal(dAtA, i, uint64(size))
   670  		}
   671  		i--
   672  		dAtA[i] = 0x12
   673  	}
   674  	n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
   675  	if err8 != nil {
   676  		return 0, err8
   677  	}
   678  	i -= n8
   679  	i = encodeVarintWal(dAtA, i, uint64(n8))
   680  	i--
   681  	dAtA[i] = 0xa
   682  	return len(dAtA) - i, nil
   683  }
   684  
   685  func encodeVarintWal(dAtA []byte, offset int, v uint64) int {
   686  	offset -= sovWal(v)
   687  	base := offset
   688  	for v >= 1<<7 {
   689  		dAtA[offset] = uint8(v&0x7f | 0x80)
   690  		v >>= 7
   691  		offset++
   692  	}
   693  	dAtA[offset] = uint8(v)
   694  	return base
   695  }
   696  func (m *MsgInfo) Size() (n int) {
   697  	if m == nil {
   698  		return 0
   699  	}
   700  	var l int
   701  	_ = l
   702  	l = m.Msg.Size()
   703  	n += 1 + l + sovWal(uint64(l))
   704  	l = len(m.PeerID)
   705  	if l > 0 {
   706  		n += 1 + l + sovWal(uint64(l))
   707  	}
   708  	return n
   709  }
   710  
   711  func (m *TimeoutInfo) Size() (n int) {
   712  	if m == nil {
   713  		return 0
   714  	}
   715  	var l int
   716  	_ = l
   717  	l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.Duration)
   718  	n += 1 + l + sovWal(uint64(l))
   719  	if m.Height != 0 {
   720  		n += 1 + sovWal(uint64(m.Height))
   721  	}
   722  	if m.Round != 0 {
   723  		n += 1 + sovWal(uint64(m.Round))
   724  	}
   725  	if m.Step != 0 {
   726  		n += 1 + sovWal(uint64(m.Step))
   727  	}
   728  	return n
   729  }
   730  
   731  func (m *EndHeight) Size() (n int) {
   732  	if m == nil {
   733  		return 0
   734  	}
   735  	var l int
   736  	_ = l
   737  	if m.Height != 0 {
   738  		n += 1 + sovWal(uint64(m.Height))
   739  	}
   740  	return n
   741  }
   742  
   743  func (m *WALMessage) Size() (n int) {
   744  	if m == nil {
   745  		return 0
   746  	}
   747  	var l int
   748  	_ = l
   749  	if m.Sum != nil {
   750  		n += m.Sum.Size()
   751  	}
   752  	return n
   753  }
   754  
   755  func (m *WALMessage_EventDataRoundState) Size() (n int) {
   756  	if m == nil {
   757  		return 0
   758  	}
   759  	var l int
   760  	_ = l
   761  	if m.EventDataRoundState != nil {
   762  		l = m.EventDataRoundState.Size()
   763  		n += 1 + l + sovWal(uint64(l))
   764  	}
   765  	return n
   766  }
   767  func (m *WALMessage_MsgInfo) Size() (n int) {
   768  	if m == nil {
   769  		return 0
   770  	}
   771  	var l int
   772  	_ = l
   773  	if m.MsgInfo != nil {
   774  		l = m.MsgInfo.Size()
   775  		n += 1 + l + sovWal(uint64(l))
   776  	}
   777  	return n
   778  }
   779  func (m *WALMessage_TimeoutInfo) Size() (n int) {
   780  	if m == nil {
   781  		return 0
   782  	}
   783  	var l int
   784  	_ = l
   785  	if m.TimeoutInfo != nil {
   786  		l = m.TimeoutInfo.Size()
   787  		n += 1 + l + sovWal(uint64(l))
   788  	}
   789  	return n
   790  }
   791  func (m *WALMessage_EndHeight) Size() (n int) {
   792  	if m == nil {
   793  		return 0
   794  	}
   795  	var l int
   796  	_ = l
   797  	if m.EndHeight != nil {
   798  		l = m.EndHeight.Size()
   799  		n += 1 + l + sovWal(uint64(l))
   800  	}
   801  	return n
   802  }
   803  func (m *TimedWALMessage) Size() (n int) {
   804  	if m == nil {
   805  		return 0
   806  	}
   807  	var l int
   808  	_ = l
   809  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
   810  	n += 1 + l + sovWal(uint64(l))
   811  	if m.Msg != nil {
   812  		l = m.Msg.Size()
   813  		n += 1 + l + sovWal(uint64(l))
   814  	}
   815  	return n
   816  }
   817  
   818  func sovWal(x uint64) (n int) {
   819  	return (math_bits.Len64(x|1) + 6) / 7
   820  }
   821  func sozWal(x uint64) (n int) {
   822  	return sovWal(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   823  }
   824  func (m *MsgInfo) Unmarshal(dAtA []byte) error {
   825  	l := len(dAtA)
   826  	iNdEx := 0
   827  	for iNdEx < l {
   828  		preIndex := iNdEx
   829  		var wire uint64
   830  		for shift := uint(0); ; shift += 7 {
   831  			if shift >= 64 {
   832  				return ErrIntOverflowWal
   833  			}
   834  			if iNdEx >= l {
   835  				return io.ErrUnexpectedEOF
   836  			}
   837  			b := dAtA[iNdEx]
   838  			iNdEx++
   839  			wire |= uint64(b&0x7F) << shift
   840  			if b < 0x80 {
   841  				break
   842  			}
   843  		}
   844  		fieldNum := int32(wire >> 3)
   845  		wireType := int(wire & 0x7)
   846  		if wireType == 4 {
   847  			return fmt.Errorf("proto: MsgInfo: wiretype end group for non-group")
   848  		}
   849  		if fieldNum <= 0 {
   850  			return fmt.Errorf("proto: MsgInfo: illegal tag %d (wire type %d)", fieldNum, wire)
   851  		}
   852  		switch fieldNum {
   853  		case 1:
   854  			if wireType != 2 {
   855  				return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
   856  			}
   857  			var msglen int
   858  			for shift := uint(0); ; shift += 7 {
   859  				if shift >= 64 {
   860  					return ErrIntOverflowWal
   861  				}
   862  				if iNdEx >= l {
   863  					return io.ErrUnexpectedEOF
   864  				}
   865  				b := dAtA[iNdEx]
   866  				iNdEx++
   867  				msglen |= int(b&0x7F) << shift
   868  				if b < 0x80 {
   869  					break
   870  				}
   871  			}
   872  			if msglen < 0 {
   873  				return ErrInvalidLengthWal
   874  			}
   875  			postIndex := iNdEx + msglen
   876  			if postIndex < 0 {
   877  				return ErrInvalidLengthWal
   878  			}
   879  			if postIndex > l {
   880  				return io.ErrUnexpectedEOF
   881  			}
   882  			if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   883  				return err
   884  			}
   885  			iNdEx = postIndex
   886  		case 2:
   887  			if wireType != 2 {
   888  				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
   889  			}
   890  			var stringLen uint64
   891  			for shift := uint(0); ; shift += 7 {
   892  				if shift >= 64 {
   893  					return ErrIntOverflowWal
   894  				}
   895  				if iNdEx >= l {
   896  					return io.ErrUnexpectedEOF
   897  				}
   898  				b := dAtA[iNdEx]
   899  				iNdEx++
   900  				stringLen |= uint64(b&0x7F) << shift
   901  				if b < 0x80 {
   902  					break
   903  				}
   904  			}
   905  			intStringLen := int(stringLen)
   906  			if intStringLen < 0 {
   907  				return ErrInvalidLengthWal
   908  			}
   909  			postIndex := iNdEx + intStringLen
   910  			if postIndex < 0 {
   911  				return ErrInvalidLengthWal
   912  			}
   913  			if postIndex > l {
   914  				return io.ErrUnexpectedEOF
   915  			}
   916  			m.PeerID = string(dAtA[iNdEx:postIndex])
   917  			iNdEx = postIndex
   918  		default:
   919  			iNdEx = preIndex
   920  			skippy, err := skipWal(dAtA[iNdEx:])
   921  			if err != nil {
   922  				return err
   923  			}
   924  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   925  				return ErrInvalidLengthWal
   926  			}
   927  			if (iNdEx + skippy) > l {
   928  				return io.ErrUnexpectedEOF
   929  			}
   930  			iNdEx += skippy
   931  		}
   932  	}
   933  
   934  	if iNdEx > l {
   935  		return io.ErrUnexpectedEOF
   936  	}
   937  	return nil
   938  }
   939  func (m *TimeoutInfo) Unmarshal(dAtA []byte) error {
   940  	l := len(dAtA)
   941  	iNdEx := 0
   942  	for iNdEx < l {
   943  		preIndex := iNdEx
   944  		var wire uint64
   945  		for shift := uint(0); ; shift += 7 {
   946  			if shift >= 64 {
   947  				return ErrIntOverflowWal
   948  			}
   949  			if iNdEx >= l {
   950  				return io.ErrUnexpectedEOF
   951  			}
   952  			b := dAtA[iNdEx]
   953  			iNdEx++
   954  			wire |= uint64(b&0x7F) << shift
   955  			if b < 0x80 {
   956  				break
   957  			}
   958  		}
   959  		fieldNum := int32(wire >> 3)
   960  		wireType := int(wire & 0x7)
   961  		if wireType == 4 {
   962  			return fmt.Errorf("proto: TimeoutInfo: wiretype end group for non-group")
   963  		}
   964  		if fieldNum <= 0 {
   965  			return fmt.Errorf("proto: TimeoutInfo: illegal tag %d (wire type %d)", fieldNum, wire)
   966  		}
   967  		switch fieldNum {
   968  		case 1:
   969  			if wireType != 2 {
   970  				return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType)
   971  			}
   972  			var msglen int
   973  			for shift := uint(0); ; shift += 7 {
   974  				if shift >= 64 {
   975  					return ErrIntOverflowWal
   976  				}
   977  				if iNdEx >= l {
   978  					return io.ErrUnexpectedEOF
   979  				}
   980  				b := dAtA[iNdEx]
   981  				iNdEx++
   982  				msglen |= int(b&0x7F) << shift
   983  				if b < 0x80 {
   984  					break
   985  				}
   986  			}
   987  			if msglen < 0 {
   988  				return ErrInvalidLengthWal
   989  			}
   990  			postIndex := iNdEx + msglen
   991  			if postIndex < 0 {
   992  				return ErrInvalidLengthWal
   993  			}
   994  			if postIndex > l {
   995  				return io.ErrUnexpectedEOF
   996  			}
   997  			if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.Duration, dAtA[iNdEx:postIndex]); err != nil {
   998  				return err
   999  			}
  1000  			iNdEx = postIndex
  1001  		case 2:
  1002  			if wireType != 0 {
  1003  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1004  			}
  1005  			m.Height = 0
  1006  			for shift := uint(0); ; shift += 7 {
  1007  				if shift >= 64 {
  1008  					return ErrIntOverflowWal
  1009  				}
  1010  				if iNdEx >= l {
  1011  					return io.ErrUnexpectedEOF
  1012  				}
  1013  				b := dAtA[iNdEx]
  1014  				iNdEx++
  1015  				m.Height |= int64(b&0x7F) << shift
  1016  				if b < 0x80 {
  1017  					break
  1018  				}
  1019  			}
  1020  		case 3:
  1021  			if wireType != 0 {
  1022  				return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  1023  			}
  1024  			m.Round = 0
  1025  			for shift := uint(0); ; shift += 7 {
  1026  				if shift >= 64 {
  1027  					return ErrIntOverflowWal
  1028  				}
  1029  				if iNdEx >= l {
  1030  					return io.ErrUnexpectedEOF
  1031  				}
  1032  				b := dAtA[iNdEx]
  1033  				iNdEx++
  1034  				m.Round |= int32(b&0x7F) << shift
  1035  				if b < 0x80 {
  1036  					break
  1037  				}
  1038  			}
  1039  		case 4:
  1040  			if wireType != 0 {
  1041  				return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType)
  1042  			}
  1043  			m.Step = 0
  1044  			for shift := uint(0); ; shift += 7 {
  1045  				if shift >= 64 {
  1046  					return ErrIntOverflowWal
  1047  				}
  1048  				if iNdEx >= l {
  1049  					return io.ErrUnexpectedEOF
  1050  				}
  1051  				b := dAtA[iNdEx]
  1052  				iNdEx++
  1053  				m.Step |= uint32(b&0x7F) << shift
  1054  				if b < 0x80 {
  1055  					break
  1056  				}
  1057  			}
  1058  		default:
  1059  			iNdEx = preIndex
  1060  			skippy, err := skipWal(dAtA[iNdEx:])
  1061  			if err != nil {
  1062  				return err
  1063  			}
  1064  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1065  				return ErrInvalidLengthWal
  1066  			}
  1067  			if (iNdEx + skippy) > l {
  1068  				return io.ErrUnexpectedEOF
  1069  			}
  1070  			iNdEx += skippy
  1071  		}
  1072  	}
  1073  
  1074  	if iNdEx > l {
  1075  		return io.ErrUnexpectedEOF
  1076  	}
  1077  	return nil
  1078  }
  1079  func (m *EndHeight) Unmarshal(dAtA []byte) error {
  1080  	l := len(dAtA)
  1081  	iNdEx := 0
  1082  	for iNdEx < l {
  1083  		preIndex := iNdEx
  1084  		var wire uint64
  1085  		for shift := uint(0); ; shift += 7 {
  1086  			if shift >= 64 {
  1087  				return ErrIntOverflowWal
  1088  			}
  1089  			if iNdEx >= l {
  1090  				return io.ErrUnexpectedEOF
  1091  			}
  1092  			b := dAtA[iNdEx]
  1093  			iNdEx++
  1094  			wire |= uint64(b&0x7F) << shift
  1095  			if b < 0x80 {
  1096  				break
  1097  			}
  1098  		}
  1099  		fieldNum := int32(wire >> 3)
  1100  		wireType := int(wire & 0x7)
  1101  		if wireType == 4 {
  1102  			return fmt.Errorf("proto: EndHeight: wiretype end group for non-group")
  1103  		}
  1104  		if fieldNum <= 0 {
  1105  			return fmt.Errorf("proto: EndHeight: illegal tag %d (wire type %d)", fieldNum, wire)
  1106  		}
  1107  		switch fieldNum {
  1108  		case 1:
  1109  			if wireType != 0 {
  1110  				return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  1111  			}
  1112  			m.Height = 0
  1113  			for shift := uint(0); ; shift += 7 {
  1114  				if shift >= 64 {
  1115  					return ErrIntOverflowWal
  1116  				}
  1117  				if iNdEx >= l {
  1118  					return io.ErrUnexpectedEOF
  1119  				}
  1120  				b := dAtA[iNdEx]
  1121  				iNdEx++
  1122  				m.Height |= int64(b&0x7F) << shift
  1123  				if b < 0x80 {
  1124  					break
  1125  				}
  1126  			}
  1127  		default:
  1128  			iNdEx = preIndex
  1129  			skippy, err := skipWal(dAtA[iNdEx:])
  1130  			if err != nil {
  1131  				return err
  1132  			}
  1133  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1134  				return ErrInvalidLengthWal
  1135  			}
  1136  			if (iNdEx + skippy) > l {
  1137  				return io.ErrUnexpectedEOF
  1138  			}
  1139  			iNdEx += skippy
  1140  		}
  1141  	}
  1142  
  1143  	if iNdEx > l {
  1144  		return io.ErrUnexpectedEOF
  1145  	}
  1146  	return nil
  1147  }
  1148  func (m *WALMessage) Unmarshal(dAtA []byte) error {
  1149  	l := len(dAtA)
  1150  	iNdEx := 0
  1151  	for iNdEx < l {
  1152  		preIndex := iNdEx
  1153  		var wire uint64
  1154  		for shift := uint(0); ; shift += 7 {
  1155  			if shift >= 64 {
  1156  				return ErrIntOverflowWal
  1157  			}
  1158  			if iNdEx >= l {
  1159  				return io.ErrUnexpectedEOF
  1160  			}
  1161  			b := dAtA[iNdEx]
  1162  			iNdEx++
  1163  			wire |= uint64(b&0x7F) << shift
  1164  			if b < 0x80 {
  1165  				break
  1166  			}
  1167  		}
  1168  		fieldNum := int32(wire >> 3)
  1169  		wireType := int(wire & 0x7)
  1170  		if wireType == 4 {
  1171  			return fmt.Errorf("proto: WALMessage: wiretype end group for non-group")
  1172  		}
  1173  		if fieldNum <= 0 {
  1174  			return fmt.Errorf("proto: WALMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1175  		}
  1176  		switch fieldNum {
  1177  		case 1:
  1178  			if wireType != 2 {
  1179  				return fmt.Errorf("proto: wrong wireType = %d for field EventDataRoundState", wireType)
  1180  			}
  1181  			var msglen int
  1182  			for shift := uint(0); ; shift += 7 {
  1183  				if shift >= 64 {
  1184  					return ErrIntOverflowWal
  1185  				}
  1186  				if iNdEx >= l {
  1187  					return io.ErrUnexpectedEOF
  1188  				}
  1189  				b := dAtA[iNdEx]
  1190  				iNdEx++
  1191  				msglen |= int(b&0x7F) << shift
  1192  				if b < 0x80 {
  1193  					break
  1194  				}
  1195  			}
  1196  			if msglen < 0 {
  1197  				return ErrInvalidLengthWal
  1198  			}
  1199  			postIndex := iNdEx + msglen
  1200  			if postIndex < 0 {
  1201  				return ErrInvalidLengthWal
  1202  			}
  1203  			if postIndex > l {
  1204  				return io.ErrUnexpectedEOF
  1205  			}
  1206  			v := &types.EventDataRoundState{}
  1207  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1208  				return err
  1209  			}
  1210  			m.Sum = &WALMessage_EventDataRoundState{v}
  1211  			iNdEx = postIndex
  1212  		case 2:
  1213  			if wireType != 2 {
  1214  				return fmt.Errorf("proto: wrong wireType = %d for field MsgInfo", wireType)
  1215  			}
  1216  			var msglen int
  1217  			for shift := uint(0); ; shift += 7 {
  1218  				if shift >= 64 {
  1219  					return ErrIntOverflowWal
  1220  				}
  1221  				if iNdEx >= l {
  1222  					return io.ErrUnexpectedEOF
  1223  				}
  1224  				b := dAtA[iNdEx]
  1225  				iNdEx++
  1226  				msglen |= int(b&0x7F) << shift
  1227  				if b < 0x80 {
  1228  					break
  1229  				}
  1230  			}
  1231  			if msglen < 0 {
  1232  				return ErrInvalidLengthWal
  1233  			}
  1234  			postIndex := iNdEx + msglen
  1235  			if postIndex < 0 {
  1236  				return ErrInvalidLengthWal
  1237  			}
  1238  			if postIndex > l {
  1239  				return io.ErrUnexpectedEOF
  1240  			}
  1241  			v := &MsgInfo{}
  1242  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1243  				return err
  1244  			}
  1245  			m.Sum = &WALMessage_MsgInfo{v}
  1246  			iNdEx = postIndex
  1247  		case 3:
  1248  			if wireType != 2 {
  1249  				return fmt.Errorf("proto: wrong wireType = %d for field TimeoutInfo", wireType)
  1250  			}
  1251  			var msglen int
  1252  			for shift := uint(0); ; shift += 7 {
  1253  				if shift >= 64 {
  1254  					return ErrIntOverflowWal
  1255  				}
  1256  				if iNdEx >= l {
  1257  					return io.ErrUnexpectedEOF
  1258  				}
  1259  				b := dAtA[iNdEx]
  1260  				iNdEx++
  1261  				msglen |= int(b&0x7F) << shift
  1262  				if b < 0x80 {
  1263  					break
  1264  				}
  1265  			}
  1266  			if msglen < 0 {
  1267  				return ErrInvalidLengthWal
  1268  			}
  1269  			postIndex := iNdEx + msglen
  1270  			if postIndex < 0 {
  1271  				return ErrInvalidLengthWal
  1272  			}
  1273  			if postIndex > l {
  1274  				return io.ErrUnexpectedEOF
  1275  			}
  1276  			v := &TimeoutInfo{}
  1277  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1278  				return err
  1279  			}
  1280  			m.Sum = &WALMessage_TimeoutInfo{v}
  1281  			iNdEx = postIndex
  1282  		case 4:
  1283  			if wireType != 2 {
  1284  				return fmt.Errorf("proto: wrong wireType = %d for field EndHeight", wireType)
  1285  			}
  1286  			var msglen int
  1287  			for shift := uint(0); ; shift += 7 {
  1288  				if shift >= 64 {
  1289  					return ErrIntOverflowWal
  1290  				}
  1291  				if iNdEx >= l {
  1292  					return io.ErrUnexpectedEOF
  1293  				}
  1294  				b := dAtA[iNdEx]
  1295  				iNdEx++
  1296  				msglen |= int(b&0x7F) << shift
  1297  				if b < 0x80 {
  1298  					break
  1299  				}
  1300  			}
  1301  			if msglen < 0 {
  1302  				return ErrInvalidLengthWal
  1303  			}
  1304  			postIndex := iNdEx + msglen
  1305  			if postIndex < 0 {
  1306  				return ErrInvalidLengthWal
  1307  			}
  1308  			if postIndex > l {
  1309  				return io.ErrUnexpectedEOF
  1310  			}
  1311  			v := &EndHeight{}
  1312  			if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1313  				return err
  1314  			}
  1315  			m.Sum = &WALMessage_EndHeight{v}
  1316  			iNdEx = postIndex
  1317  		default:
  1318  			iNdEx = preIndex
  1319  			skippy, err := skipWal(dAtA[iNdEx:])
  1320  			if err != nil {
  1321  				return err
  1322  			}
  1323  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1324  				return ErrInvalidLengthWal
  1325  			}
  1326  			if (iNdEx + skippy) > l {
  1327  				return io.ErrUnexpectedEOF
  1328  			}
  1329  			iNdEx += skippy
  1330  		}
  1331  	}
  1332  
  1333  	if iNdEx > l {
  1334  		return io.ErrUnexpectedEOF
  1335  	}
  1336  	return nil
  1337  }
  1338  func (m *TimedWALMessage) Unmarshal(dAtA []byte) error {
  1339  	l := len(dAtA)
  1340  	iNdEx := 0
  1341  	for iNdEx < l {
  1342  		preIndex := iNdEx
  1343  		var wire uint64
  1344  		for shift := uint(0); ; shift += 7 {
  1345  			if shift >= 64 {
  1346  				return ErrIntOverflowWal
  1347  			}
  1348  			if iNdEx >= l {
  1349  				return io.ErrUnexpectedEOF
  1350  			}
  1351  			b := dAtA[iNdEx]
  1352  			iNdEx++
  1353  			wire |= uint64(b&0x7F) << shift
  1354  			if b < 0x80 {
  1355  				break
  1356  			}
  1357  		}
  1358  		fieldNum := int32(wire >> 3)
  1359  		wireType := int(wire & 0x7)
  1360  		if wireType == 4 {
  1361  			return fmt.Errorf("proto: TimedWALMessage: wiretype end group for non-group")
  1362  		}
  1363  		if fieldNum <= 0 {
  1364  			return fmt.Errorf("proto: TimedWALMessage: illegal tag %d (wire type %d)", fieldNum, wire)
  1365  		}
  1366  		switch fieldNum {
  1367  		case 1:
  1368  			if wireType != 2 {
  1369  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  1370  			}
  1371  			var msglen int
  1372  			for shift := uint(0); ; shift += 7 {
  1373  				if shift >= 64 {
  1374  					return ErrIntOverflowWal
  1375  				}
  1376  				if iNdEx >= l {
  1377  					return io.ErrUnexpectedEOF
  1378  				}
  1379  				b := dAtA[iNdEx]
  1380  				iNdEx++
  1381  				msglen |= int(b&0x7F) << shift
  1382  				if b < 0x80 {
  1383  					break
  1384  				}
  1385  			}
  1386  			if msglen < 0 {
  1387  				return ErrInvalidLengthWal
  1388  			}
  1389  			postIndex := iNdEx + msglen
  1390  			if postIndex < 0 {
  1391  				return ErrInvalidLengthWal
  1392  			}
  1393  			if postIndex > l {
  1394  				return io.ErrUnexpectedEOF
  1395  			}
  1396  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  1397  				return err
  1398  			}
  1399  			iNdEx = postIndex
  1400  		case 2:
  1401  			if wireType != 2 {
  1402  				return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  1403  			}
  1404  			var msglen int
  1405  			for shift := uint(0); ; shift += 7 {
  1406  				if shift >= 64 {
  1407  					return ErrIntOverflowWal
  1408  				}
  1409  				if iNdEx >= l {
  1410  					return io.ErrUnexpectedEOF
  1411  				}
  1412  				b := dAtA[iNdEx]
  1413  				iNdEx++
  1414  				msglen |= int(b&0x7F) << shift
  1415  				if b < 0x80 {
  1416  					break
  1417  				}
  1418  			}
  1419  			if msglen < 0 {
  1420  				return ErrInvalidLengthWal
  1421  			}
  1422  			postIndex := iNdEx + msglen
  1423  			if postIndex < 0 {
  1424  				return ErrInvalidLengthWal
  1425  			}
  1426  			if postIndex > l {
  1427  				return io.ErrUnexpectedEOF
  1428  			}
  1429  			if m.Msg == nil {
  1430  				m.Msg = &WALMessage{}
  1431  			}
  1432  			if err := m.Msg.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1433  				return err
  1434  			}
  1435  			iNdEx = postIndex
  1436  		default:
  1437  			iNdEx = preIndex
  1438  			skippy, err := skipWal(dAtA[iNdEx:])
  1439  			if err != nil {
  1440  				return err
  1441  			}
  1442  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1443  				return ErrInvalidLengthWal
  1444  			}
  1445  			if (iNdEx + skippy) > l {
  1446  				return io.ErrUnexpectedEOF
  1447  			}
  1448  			iNdEx += skippy
  1449  		}
  1450  	}
  1451  
  1452  	if iNdEx > l {
  1453  		return io.ErrUnexpectedEOF
  1454  	}
  1455  	return nil
  1456  }
  1457  func skipWal(dAtA []byte) (n int, err error) {
  1458  	l := len(dAtA)
  1459  	iNdEx := 0
  1460  	depth := 0
  1461  	for iNdEx < l {
  1462  		var wire uint64
  1463  		for shift := uint(0); ; shift += 7 {
  1464  			if shift >= 64 {
  1465  				return 0, ErrIntOverflowWal
  1466  			}
  1467  			if iNdEx >= l {
  1468  				return 0, io.ErrUnexpectedEOF
  1469  			}
  1470  			b := dAtA[iNdEx]
  1471  			iNdEx++
  1472  			wire |= (uint64(b) & 0x7F) << shift
  1473  			if b < 0x80 {
  1474  				break
  1475  			}
  1476  		}
  1477  		wireType := int(wire & 0x7)
  1478  		switch wireType {
  1479  		case 0:
  1480  			for shift := uint(0); ; shift += 7 {
  1481  				if shift >= 64 {
  1482  					return 0, ErrIntOverflowWal
  1483  				}
  1484  				if iNdEx >= l {
  1485  					return 0, io.ErrUnexpectedEOF
  1486  				}
  1487  				iNdEx++
  1488  				if dAtA[iNdEx-1] < 0x80 {
  1489  					break
  1490  				}
  1491  			}
  1492  		case 1:
  1493  			iNdEx += 8
  1494  		case 2:
  1495  			var length int
  1496  			for shift := uint(0); ; shift += 7 {
  1497  				if shift >= 64 {
  1498  					return 0, ErrIntOverflowWal
  1499  				}
  1500  				if iNdEx >= l {
  1501  					return 0, io.ErrUnexpectedEOF
  1502  				}
  1503  				b := dAtA[iNdEx]
  1504  				iNdEx++
  1505  				length |= (int(b) & 0x7F) << shift
  1506  				if b < 0x80 {
  1507  					break
  1508  				}
  1509  			}
  1510  			if length < 0 {
  1511  				return 0, ErrInvalidLengthWal
  1512  			}
  1513  			iNdEx += length
  1514  		case 3:
  1515  			depth++
  1516  		case 4:
  1517  			if depth == 0 {
  1518  				return 0, ErrUnexpectedEndOfGroupWal
  1519  			}
  1520  			depth--
  1521  		case 5:
  1522  			iNdEx += 4
  1523  		default:
  1524  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1525  		}
  1526  		if iNdEx < 0 {
  1527  			return 0, ErrInvalidLengthWal
  1528  		}
  1529  		if depth == 0 {
  1530  			return iNdEx, nil
  1531  		}
  1532  	}
  1533  	return 0, io.ErrUnexpectedEOF
  1534  }
  1535  
  1536  var (
  1537  	ErrInvalidLengthWal        = fmt.Errorf("proto: negative length found during unmarshaling")
  1538  	ErrIntOverflowWal          = fmt.Errorf("proto: integer overflow")
  1539  	ErrUnexpectedEndOfGroupWal = fmt.Errorf("proto: unexpected end of group")
  1540  )