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.

212 lines
8.3 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: types/types.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package types is a generated protocol buffer package.
  6. It is generated from these files:
  7. types/types.proto
  8. It has these top-level messages:
  9. Request
  10. Response
  11. Validator
  12. */
  13. package types
  14. import proto "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  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. type MessageType int32
  22. const (
  23. MessageType_NullMessage MessageType = 0
  24. MessageType_Echo MessageType = 1
  25. MessageType_Flush MessageType = 2
  26. MessageType_Info MessageType = 3
  27. MessageType_SetOption MessageType = 4
  28. MessageType_Exception MessageType = 5
  29. MessageType_AppendTx MessageType = 17
  30. MessageType_CheckTx MessageType = 18
  31. MessageType_Commit MessageType = 19
  32. MessageType_Query MessageType = 20
  33. MessageType_InitValdiators MessageType = 21
  34. MessageType_SyncValdiators MessageType = 22
  35. )
  36. var MessageType_name = map[int32]string{
  37. 0: "NullMessage",
  38. 1: "Echo",
  39. 2: "Flush",
  40. 3: "Info",
  41. 4: "SetOption",
  42. 5: "Exception",
  43. 17: "AppendTx",
  44. 18: "CheckTx",
  45. 19: "Commit",
  46. 20: "Query",
  47. 21: "InitValdiators",
  48. 22: "SyncValdiators",
  49. }
  50. var MessageType_value = map[string]int32{
  51. "NullMessage": 0,
  52. "Echo": 1,
  53. "Flush": 2,
  54. "Info": 3,
  55. "SetOption": 4,
  56. "Exception": 5,
  57. "AppendTx": 17,
  58. "CheckTx": 18,
  59. "Commit": 19,
  60. "Query": 20,
  61. "InitValdiators": 21,
  62. "SyncValdiators": 22,
  63. }
  64. func (x MessageType) String() string {
  65. return proto.EnumName(MessageType_name, int32(x))
  66. }
  67. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  68. type CodeType int32
  69. const (
  70. CodeType_OK CodeType = 0
  71. CodeType_InternalError CodeType = 1
  72. CodeType_Unauthorized CodeType = 2
  73. CodeType_InsufficientFees CodeType = 3
  74. CodeType_UnknownRequest CodeType = 4
  75. CodeType_EncodingError CodeType = 5
  76. CodeType_BadNonce CodeType = 6
  77. CodeType_UnknownAccount CodeType = 7
  78. CodeType_InsufficientFunds CodeType = 8
  79. )
  80. var CodeType_name = map[int32]string{
  81. 0: "OK",
  82. 1: "InternalError",
  83. 2: "Unauthorized",
  84. 3: "InsufficientFees",
  85. 4: "UnknownRequest",
  86. 5: "EncodingError",
  87. 6: "BadNonce",
  88. 7: "UnknownAccount",
  89. 8: "InsufficientFunds",
  90. }
  91. var CodeType_value = map[string]int32{
  92. "OK": 0,
  93. "InternalError": 1,
  94. "Unauthorized": 2,
  95. "InsufficientFees": 3,
  96. "UnknownRequest": 4,
  97. "EncodingError": 5,
  98. "BadNonce": 6,
  99. "UnknownAccount": 7,
  100. "InsufficientFunds": 8,
  101. }
  102. func (x CodeType) String() string {
  103. return proto.EnumName(CodeType_name, int32(x))
  104. }
  105. func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  106. type Request struct {
  107. Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
  108. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  109. Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
  110. Value string `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
  111. Validators []*Validator `protobuf:"bytes,5,rep,name=validators" json:"validators,omitempty"`
  112. }
  113. func (m *Request) Reset() { *m = Request{} }
  114. func (m *Request) String() string { return proto.CompactTextString(m) }
  115. func (*Request) ProtoMessage() {}
  116. func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  117. func (m *Request) GetValidators() []*Validator {
  118. if m != nil {
  119. return m.Validators
  120. }
  121. return nil
  122. }
  123. type Response struct {
  124. Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
  125. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  126. Code CodeType `protobuf:"varint,3,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  127. Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
  128. Log string `protobuf:"bytes,5,opt,name=log" json:"log,omitempty"`
  129. Validators []*Validator `protobuf:"bytes,6,rep,name=validators" json:"validators,omitempty"`
  130. }
  131. func (m *Response) Reset() { *m = Response{} }
  132. func (m *Response) String() string { return proto.CompactTextString(m) }
  133. func (*Response) ProtoMessage() {}
  134. func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  135. func (m *Response) GetValidators() []*Validator {
  136. if m != nil {
  137. return m.Validators
  138. }
  139. return nil
  140. }
  141. type Validator struct {
  142. PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
  143. Power uint64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"`
  144. }
  145. func (m *Validator) Reset() { *m = Validator{} }
  146. func (m *Validator) String() string { return proto.CompactTextString(m) }
  147. func (*Validator) ProtoMessage() {}
  148. func (*Validator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  149. func init() {
  150. proto.RegisterType((*Request)(nil), "types.Request")
  151. proto.RegisterType((*Response)(nil), "types.Response")
  152. proto.RegisterType((*Validator)(nil), "types.Validator")
  153. proto.RegisterEnum("types.MessageType", MessageType_name, MessageType_value)
  154. proto.RegisterEnum("types.CodeType", CodeType_name, CodeType_value)
  155. }
  156. var fileDescriptor0 = []byte{
  157. // 486 bytes of a gzipped FileDescriptorProto
  158. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x53, 0xcd, 0x6e, 0xd3, 0x40,
  159. 0x10, 0xc6, 0x89, 0xed, 0x24, 0x93, 0x34, 0xdd, 0x2c, 0x69, 0xe5, 0x63, 0x55, 0x24, 0x54, 0xf5,
  160. 0x50, 0x50, 0x38, 0x71, 0x2c, 0x51, 0x2a, 0x45, 0x15, 0xad, 0x70, 0x5b, 0xee, 0xae, 0x3d, 0x49,
  161. 0xac, 0xb8, 0xbb, 0xc6, 0xbb, 0x4b, 0x1b, 0x5e, 0x86, 0x27, 0xe0, 0xc8, 0x23, 0xf0, 0x5e, 0xcc,
  162. 0xae, 0x1d, 0x14, 0x38, 0x21, 0xf5, 0x12, 0xcd, 0xf7, 0xcd, 0xdf, 0xf7, 0xcd, 0xc6, 0x30, 0xd2,
  163. 0x9b, 0x12, 0xd5, 0x1b, 0xf7, 0x7b, 0x56, 0x56, 0x52, 0x4b, 0x1e, 0x38, 0x70, 0xfc, 0xdd, 0x83,
  164. 0x4e, 0x8c, 0x5f, 0x0c, 0x2a, 0xcd, 0x5f, 0x83, 0x6f, 0xc9, 0xc8, 0x3b, 0xf2, 0x4e, 0x86, 0x13,
  165. 0x7e, 0x56, 0x97, 0x7f, 0x44, 0xa5, 0x92, 0x25, 0xde, 0x12, 0x88, 0x5d, 0x9e, 0x73, 0xf0, 0xb3,
  166. 0x44, 0x27, 0x51, 0x8b, 0xea, 0x06, 0xb1, 0x8b, 0x39, 0x83, 0xf6, 0x1a, 0x37, 0x51, 0x9b, 0xa8,
  167. 0x5e, 0x6c, 0x43, 0x3e, 0x86, 0xe0, 0x6b, 0x52, 0x18, 0x8c, 0x7c, 0xc7, 0xd5, 0x80, 0xbf, 0x05,
  168. 0xa0, 0x20, 0xa7, 0x1e, 0x59, 0xa9, 0x28, 0x38, 0x6a, 0x9f, 0xf4, 0x27, 0xac, 0xd9, 0xf4, 0x79,
  169. 0x9b, 0x88, 0x77, 0x6a, 0x8e, 0x7f, 0x79, 0xd0, 0x8d, 0x51, 0x95, 0x52, 0x28, 0x7c, 0x96, 0xc4,
  170. 0x57, 0xe0, 0xa7, 0x32, 0x43, 0xa7, 0x71, 0x38, 0xd9, 0x6f, 0x7a, 0xa7, 0x44, 0xd5, 0x8d, 0x36,
  171. 0x69, 0x55, 0x63, 0x55, 0xc9, 0x6a, 0xab, 0xda, 0x01, 0xeb, 0xae, 0x90, 0x4b, 0x92, 0xeb, 0xdc,
  172. 0x51, 0xf8, 0x8f, 0x8f, 0xf0, 0x3f, 0x7c, 0xbc, 0x87, 0xde, 0x9f, 0x04, 0x3f, 0x84, 0xb0, 0x34,
  173. 0xf7, 0x97, 0x74, 0x31, 0xcf, 0x29, 0x6c, 0x90, 0x5d, 0x5f, 0xca, 0x47, 0xac, 0x9c, 0x70, 0x3f,
  174. 0xae, 0xc1, 0xe9, 0x4f, 0x0f, 0xfa, 0x3b, 0x1e, 0xf9, 0x3e, 0xf4, 0xaf, 0x4c, 0x51, 0x34, 0x14,
  175. 0x7b, 0xc1, 0xbb, 0xe0, 0xcf, 0xd2, 0x95, 0x64, 0x1e, 0xef, 0x41, 0x70, 0x51, 0x18, 0xb5, 0x62,
  176. 0x2d, 0x4b, 0xce, 0xc5, 0x42, 0xb2, 0x36, 0xdf, 0x83, 0xde, 0x0d, 0xea, 0xeb, 0x52, 0xe7, 0x52,
  177. 0x30, 0xdf, 0xc2, 0xd9, 0x53, 0x8a, 0x35, 0x0c, 0xf8, 0x00, 0xba, 0xe7, 0x65, 0x89, 0x22, 0xbb,
  178. 0x7d, 0x62, 0x23, 0xde, 0x87, 0xce, 0x74, 0x85, 0xe9, 0x9a, 0x00, 0x5d, 0x11, 0xc2, 0xa9, 0x7c,
  179. 0x78, 0xc8, 0x35, 0x7b, 0x69, 0x27, 0x7f, 0x32, 0x58, 0x6d, 0xd8, 0x98, 0xf8, 0xe1, 0x5c, 0xe4,
  180. 0x9a, 0xec, 0x64, 0xb9, 0x33, 0xc7, 0x0e, 0x2c, 0x77, 0xb3, 0x11, 0xe9, 0x0e, 0x77, 0x78, 0xfa,
  181. 0x83, 0x9e, 0x6e, 0x7b, 0x5f, 0x1e, 0x42, 0xeb, 0xfa, 0x92, 0xb4, 0x8e, 0x60, 0x6f, 0x2e, 0x34,
  182. 0x56, 0x22, 0x29, 0x66, 0xf6, 0xb8, 0x24, 0x9a, 0xc1, 0xe0, 0x4e, 0x24, 0x46, 0xaf, 0x64, 0x95,
  183. 0x7f, 0xc3, 0x8c, 0xb4, 0x8f, 0x81, 0xcd, 0x85, 0x32, 0x8b, 0x45, 0x9e, 0xe6, 0x28, 0xf4, 0x05,
  184. 0xa2, 0x22, 0x1f, 0xb4, 0xe3, 0x4e, 0xac, 0x85, 0x7c, 0x14, 0xcd, 0x5f, 0x96, 0xcc, 0xd0, 0xb8,
  185. 0x99, 0xa0, 0xa7, 0xcb, 0xc5, 0xb2, 0x1e, 0xe7, 0x0c, 0x7d, 0x48, 0xb2, 0x2b, 0x29, 0x52, 0x64,
  186. 0xe1, 0x4e, 0xd3, 0x79, 0x9a, 0x4a, 0x23, 0x34, 0xeb, 0xf0, 0x03, 0x18, 0xfd, 0x35, 0xde, 0x88,
  187. 0x4c, 0xb1, 0xee, 0x7d, 0xe8, 0x3e, 0x8d, 0x77, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x71,
  188. 0x5f, 0x3f, 0x2f, 0x03, 0x00, 0x00,
  189. }