You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

389 lines
9.4 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/types/events.proto
  3. package types
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. io "io"
  8. math "math"
  9. math_bits "math/bits"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  20. type EventDataRoundState struct {
  21. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  22. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  23. Step string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
  24. }
  25. func (m *EventDataRoundState) Reset() { *m = EventDataRoundState{} }
  26. func (m *EventDataRoundState) String() string { return proto.CompactTextString(m) }
  27. func (*EventDataRoundState) ProtoMessage() {}
  28. func (*EventDataRoundState) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_1bb9bdae76a076d6, []int{0}
  30. }
  31. func (m *EventDataRoundState) XXX_Unmarshal(b []byte) error {
  32. return m.Unmarshal(b)
  33. }
  34. func (m *EventDataRoundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. if deterministic {
  36. return xxx_messageInfo_EventDataRoundState.Marshal(b, m, deterministic)
  37. } else {
  38. b = b[:cap(b)]
  39. n, err := m.MarshalToSizedBuffer(b)
  40. if err != nil {
  41. return nil, err
  42. }
  43. return b[:n], nil
  44. }
  45. }
  46. func (m *EventDataRoundState) XXX_Merge(src proto.Message) {
  47. xxx_messageInfo_EventDataRoundState.Merge(m, src)
  48. }
  49. func (m *EventDataRoundState) XXX_Size() int {
  50. return m.Size()
  51. }
  52. func (m *EventDataRoundState) XXX_DiscardUnknown() {
  53. xxx_messageInfo_EventDataRoundState.DiscardUnknown(m)
  54. }
  55. var xxx_messageInfo_EventDataRoundState proto.InternalMessageInfo
  56. func (m *EventDataRoundState) GetHeight() int64 {
  57. if m != nil {
  58. return m.Height
  59. }
  60. return 0
  61. }
  62. func (m *EventDataRoundState) GetRound() int32 {
  63. if m != nil {
  64. return m.Round
  65. }
  66. return 0
  67. }
  68. func (m *EventDataRoundState) GetStep() string {
  69. if m != nil {
  70. return m.Step
  71. }
  72. return ""
  73. }
  74. func init() {
  75. proto.RegisterType((*EventDataRoundState)(nil), "tendermint.types.EventDataRoundState")
  76. }
  77. func init() { proto.RegisterFile("proto/types/events.proto", fileDescriptor_1bb9bdae76a076d6) }
  78. var fileDescriptor_1bb9bdae76a076d6 = []byte{
  79. // 186 bytes of a gzipped FileDescriptorProto
  80. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x28, 0xca, 0x2f,
  81. 0xc9, 0xd7, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0x29, 0xd6, 0x03,
  82. 0x0b, 0x09, 0x09, 0x94, 0xa4, 0xe6, 0xa5, 0xa4, 0x16, 0xe5, 0x66, 0xe6, 0x95, 0xe8, 0x81, 0xa5,
  83. 0x95, 0xc2, 0xb9, 0x84, 0x5d, 0x41, 0x2a, 0x5c, 0x12, 0x4b, 0x12, 0x83, 0xf2, 0x4b, 0xf3, 0x52,
  84. 0x82, 0x4b, 0x12, 0x4b, 0x52, 0x85, 0xc4, 0xb8, 0xd8, 0x32, 0x52, 0x33, 0xd3, 0x33, 0x4a, 0x24,
  85. 0x18, 0x15, 0x18, 0x35, 0x98, 0x83, 0xa0, 0x3c, 0x21, 0x11, 0x2e, 0xd6, 0x22, 0x90, 0x2a, 0x09,
  86. 0x26, 0x05, 0x46, 0x0d, 0xd6, 0x20, 0x08, 0x47, 0x48, 0x88, 0x8b, 0xa5, 0xb8, 0x24, 0xb5, 0x40,
  87. 0x82, 0x59, 0x81, 0x51, 0x83, 0x33, 0x08, 0xcc, 0x76, 0x72, 0x3b, 0xf1, 0x48, 0x8e, 0xf1, 0xc2,
  88. 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1,
  89. 0xc6, 0x63, 0x39, 0x86, 0x28, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c,
  90. 0x7d, 0x84, 0x7b, 0x90, 0x99, 0x48, 0xee, 0x4f, 0x62, 0x03, 0x73, 0x8c, 0x01, 0x01, 0x00, 0x00,
  91. 0xff, 0xff, 0xee, 0x5d, 0x95, 0x24, 0xd5, 0x00, 0x00, 0x00,
  92. }
  93. func (m *EventDataRoundState) Marshal() (dAtA []byte, err error) {
  94. size := m.Size()
  95. dAtA = make([]byte, size)
  96. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  97. if err != nil {
  98. return nil, err
  99. }
  100. return dAtA[:n], nil
  101. }
  102. func (m *EventDataRoundState) MarshalTo(dAtA []byte) (int, error) {
  103. size := m.Size()
  104. return m.MarshalToSizedBuffer(dAtA[:size])
  105. }
  106. func (m *EventDataRoundState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  107. i := len(dAtA)
  108. _ = i
  109. var l int
  110. _ = l
  111. if len(m.Step) > 0 {
  112. i -= len(m.Step)
  113. copy(dAtA[i:], m.Step)
  114. i = encodeVarintEvents(dAtA, i, uint64(len(m.Step)))
  115. i--
  116. dAtA[i] = 0x1a
  117. }
  118. if m.Round != 0 {
  119. i = encodeVarintEvents(dAtA, i, uint64(m.Round))
  120. i--
  121. dAtA[i] = 0x10
  122. }
  123. if m.Height != 0 {
  124. i = encodeVarintEvents(dAtA, i, uint64(m.Height))
  125. i--
  126. dAtA[i] = 0x8
  127. }
  128. return len(dAtA) - i, nil
  129. }
  130. func encodeVarintEvents(dAtA []byte, offset int, v uint64) int {
  131. offset -= sovEvents(v)
  132. base := offset
  133. for v >= 1<<7 {
  134. dAtA[offset] = uint8(v&0x7f | 0x80)
  135. v >>= 7
  136. offset++
  137. }
  138. dAtA[offset] = uint8(v)
  139. return base
  140. }
  141. func (m *EventDataRoundState) Size() (n int) {
  142. if m == nil {
  143. return 0
  144. }
  145. var l int
  146. _ = l
  147. if m.Height != 0 {
  148. n += 1 + sovEvents(uint64(m.Height))
  149. }
  150. if m.Round != 0 {
  151. n += 1 + sovEvents(uint64(m.Round))
  152. }
  153. l = len(m.Step)
  154. if l > 0 {
  155. n += 1 + l + sovEvents(uint64(l))
  156. }
  157. return n
  158. }
  159. func sovEvents(x uint64) (n int) {
  160. return (math_bits.Len64(x|1) + 6) / 7
  161. }
  162. func sozEvents(x uint64) (n int) {
  163. return sovEvents(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  164. }
  165. func (m *EventDataRoundState) Unmarshal(dAtA []byte) error {
  166. l := len(dAtA)
  167. iNdEx := 0
  168. for iNdEx < l {
  169. preIndex := iNdEx
  170. var wire uint64
  171. for shift := uint(0); ; shift += 7 {
  172. if shift >= 64 {
  173. return ErrIntOverflowEvents
  174. }
  175. if iNdEx >= l {
  176. return io.ErrUnexpectedEOF
  177. }
  178. b := dAtA[iNdEx]
  179. iNdEx++
  180. wire |= uint64(b&0x7F) << shift
  181. if b < 0x80 {
  182. break
  183. }
  184. }
  185. fieldNum := int32(wire >> 3)
  186. wireType := int(wire & 0x7)
  187. if wireType == 4 {
  188. return fmt.Errorf("proto: EventDataRoundState: wiretype end group for non-group")
  189. }
  190. if fieldNum <= 0 {
  191. return fmt.Errorf("proto: EventDataRoundState: illegal tag %d (wire type %d)", fieldNum, wire)
  192. }
  193. switch fieldNum {
  194. case 1:
  195. if wireType != 0 {
  196. return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
  197. }
  198. m.Height = 0
  199. for shift := uint(0); ; shift += 7 {
  200. if shift >= 64 {
  201. return ErrIntOverflowEvents
  202. }
  203. if iNdEx >= l {
  204. return io.ErrUnexpectedEOF
  205. }
  206. b := dAtA[iNdEx]
  207. iNdEx++
  208. m.Height |= int64(b&0x7F) << shift
  209. if b < 0x80 {
  210. break
  211. }
  212. }
  213. case 2:
  214. if wireType != 0 {
  215. return fmt.Errorf("proto: wrong wireType = %d for field Round", wireType)
  216. }
  217. m.Round = 0
  218. for shift := uint(0); ; shift += 7 {
  219. if shift >= 64 {
  220. return ErrIntOverflowEvents
  221. }
  222. if iNdEx >= l {
  223. return io.ErrUnexpectedEOF
  224. }
  225. b := dAtA[iNdEx]
  226. iNdEx++
  227. m.Round |= int32(b&0x7F) << shift
  228. if b < 0x80 {
  229. break
  230. }
  231. }
  232. case 3:
  233. if wireType != 2 {
  234. return fmt.Errorf("proto: wrong wireType = %d for field Step", wireType)
  235. }
  236. var stringLen uint64
  237. for shift := uint(0); ; shift += 7 {
  238. if shift >= 64 {
  239. return ErrIntOverflowEvents
  240. }
  241. if iNdEx >= l {
  242. return io.ErrUnexpectedEOF
  243. }
  244. b := dAtA[iNdEx]
  245. iNdEx++
  246. stringLen |= uint64(b&0x7F) << shift
  247. if b < 0x80 {
  248. break
  249. }
  250. }
  251. intStringLen := int(stringLen)
  252. if intStringLen < 0 {
  253. return ErrInvalidLengthEvents
  254. }
  255. postIndex := iNdEx + intStringLen
  256. if postIndex < 0 {
  257. return ErrInvalidLengthEvents
  258. }
  259. if postIndex > l {
  260. return io.ErrUnexpectedEOF
  261. }
  262. m.Step = string(dAtA[iNdEx:postIndex])
  263. iNdEx = postIndex
  264. default:
  265. iNdEx = preIndex
  266. skippy, err := skipEvents(dAtA[iNdEx:])
  267. if err != nil {
  268. return err
  269. }
  270. if skippy < 0 {
  271. return ErrInvalidLengthEvents
  272. }
  273. if (iNdEx + skippy) < 0 {
  274. return ErrInvalidLengthEvents
  275. }
  276. if (iNdEx + skippy) > l {
  277. return io.ErrUnexpectedEOF
  278. }
  279. iNdEx += skippy
  280. }
  281. }
  282. if iNdEx > l {
  283. return io.ErrUnexpectedEOF
  284. }
  285. return nil
  286. }
  287. func skipEvents(dAtA []byte) (n int, err error) {
  288. l := len(dAtA)
  289. iNdEx := 0
  290. depth := 0
  291. for iNdEx < l {
  292. var wire uint64
  293. for shift := uint(0); ; shift += 7 {
  294. if shift >= 64 {
  295. return 0, ErrIntOverflowEvents
  296. }
  297. if iNdEx >= l {
  298. return 0, io.ErrUnexpectedEOF
  299. }
  300. b := dAtA[iNdEx]
  301. iNdEx++
  302. wire |= (uint64(b) & 0x7F) << shift
  303. if b < 0x80 {
  304. break
  305. }
  306. }
  307. wireType := int(wire & 0x7)
  308. switch wireType {
  309. case 0:
  310. for shift := uint(0); ; shift += 7 {
  311. if shift >= 64 {
  312. return 0, ErrIntOverflowEvents
  313. }
  314. if iNdEx >= l {
  315. return 0, io.ErrUnexpectedEOF
  316. }
  317. iNdEx++
  318. if dAtA[iNdEx-1] < 0x80 {
  319. break
  320. }
  321. }
  322. case 1:
  323. iNdEx += 8
  324. case 2:
  325. var length int
  326. for shift := uint(0); ; shift += 7 {
  327. if shift >= 64 {
  328. return 0, ErrIntOverflowEvents
  329. }
  330. if iNdEx >= l {
  331. return 0, io.ErrUnexpectedEOF
  332. }
  333. b := dAtA[iNdEx]
  334. iNdEx++
  335. length |= (int(b) & 0x7F) << shift
  336. if b < 0x80 {
  337. break
  338. }
  339. }
  340. if length < 0 {
  341. return 0, ErrInvalidLengthEvents
  342. }
  343. iNdEx += length
  344. case 3:
  345. depth++
  346. case 4:
  347. if depth == 0 {
  348. return 0, ErrUnexpectedEndOfGroupEvents
  349. }
  350. depth--
  351. case 5:
  352. iNdEx += 4
  353. default:
  354. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  355. }
  356. if iNdEx < 0 {
  357. return 0, ErrInvalidLengthEvents
  358. }
  359. if depth == 0 {
  360. return iNdEx, nil
  361. }
  362. }
  363. return 0, io.ErrUnexpectedEOF
  364. }
  365. var (
  366. ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling")
  367. ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow")
  368. ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
  369. )