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.

385 lines
13 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/statesync/types.proto
  3. package statesync
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  18. type Message struct {
  19. // Types that are valid to be assigned to Sum:
  20. // *Message_SnapshotsRequest
  21. // *Message_SnapshotsResponse
  22. // *Message_ChunkRequest
  23. // *Message_ChunkResponse
  24. Sum isMessage_Sum `protobuf_oneof:"sum"`
  25. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  26. XXX_unrecognized []byte `json:"-"`
  27. XXX_sizecache int32 `json:"-"`
  28. }
  29. func (m *Message) Reset() { *m = Message{} }
  30. func (m *Message) String() string { return proto.CompactTextString(m) }
  31. func (*Message) ProtoMessage() {}
  32. func (*Message) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_bef273312884335b, []int{0}
  34. }
  35. func (m *Message) XXX_Unmarshal(b []byte) error {
  36. return xxx_messageInfo_Message.Unmarshal(m, b)
  37. }
  38. func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. return xxx_messageInfo_Message.Marshal(b, m, deterministic)
  40. }
  41. func (m *Message) XXX_Merge(src proto.Message) {
  42. xxx_messageInfo_Message.Merge(m, src)
  43. }
  44. func (m *Message) XXX_Size() int {
  45. return xxx_messageInfo_Message.Size(m)
  46. }
  47. func (m *Message) XXX_DiscardUnknown() {
  48. xxx_messageInfo_Message.DiscardUnknown(m)
  49. }
  50. var xxx_messageInfo_Message proto.InternalMessageInfo
  51. type isMessage_Sum interface {
  52. isMessage_Sum()
  53. }
  54. type Message_SnapshotsRequest struct {
  55. SnapshotsRequest *SnapshotsRequest `protobuf:"bytes,1,opt,name=snapshots_request,json=snapshotsRequest,proto3,oneof" json:"snapshots_request,omitempty"`
  56. }
  57. type Message_SnapshotsResponse struct {
  58. SnapshotsResponse *SnapshotsResponse `protobuf:"bytes,2,opt,name=snapshots_response,json=snapshotsResponse,proto3,oneof" json:"snapshots_response,omitempty"`
  59. }
  60. type Message_ChunkRequest struct {
  61. ChunkRequest *ChunkRequest `protobuf:"bytes,3,opt,name=chunk_request,json=chunkRequest,proto3,oneof" json:"chunk_request,omitempty"`
  62. }
  63. type Message_ChunkResponse struct {
  64. ChunkResponse *ChunkResponse `protobuf:"bytes,4,opt,name=chunk_response,json=chunkResponse,proto3,oneof" json:"chunk_response,omitempty"`
  65. }
  66. func (*Message_SnapshotsRequest) isMessage_Sum() {}
  67. func (*Message_SnapshotsResponse) isMessage_Sum() {}
  68. func (*Message_ChunkRequest) isMessage_Sum() {}
  69. func (*Message_ChunkResponse) isMessage_Sum() {}
  70. func (m *Message) GetSum() isMessage_Sum {
  71. if m != nil {
  72. return m.Sum
  73. }
  74. return nil
  75. }
  76. func (m *Message) GetSnapshotsRequest() *SnapshotsRequest {
  77. if x, ok := m.GetSum().(*Message_SnapshotsRequest); ok {
  78. return x.SnapshotsRequest
  79. }
  80. return nil
  81. }
  82. func (m *Message) GetSnapshotsResponse() *SnapshotsResponse {
  83. if x, ok := m.GetSum().(*Message_SnapshotsResponse); ok {
  84. return x.SnapshotsResponse
  85. }
  86. return nil
  87. }
  88. func (m *Message) GetChunkRequest() *ChunkRequest {
  89. if x, ok := m.GetSum().(*Message_ChunkRequest); ok {
  90. return x.ChunkRequest
  91. }
  92. return nil
  93. }
  94. func (m *Message) GetChunkResponse() *ChunkResponse {
  95. if x, ok := m.GetSum().(*Message_ChunkResponse); ok {
  96. return x.ChunkResponse
  97. }
  98. return nil
  99. }
  100. // XXX_OneofWrappers is for the internal use of the proto package.
  101. func (*Message) XXX_OneofWrappers() []interface{} {
  102. return []interface{}{
  103. (*Message_SnapshotsRequest)(nil),
  104. (*Message_SnapshotsResponse)(nil),
  105. (*Message_ChunkRequest)(nil),
  106. (*Message_ChunkResponse)(nil),
  107. }
  108. }
  109. type SnapshotsRequest struct {
  110. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  111. XXX_unrecognized []byte `json:"-"`
  112. XXX_sizecache int32 `json:"-"`
  113. }
  114. func (m *SnapshotsRequest) Reset() { *m = SnapshotsRequest{} }
  115. func (m *SnapshotsRequest) String() string { return proto.CompactTextString(m) }
  116. func (*SnapshotsRequest) ProtoMessage() {}
  117. func (*SnapshotsRequest) Descriptor() ([]byte, []int) {
  118. return fileDescriptor_bef273312884335b, []int{1}
  119. }
  120. func (m *SnapshotsRequest) XXX_Unmarshal(b []byte) error {
  121. return xxx_messageInfo_SnapshotsRequest.Unmarshal(m, b)
  122. }
  123. func (m *SnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  124. return xxx_messageInfo_SnapshotsRequest.Marshal(b, m, deterministic)
  125. }
  126. func (m *SnapshotsRequest) XXX_Merge(src proto.Message) {
  127. xxx_messageInfo_SnapshotsRequest.Merge(m, src)
  128. }
  129. func (m *SnapshotsRequest) XXX_Size() int {
  130. return xxx_messageInfo_SnapshotsRequest.Size(m)
  131. }
  132. func (m *SnapshotsRequest) XXX_DiscardUnknown() {
  133. xxx_messageInfo_SnapshotsRequest.DiscardUnknown(m)
  134. }
  135. var xxx_messageInfo_SnapshotsRequest proto.InternalMessageInfo
  136. type SnapshotsResponse struct {
  137. Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  138. Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
  139. Chunks uint32 `protobuf:"varint,3,opt,name=chunks,proto3" json:"chunks,omitempty"`
  140. Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
  141. Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
  142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  143. XXX_unrecognized []byte `json:"-"`
  144. XXX_sizecache int32 `json:"-"`
  145. }
  146. func (m *SnapshotsResponse) Reset() { *m = SnapshotsResponse{} }
  147. func (m *SnapshotsResponse) String() string { return proto.CompactTextString(m) }
  148. func (*SnapshotsResponse) ProtoMessage() {}
  149. func (*SnapshotsResponse) Descriptor() ([]byte, []int) {
  150. return fileDescriptor_bef273312884335b, []int{2}
  151. }
  152. func (m *SnapshotsResponse) XXX_Unmarshal(b []byte) error {
  153. return xxx_messageInfo_SnapshotsResponse.Unmarshal(m, b)
  154. }
  155. func (m *SnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  156. return xxx_messageInfo_SnapshotsResponse.Marshal(b, m, deterministic)
  157. }
  158. func (m *SnapshotsResponse) XXX_Merge(src proto.Message) {
  159. xxx_messageInfo_SnapshotsResponse.Merge(m, src)
  160. }
  161. func (m *SnapshotsResponse) XXX_Size() int {
  162. return xxx_messageInfo_SnapshotsResponse.Size(m)
  163. }
  164. func (m *SnapshotsResponse) XXX_DiscardUnknown() {
  165. xxx_messageInfo_SnapshotsResponse.DiscardUnknown(m)
  166. }
  167. var xxx_messageInfo_SnapshotsResponse proto.InternalMessageInfo
  168. func (m *SnapshotsResponse) GetHeight() uint64 {
  169. if m != nil {
  170. return m.Height
  171. }
  172. return 0
  173. }
  174. func (m *SnapshotsResponse) GetFormat() uint32 {
  175. if m != nil {
  176. return m.Format
  177. }
  178. return 0
  179. }
  180. func (m *SnapshotsResponse) GetChunks() uint32 {
  181. if m != nil {
  182. return m.Chunks
  183. }
  184. return 0
  185. }
  186. func (m *SnapshotsResponse) GetHash() []byte {
  187. if m != nil {
  188. return m.Hash
  189. }
  190. return nil
  191. }
  192. func (m *SnapshotsResponse) GetMetadata() []byte {
  193. if m != nil {
  194. return m.Metadata
  195. }
  196. return nil
  197. }
  198. type ChunkRequest struct {
  199. Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  200. Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
  201. Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
  202. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  203. XXX_unrecognized []byte `json:"-"`
  204. XXX_sizecache int32 `json:"-"`
  205. }
  206. func (m *ChunkRequest) Reset() { *m = ChunkRequest{} }
  207. func (m *ChunkRequest) String() string { return proto.CompactTextString(m) }
  208. func (*ChunkRequest) ProtoMessage() {}
  209. func (*ChunkRequest) Descriptor() ([]byte, []int) {
  210. return fileDescriptor_bef273312884335b, []int{3}
  211. }
  212. func (m *ChunkRequest) XXX_Unmarshal(b []byte) error {
  213. return xxx_messageInfo_ChunkRequest.Unmarshal(m, b)
  214. }
  215. func (m *ChunkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  216. return xxx_messageInfo_ChunkRequest.Marshal(b, m, deterministic)
  217. }
  218. func (m *ChunkRequest) XXX_Merge(src proto.Message) {
  219. xxx_messageInfo_ChunkRequest.Merge(m, src)
  220. }
  221. func (m *ChunkRequest) XXX_Size() int {
  222. return xxx_messageInfo_ChunkRequest.Size(m)
  223. }
  224. func (m *ChunkRequest) XXX_DiscardUnknown() {
  225. xxx_messageInfo_ChunkRequest.DiscardUnknown(m)
  226. }
  227. var xxx_messageInfo_ChunkRequest proto.InternalMessageInfo
  228. func (m *ChunkRequest) GetHeight() uint64 {
  229. if m != nil {
  230. return m.Height
  231. }
  232. return 0
  233. }
  234. func (m *ChunkRequest) GetFormat() uint32 {
  235. if m != nil {
  236. return m.Format
  237. }
  238. return 0
  239. }
  240. func (m *ChunkRequest) GetIndex() uint32 {
  241. if m != nil {
  242. return m.Index
  243. }
  244. return 0
  245. }
  246. type ChunkResponse struct {
  247. Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  248. Format uint32 `protobuf:"varint,2,opt,name=format,proto3" json:"format,omitempty"`
  249. Index uint32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
  250. Chunk []byte `protobuf:"bytes,4,opt,name=chunk,proto3" json:"chunk,omitempty"`
  251. Missing bool `protobuf:"varint,5,opt,name=missing,proto3" json:"missing,omitempty"`
  252. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  253. XXX_unrecognized []byte `json:"-"`
  254. XXX_sizecache int32 `json:"-"`
  255. }
  256. func (m *ChunkResponse) Reset() { *m = ChunkResponse{} }
  257. func (m *ChunkResponse) String() string { return proto.CompactTextString(m) }
  258. func (*ChunkResponse) ProtoMessage() {}
  259. func (*ChunkResponse) Descriptor() ([]byte, []int) {
  260. return fileDescriptor_bef273312884335b, []int{4}
  261. }
  262. func (m *ChunkResponse) XXX_Unmarshal(b []byte) error {
  263. return xxx_messageInfo_ChunkResponse.Unmarshal(m, b)
  264. }
  265. func (m *ChunkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  266. return xxx_messageInfo_ChunkResponse.Marshal(b, m, deterministic)
  267. }
  268. func (m *ChunkResponse) XXX_Merge(src proto.Message) {
  269. xxx_messageInfo_ChunkResponse.Merge(m, src)
  270. }
  271. func (m *ChunkResponse) XXX_Size() int {
  272. return xxx_messageInfo_ChunkResponse.Size(m)
  273. }
  274. func (m *ChunkResponse) XXX_DiscardUnknown() {
  275. xxx_messageInfo_ChunkResponse.DiscardUnknown(m)
  276. }
  277. var xxx_messageInfo_ChunkResponse proto.InternalMessageInfo
  278. func (m *ChunkResponse) GetHeight() uint64 {
  279. if m != nil {
  280. return m.Height
  281. }
  282. return 0
  283. }
  284. func (m *ChunkResponse) GetFormat() uint32 {
  285. if m != nil {
  286. return m.Format
  287. }
  288. return 0
  289. }
  290. func (m *ChunkResponse) GetIndex() uint32 {
  291. if m != nil {
  292. return m.Index
  293. }
  294. return 0
  295. }
  296. func (m *ChunkResponse) GetChunk() []byte {
  297. if m != nil {
  298. return m.Chunk
  299. }
  300. return nil
  301. }
  302. func (m *ChunkResponse) GetMissing() bool {
  303. if m != nil {
  304. return m.Missing
  305. }
  306. return false
  307. }
  308. func init() {
  309. proto.RegisterType((*Message)(nil), "tendermint.proto.statesync.Message")
  310. proto.RegisterType((*SnapshotsRequest)(nil), "tendermint.proto.statesync.SnapshotsRequest")
  311. proto.RegisterType((*SnapshotsResponse)(nil), "tendermint.proto.statesync.SnapshotsResponse")
  312. proto.RegisterType((*ChunkRequest)(nil), "tendermint.proto.statesync.ChunkRequest")
  313. proto.RegisterType((*ChunkResponse)(nil), "tendermint.proto.statesync.ChunkResponse")
  314. }
  315. func init() { proto.RegisterFile("proto/statesync/types.proto", fileDescriptor_bef273312884335b) }
  316. var fileDescriptor_bef273312884335b = []byte{
  317. // 357 bytes of a gzipped FileDescriptorProto
  318. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x4a, 0xc3, 0x40,
  319. 0x14, 0x85, 0x9b, 0xfe, 0x73, 0x6d, 0xa4, 0x1d, 0x44, 0x42, 0xdd, 0x48, 0x56, 0x15, 0x34, 0x95,
  320. 0xfa, 0x06, 0x75, 0xd3, 0x8d, 0x08, 0xa3, 0x2b, 0x05, 0x65, 0x9a, 0x8e, 0x49, 0x90, 0x4c, 0x62,
  321. 0xee, 0x04, 0xec, 0x03, 0xb8, 0xf2, 0x6d, 0x7d, 0x02, 0xc9, 0x4d, 0x9a, 0xc6, 0x88, 0x52, 0xc1,
  322. 0xdd, 0x9c, 0x43, 0xee, 0x97, 0x73, 0xee, 0x30, 0x70, 0x14, 0x27, 0x91, 0x8e, 0xa6, 0xa8, 0x85,
  323. 0x96, 0xb8, 0x56, 0xee, 0x54, 0xaf, 0x63, 0x89, 0x0e, 0xb9, 0x6c, 0xac, 0xa5, 0x5a, 0xc9, 0x24,
  324. 0x0c, 0x94, 0xce, 0x1d, 0xa7, 0xfc, 0xce, 0xfe, 0x68, 0x42, 0xef, 0x4a, 0x22, 0x0a, 0x4f, 0xb2,
  325. 0x7b, 0x18, 0xa1, 0x12, 0x31, 0xfa, 0x91, 0xc6, 0xc7, 0x44, 0xbe, 0xa4, 0x12, 0xb5, 0x65, 0x1c,
  326. 0x1b, 0x93, 0xbd, 0xd9, 0xa9, 0xf3, 0x33, 0xc3, 0xb9, 0xd9, 0x0c, 0xf1, 0x7c, 0x66, 0xd1, 0xe0,
  327. 0x43, 0xac, 0x79, 0xec, 0x01, 0x58, 0x15, 0x8e, 0x71, 0xa4, 0x50, 0x5a, 0x4d, 0xa2, 0x9f, 0xed,
  328. 0x48, 0xcf, 0x87, 0x16, 0x0d, 0x3e, 0xc2, 0xba, 0xc9, 0xae, 0xc1, 0x74, 0xfd, 0x54, 0x3d, 0x97,
  329. 0xc1, 0x5b, 0x84, 0x9e, 0xfc, 0x86, 0xbe, 0xcc, 0x06, 0xb6, 0xa1, 0x07, 0x6e, 0x45, 0x33, 0x0e,
  330. 0xfb, 0x1b, 0x60, 0x11, 0xb6, 0x4d, 0xc4, 0x93, 0x1d, 0x88, 0x65, 0x50, 0xd3, 0xad, 0x1a, 0xf3,
  331. 0x0e, 0xb4, 0x30, 0x0d, 0x6d, 0x06, 0xc3, 0xfa, 0xce, 0xec, 0x77, 0x03, 0x46, 0xdf, 0xaa, 0xb2,
  332. 0x43, 0xe8, 0xfa, 0x32, 0xf0, 0xfc, 0xfc, 0x1e, 0xda, 0xbc, 0x50, 0x99, 0xff, 0x14, 0x25, 0xa1,
  333. 0xd0, 0xb4, 0x41, 0x93, 0x17, 0x2a, 0xf3, 0xe9, 0x8f, 0x48, 0xf5, 0x4d, 0x5e, 0x28, 0xc6, 0xa0,
  334. 0xed, 0x0b, 0xf4, 0xa9, 0xc2, 0x80, 0xd3, 0x99, 0x8d, 0xa1, 0x1f, 0x4a, 0x2d, 0x56, 0x42, 0x0b,
  335. 0xab, 0x43, 0x7e, 0xa9, 0xed, 0x5b, 0x18, 0x54, 0x97, 0xf3, 0xe7, 0x1c, 0x07, 0xd0, 0x09, 0xd4,
  336. 0x4a, 0xbe, 0x16, 0x31, 0x72, 0x61, 0xbf, 0x19, 0x60, 0x7e, 0xd9, 0xd0, 0xff, 0x70, 0x33, 0x97,
  337. 0x7a, 0x16, 0xf5, 0x72, 0xc1, 0x2c, 0xe8, 0x85, 0x01, 0x62, 0xa0, 0x3c, 0xaa, 0xd7, 0xe7, 0x1b,
  338. 0x39, 0x9f, 0xdd, 0x9d, 0x7b, 0x81, 0xf6, 0xd3, 0xa5, 0xe3, 0x46, 0xe1, 0x74, 0x7b, 0x9d, 0xd5,
  339. 0x63, 0xed, 0x41, 0x2d, 0xbb, 0x64, 0x5c, 0x7c, 0x06, 0x00, 0x00, 0xff, 0xff, 0x79, 0xd0, 0x53,
  340. 0x2f, 0x6a, 0x03, 0x00, 0x00,
  341. }