github.com/okex/exchain@v1.8.0/libs/tendermint/proto/consensus/walmsgs.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: proto/consensus/walmsgs.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/golang/protobuf/ptypes/duration" 11 _ "github.com/golang/protobuf/ptypes/timestamp" 12 types "github.com/okex/exchain/libs/tendermint/proto/types" 13 math "math" 14 time "time" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 var _ = time.Kitchen 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 28 29 // MsgInfo are msgs from the reactor which may update the state 30 type MsgInfo struct { 31 Msg Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` 32 PeerID string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` 33 XXX_NoUnkeyedLiteral struct{} `json:"-"` 34 XXX_unrecognized []byte `json:"-"` 35 XXX_sizecache int32 `json:"-"` 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_60ad80fa14e37285, []int{0} 43 } 44 func (m *MsgInfo) XXX_Unmarshal(b []byte) error { 45 return xxx_messageInfo_MsgInfo.Unmarshal(m, b) 46 } 47 func (m *MsgInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 return xxx_messageInfo_MsgInfo.Marshal(b, m, deterministic) 49 } 50 func (m *MsgInfo) XXX_Merge(src proto.Message) { 51 xxx_messageInfo_MsgInfo.Merge(m, src) 52 } 53 func (m *MsgInfo) XXX_Size() int { 54 return xxx_messageInfo_MsgInfo.Size(m) 55 } 56 func (m *MsgInfo) XXX_DiscardUnknown() { 57 xxx_messageInfo_MsgInfo.DiscardUnknown(m) 58 } 59 60 var xxx_messageInfo_MsgInfo proto.InternalMessageInfo 61 62 func (m *MsgInfo) GetMsg() Message { 63 if m != nil { 64 return m.Msg 65 } 66 return Message{} 67 } 68 69 func (m *MsgInfo) GetPeerID() string { 70 if m != nil { 71 return m.PeerID 72 } 73 return "" 74 } 75 76 // TimeoutInfo internally generated messages which may update the state 77 type TimeoutInfo struct { 78 Duration time.Duration `protobuf:"bytes,1,opt,name=duration,proto3,stdduration" json:"duration"` 79 Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` 80 Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` 81 Step uint32 `protobuf:"varint,4,opt,name=step,proto3" json:"step,omitempty"` 82 XXX_NoUnkeyedLiteral struct{} `json:"-"` 83 XXX_unrecognized []byte `json:"-"` 84 XXX_sizecache int32 `json:"-"` 85 } 86 87 func (m *TimeoutInfo) Reset() { *m = TimeoutInfo{} } 88 func (m *TimeoutInfo) String() string { return proto.CompactTextString(m) } 89 func (*TimeoutInfo) ProtoMessage() {} 90 func (*TimeoutInfo) Descriptor() ([]byte, []int) { 91 return fileDescriptor_60ad80fa14e37285, []int{1} 92 } 93 func (m *TimeoutInfo) XXX_Unmarshal(b []byte) error { 94 return xxx_messageInfo_TimeoutInfo.Unmarshal(m, b) 95 } 96 func (m *TimeoutInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 return xxx_messageInfo_TimeoutInfo.Marshal(b, m, deterministic) 98 } 99 func (m *TimeoutInfo) XXX_Merge(src proto.Message) { 100 xxx_messageInfo_TimeoutInfo.Merge(m, src) 101 } 102 func (m *TimeoutInfo) XXX_Size() int { 103 return xxx_messageInfo_TimeoutInfo.Size(m) 104 } 105 func (m *TimeoutInfo) XXX_DiscardUnknown() { 106 xxx_messageInfo_TimeoutInfo.DiscardUnknown(m) 107 } 108 109 var xxx_messageInfo_TimeoutInfo proto.InternalMessageInfo 110 111 func (m *TimeoutInfo) GetDuration() time.Duration { 112 if m != nil { 113 return m.Duration 114 } 115 return 0 116 } 117 118 func (m *TimeoutInfo) GetHeight() int64 { 119 if m != nil { 120 return m.Height 121 } 122 return 0 123 } 124 125 func (m *TimeoutInfo) GetRound() int32 { 126 if m != nil { 127 return m.Round 128 } 129 return 0 130 } 131 132 func (m *TimeoutInfo) GetStep() uint32 { 133 if m != nil { 134 return m.Step 135 } 136 return 0 137 } 138 139 // EndHeightMessage marks the end of the given height inside WAL. 140 // @internal used by scripts/wal2json util. 141 type EndHeight struct { 142 Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 143 XXX_NoUnkeyedLiteral struct{} `json:"-"` 144 XXX_unrecognized []byte `json:"-"` 145 XXX_sizecache int32 `json:"-"` 146 } 147 148 func (m *EndHeight) Reset() { *m = EndHeight{} } 149 func (m *EndHeight) String() string { return proto.CompactTextString(m) } 150 func (*EndHeight) ProtoMessage() {} 151 func (*EndHeight) Descriptor() ([]byte, []int) { 152 return fileDescriptor_60ad80fa14e37285, []int{2} 153 } 154 func (m *EndHeight) XXX_Unmarshal(b []byte) error { 155 return xxx_messageInfo_EndHeight.Unmarshal(m, b) 156 } 157 func (m *EndHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 158 return xxx_messageInfo_EndHeight.Marshal(b, m, deterministic) 159 } 160 func (m *EndHeight) XXX_Merge(src proto.Message) { 161 xxx_messageInfo_EndHeight.Merge(m, src) 162 } 163 func (m *EndHeight) XXX_Size() int { 164 return xxx_messageInfo_EndHeight.Size(m) 165 } 166 func (m *EndHeight) XXX_DiscardUnknown() { 167 xxx_messageInfo_EndHeight.DiscardUnknown(m) 168 } 169 170 var xxx_messageInfo_EndHeight proto.InternalMessageInfo 171 172 func (m *EndHeight) GetHeight() int64 { 173 if m != nil { 174 return m.Height 175 } 176 return 0 177 } 178 179 type WALMessage struct { 180 // Types that are valid to be assigned to Sum: 181 // *WALMessage_EventDataRoundState 182 // *WALMessage_MsgInfo 183 // *WALMessage_TimeoutInfo 184 // *WALMessage_EndHeight 185 Sum isWALMessage_Sum `protobuf_oneof:"sum"` 186 XXX_NoUnkeyedLiteral struct{} `json:"-"` 187 XXX_unrecognized []byte `json:"-"` 188 XXX_sizecache int32 `json:"-"` 189 } 190 191 func (m *WALMessage) Reset() { *m = WALMessage{} } 192 func (m *WALMessage) String() string { return proto.CompactTextString(m) } 193 func (*WALMessage) ProtoMessage() {} 194 func (*WALMessage) Descriptor() ([]byte, []int) { 195 return fileDescriptor_60ad80fa14e37285, []int{3} 196 } 197 func (m *WALMessage) XXX_Unmarshal(b []byte) error { 198 return xxx_messageInfo_WALMessage.Unmarshal(m, b) 199 } 200 func (m *WALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 201 return xxx_messageInfo_WALMessage.Marshal(b, m, deterministic) 202 } 203 func (m *WALMessage) XXX_Merge(src proto.Message) { 204 xxx_messageInfo_WALMessage.Merge(m, src) 205 } 206 func (m *WALMessage) XXX_Size() int { 207 return xxx_messageInfo_WALMessage.Size(m) 208 } 209 func (m *WALMessage) XXX_DiscardUnknown() { 210 xxx_messageInfo_WALMessage.DiscardUnknown(m) 211 } 212 213 var xxx_messageInfo_WALMessage proto.InternalMessageInfo 214 215 type isWALMessage_Sum interface { 216 isWALMessage_Sum() 217 } 218 219 type WALMessage_EventDataRoundState struct { 220 EventDataRoundState *types.EventDataRoundState `protobuf:"bytes,1,opt,name=event_data_round_state,json=eventDataRoundState,proto3,oneof" json:"event_data_round_state,omitempty"` 221 } 222 type WALMessage_MsgInfo struct { 223 MsgInfo *MsgInfo `protobuf:"bytes,2,opt,name=msg_info,json=msgInfo,proto3,oneof" json:"msg_info,omitempty"` 224 } 225 type WALMessage_TimeoutInfo struct { 226 TimeoutInfo *TimeoutInfo `protobuf:"bytes,3,opt,name=timeout_info,json=timeoutInfo,proto3,oneof" json:"timeout_info,omitempty"` 227 } 228 type WALMessage_EndHeight struct { 229 EndHeight *EndHeight `protobuf:"bytes,4,opt,name=end_height,json=endHeight,proto3,oneof" json:"end_height,omitempty"` 230 } 231 232 func (*WALMessage_EventDataRoundState) isWALMessage_Sum() {} 233 func (*WALMessage_MsgInfo) isWALMessage_Sum() {} 234 func (*WALMessage_TimeoutInfo) isWALMessage_Sum() {} 235 func (*WALMessage_EndHeight) isWALMessage_Sum() {} 236 237 func (m *WALMessage) GetSum() isWALMessage_Sum { 238 if m != nil { 239 return m.Sum 240 } 241 return nil 242 } 243 244 func (m *WALMessage) GetEventDataRoundState() *types.EventDataRoundState { 245 if x, ok := m.GetSum().(*WALMessage_EventDataRoundState); ok { 246 return x.EventDataRoundState 247 } 248 return nil 249 } 250 251 func (m *WALMessage) GetMsgInfo() *MsgInfo { 252 if x, ok := m.GetSum().(*WALMessage_MsgInfo); ok { 253 return x.MsgInfo 254 } 255 return nil 256 } 257 258 func (m *WALMessage) GetTimeoutInfo() *TimeoutInfo { 259 if x, ok := m.GetSum().(*WALMessage_TimeoutInfo); ok { 260 return x.TimeoutInfo 261 } 262 return nil 263 } 264 265 func (m *WALMessage) GetEndHeight() *EndHeight { 266 if x, ok := m.GetSum().(*WALMessage_EndHeight); ok { 267 return x.EndHeight 268 } 269 return nil 270 } 271 272 // XXX_OneofWrappers is for the internal use of the proto package. 273 func (*WALMessage) XXX_OneofWrappers() []interface{} { 274 return []interface{}{ 275 (*WALMessage_EventDataRoundState)(nil), 276 (*WALMessage_MsgInfo)(nil), 277 (*WALMessage_TimeoutInfo)(nil), 278 (*WALMessage_EndHeight)(nil), 279 } 280 } 281 282 // TimedWALMessage wraps WALMessage and adds Time for debugging purposes. 283 type TimedWALMessage struct { 284 Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"` 285 Msg *WALMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 286 XXX_NoUnkeyedLiteral struct{} `json:"-"` 287 XXX_unrecognized []byte `json:"-"` 288 XXX_sizecache int32 `json:"-"` 289 } 290 291 func (m *TimedWALMessage) Reset() { *m = TimedWALMessage{} } 292 func (m *TimedWALMessage) String() string { return proto.CompactTextString(m) } 293 func (*TimedWALMessage) ProtoMessage() {} 294 func (*TimedWALMessage) Descriptor() ([]byte, []int) { 295 return fileDescriptor_60ad80fa14e37285, []int{4} 296 } 297 func (m *TimedWALMessage) XXX_Unmarshal(b []byte) error { 298 return xxx_messageInfo_TimedWALMessage.Unmarshal(m, b) 299 } 300 func (m *TimedWALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 301 return xxx_messageInfo_TimedWALMessage.Marshal(b, m, deterministic) 302 } 303 func (m *TimedWALMessage) XXX_Merge(src proto.Message) { 304 xxx_messageInfo_TimedWALMessage.Merge(m, src) 305 } 306 func (m *TimedWALMessage) XXX_Size() int { 307 return xxx_messageInfo_TimedWALMessage.Size(m) 308 } 309 func (m *TimedWALMessage) XXX_DiscardUnknown() { 310 xxx_messageInfo_TimedWALMessage.DiscardUnknown(m) 311 } 312 313 var xxx_messageInfo_TimedWALMessage proto.InternalMessageInfo 314 315 func (m *TimedWALMessage) GetTime() time.Time { 316 if m != nil { 317 return m.Time 318 } 319 return time.Time{} 320 } 321 322 func (m *TimedWALMessage) GetMsg() *WALMessage { 323 if m != nil { 324 return m.Msg 325 } 326 return nil 327 } 328 329 func init() { 330 proto.RegisterType((*MsgInfo)(nil), "tendermint.proto.consensus.MsgInfo") 331 proto.RegisterType((*TimeoutInfo)(nil), "tendermint.proto.consensus.TimeoutInfo") 332 proto.RegisterType((*EndHeight)(nil), "tendermint.proto.consensus.EndHeight") 333 proto.RegisterType((*WALMessage)(nil), "tendermint.proto.consensus.WALMessage") 334 proto.RegisterType((*TimedWALMessage)(nil), "tendermint.proto.consensus.TimedWALMessage") 335 } 336 337 func init() { proto.RegisterFile("proto/consensus/walmsgs.proto", fileDescriptor_60ad80fa14e37285) } 338 339 var fileDescriptor_60ad80fa14e37285 = []byte{ 340 // 528 bytes of a gzipped FileDescriptorProto 341 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcd, 0x8a, 0x13, 0x41, 342 0x10, 0xce, 0x6c, 0xb2, 0xf9, 0xa9, 0x28, 0xc2, 0x28, 0x4b, 0x1c, 0xd0, 0x84, 0x04, 0xd7, 0x80, 343 0x30, 0x23, 0xeb, 0x65, 0xc1, 0x83, 0x1a, 0xb2, 0x92, 0xc0, 0x2e, 0x48, 0xbb, 0x20, 0x78, 0x19, 344 0x26, 0x3b, 0x95, 0xce, 0xe0, 0x76, 0xf7, 0x30, 0x5d, 0xa3, 0xec, 0x03, 0x78, 0xdf, 0xa3, 0x8f, 345 0xe4, 0xcd, 0x37, 0x58, 0xc1, 0x27, 0x91, 0xe9, 0x9e, 0xfc, 0x90, 0x60, 0xbc, 0x75, 0x57, 0xf5, 346 0xf7, 0x7d, 0x55, 0xf5, 0x55, 0xc3, 0x93, 0x34, 0x53, 0xa4, 0x82, 0x2b, 0x25, 0x35, 0x4a, 0x9d, 347 0xeb, 0xe0, 0x5b, 0x74, 0x2d, 0x34, 0xd7, 0xbe, 0x89, 0xbb, 0x1e, 0xa1, 0x8c, 0x31, 0x13, 0x89, 348 0x24, 0x1b, 0xf1, 0x57, 0x2f, 0xbd, 0x63, 0x5a, 0x24, 0x59, 0x1c, 0xa6, 0x51, 0x46, 0x37, 0x81, 349 0xa5, 0xe1, 0x8a, 0xab, 0xf5, 0xc9, 0x22, 0x3c, 0x6f, 0x5b, 0x62, 0xcd, 0xef, 0x75, 0x6c, 0x8e, 350 0x6e, 0x52, 0xd4, 0x01, 0x7e, 0x45, 0x49, 0xcb, 0xcc, 0x53, 0xae, 0x14, 0xbf, 0x46, 0x4b, 0x3c, 351 0xcb, 0xe7, 0x41, 0x9c, 0x67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0x38, 0x32, 0x26, 0x84, 0x71, 0x44, 0x51, 0x68, 363 0xb8, 0x43, 0x4d, 0x11, 0x61, 0xd9, 0xc4, 0x8b, 0xdd, 0xd9, 0x19, 0xeb, 0xfc, 0xb3, 0x02, 0x35, 364 0x8e, 0x28, 0x62, 0x05, 0xe6, 0x63, 0x01, 0x99, 0x54, 0xd8, 0x43, 0xdc, 0x0d, 0xbb, 0x6f, 0xa1, 365 0x29, 0x34, 0x0f, 0x13, 0x39, 0x57, 0xa6, 0xb7, 0xff, 0x39, 0x62, 0x3d, 0x9c, 0x54, 0x58, 0x43, 366 0x94, 0x76, 0x9e, 0xc3, 0x3d, 0xb2, 0xb3, 0xb6, 0x2c, 0x55, 0xc3, 0xf2, 0x7c, 0x1f, 0xcb, 0x86, 367 0x37, 0x93, 0x0a, 0x6b, 0xd3, 0x86, 0x55, 0xef, 0x01, 0x50, 0xc6, 0x61, 0x39, 0x9e, 0x9a, 0xe1, 368 0x7a, 0xb6, 0x8f, 0x6b, 0x35, 0xd5, 0x49, 0x85, 0xb5, 0x70, 0x79, 0x19, 0x1d, 0x42, 0x55, 0xe7, 369 0xa2, 0xff, 0xdd, 0x81, 0x07, 0x85, 0x5a, 0xbc, 0x31, 0xd6, 0x53, 0xa8, 0x15, 0x8a, 0xe5, 0x10, 370 0xbd, 0x9d, 0x4d, 0xb8, 0x5c, 0xae, 0xae, 0x5d, 0x85, 0xdb, 0x62, 0x15, 0x0c, 0xc2, 0x3d, 0xb5, 371 0x9b, 0x6b, 0xe7, 0x74, 0xbc, 0xaf, 0xaa, 0xb5, 0x9c, 0x59, 0xdb, 0xd1, 0xc9, 0xe7, 0x97, 0x3c, 372 0xa1, 0x45, 0x3e, 0xf3, 0xaf, 0x94, 0x08, 0xd6, 0xc0, 0xcd, 0xe3, 0xd6, 0xc7, 0x9c, 0xd5, 0x4d, 373 0xe0, 0xd5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x7e, 0x02, 0x98, 0x15, 0x04, 0x00, 0x00, 374 }