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.

258 lines
8.9 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/p2p/conn_msgs.proto
  3. package p2p
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. math "math"
  9. )
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  19. type PacketPing struct {
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *PacketPing) Reset() { *m = PacketPing{} }
  25. func (m *PacketPing) String() string { return proto.CompactTextString(m) }
  26. func (*PacketPing) ProtoMessage() {}
  27. func (*PacketPing) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_8c680f0b24d73fe7, []int{0}
  29. }
  30. func (m *PacketPing) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_PacketPing.Unmarshal(m, b)
  32. }
  33. func (m *PacketPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_PacketPing.Marshal(b, m, deterministic)
  35. }
  36. func (m *PacketPing) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_PacketPing.Merge(m, src)
  38. }
  39. func (m *PacketPing) XXX_Size() int {
  40. return xxx_messageInfo_PacketPing.Size(m)
  41. }
  42. func (m *PacketPing) XXX_DiscardUnknown() {
  43. xxx_messageInfo_PacketPing.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_PacketPing proto.InternalMessageInfo
  46. type PacketPong struct {
  47. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  48. XXX_unrecognized []byte `json:"-"`
  49. XXX_sizecache int32 `json:"-"`
  50. }
  51. func (m *PacketPong) Reset() { *m = PacketPong{} }
  52. func (m *PacketPong) String() string { return proto.CompactTextString(m) }
  53. func (*PacketPong) ProtoMessage() {}
  54. func (*PacketPong) Descriptor() ([]byte, []int) {
  55. return fileDescriptor_8c680f0b24d73fe7, []int{1}
  56. }
  57. func (m *PacketPong) XXX_Unmarshal(b []byte) error {
  58. return xxx_messageInfo_PacketPong.Unmarshal(m, b)
  59. }
  60. func (m *PacketPong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  61. return xxx_messageInfo_PacketPong.Marshal(b, m, deterministic)
  62. }
  63. func (m *PacketPong) XXX_Merge(src proto.Message) {
  64. xxx_messageInfo_PacketPong.Merge(m, src)
  65. }
  66. func (m *PacketPong) XXX_Size() int {
  67. return xxx_messageInfo_PacketPong.Size(m)
  68. }
  69. func (m *PacketPong) XXX_DiscardUnknown() {
  70. xxx_messageInfo_PacketPong.DiscardUnknown(m)
  71. }
  72. var xxx_messageInfo_PacketPong proto.InternalMessageInfo
  73. type PacketMsg struct {
  74. ChannelID int32 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
  75. EOF int32 `protobuf:"varint,2,opt,name=eof,proto3" json:"eof,omitempty"`
  76. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  77. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  78. XXX_unrecognized []byte `json:"-"`
  79. XXX_sizecache int32 `json:"-"`
  80. }
  81. func (m *PacketMsg) Reset() { *m = PacketMsg{} }
  82. func (m *PacketMsg) String() string { return proto.CompactTextString(m) }
  83. func (*PacketMsg) ProtoMessage() {}
  84. func (*PacketMsg) Descriptor() ([]byte, []int) {
  85. return fileDescriptor_8c680f0b24d73fe7, []int{2}
  86. }
  87. func (m *PacketMsg) XXX_Unmarshal(b []byte) error {
  88. return xxx_messageInfo_PacketMsg.Unmarshal(m, b)
  89. }
  90. func (m *PacketMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  91. return xxx_messageInfo_PacketMsg.Marshal(b, m, deterministic)
  92. }
  93. func (m *PacketMsg) XXX_Merge(src proto.Message) {
  94. xxx_messageInfo_PacketMsg.Merge(m, src)
  95. }
  96. func (m *PacketMsg) XXX_Size() int {
  97. return xxx_messageInfo_PacketMsg.Size(m)
  98. }
  99. func (m *PacketMsg) XXX_DiscardUnknown() {
  100. xxx_messageInfo_PacketMsg.DiscardUnknown(m)
  101. }
  102. var xxx_messageInfo_PacketMsg proto.InternalMessageInfo
  103. func (m *PacketMsg) GetChannelID() int32 {
  104. if m != nil {
  105. return m.ChannelID
  106. }
  107. return 0
  108. }
  109. func (m *PacketMsg) GetEOF() int32 {
  110. if m != nil {
  111. return m.EOF
  112. }
  113. return 0
  114. }
  115. func (m *PacketMsg) GetData() []byte {
  116. if m != nil {
  117. return m.Data
  118. }
  119. return nil
  120. }
  121. type Packet struct {
  122. // Types that are valid to be assigned to Sum:
  123. // *Packet_PacketPing
  124. // *Packet_PacketPong
  125. // *Packet_PacketMsg
  126. Sum isPacket_Sum `protobuf_oneof:"sum"`
  127. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  128. XXX_unrecognized []byte `json:"-"`
  129. XXX_sizecache int32 `json:"-"`
  130. }
  131. func (m *Packet) Reset() { *m = Packet{} }
  132. func (m *Packet) String() string { return proto.CompactTextString(m) }
  133. func (*Packet) ProtoMessage() {}
  134. func (*Packet) Descriptor() ([]byte, []int) {
  135. return fileDescriptor_8c680f0b24d73fe7, []int{3}
  136. }
  137. func (m *Packet) XXX_Unmarshal(b []byte) error {
  138. return xxx_messageInfo_Packet.Unmarshal(m, b)
  139. }
  140. func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  141. return xxx_messageInfo_Packet.Marshal(b, m, deterministic)
  142. }
  143. func (m *Packet) XXX_Merge(src proto.Message) {
  144. xxx_messageInfo_Packet.Merge(m, src)
  145. }
  146. func (m *Packet) XXX_Size() int {
  147. return xxx_messageInfo_Packet.Size(m)
  148. }
  149. func (m *Packet) XXX_DiscardUnknown() {
  150. xxx_messageInfo_Packet.DiscardUnknown(m)
  151. }
  152. var xxx_messageInfo_Packet proto.InternalMessageInfo
  153. type isPacket_Sum interface {
  154. isPacket_Sum()
  155. }
  156. type Packet_PacketPing struct {
  157. PacketPing *PacketPing `protobuf:"bytes,1,opt,name=packet_ping,json=packetPing,proto3,oneof" json:"packet_ping,omitempty"`
  158. }
  159. type Packet_PacketPong struct {
  160. PacketPong *PacketPong `protobuf:"bytes,2,opt,name=packet_pong,json=packetPong,proto3,oneof" json:"packet_pong,omitempty"`
  161. }
  162. type Packet_PacketMsg struct {
  163. PacketMsg *PacketMsg `protobuf:"bytes,3,opt,name=packet_msg,json=packetMsg,proto3,oneof" json:"packet_msg,omitempty"`
  164. }
  165. func (*Packet_PacketPing) isPacket_Sum() {}
  166. func (*Packet_PacketPong) isPacket_Sum() {}
  167. func (*Packet_PacketMsg) isPacket_Sum() {}
  168. func (m *Packet) GetSum() isPacket_Sum {
  169. if m != nil {
  170. return m.Sum
  171. }
  172. return nil
  173. }
  174. func (m *Packet) GetPacketPing() *PacketPing {
  175. if x, ok := m.GetSum().(*Packet_PacketPing); ok {
  176. return x.PacketPing
  177. }
  178. return nil
  179. }
  180. func (m *Packet) GetPacketPong() *PacketPong {
  181. if x, ok := m.GetSum().(*Packet_PacketPong); ok {
  182. return x.PacketPong
  183. }
  184. return nil
  185. }
  186. func (m *Packet) GetPacketMsg() *PacketMsg {
  187. if x, ok := m.GetSum().(*Packet_PacketMsg); ok {
  188. return x.PacketMsg
  189. }
  190. return nil
  191. }
  192. // XXX_OneofWrappers is for the internal use of the proto package.
  193. func (*Packet) XXX_OneofWrappers() []interface{} {
  194. return []interface{}{
  195. (*Packet_PacketPing)(nil),
  196. (*Packet_PacketPong)(nil),
  197. (*Packet_PacketMsg)(nil),
  198. }
  199. }
  200. func init() {
  201. proto.RegisterType((*PacketPing)(nil), "tendermint.proto.p2p.PacketPing")
  202. proto.RegisterType((*PacketPong)(nil), "tendermint.proto.p2p.PacketPong")
  203. proto.RegisterType((*PacketMsg)(nil), "tendermint.proto.p2p.PacketMsg")
  204. proto.RegisterType((*Packet)(nil), "tendermint.proto.p2p.Packet")
  205. }
  206. func init() { proto.RegisterFile("proto/p2p/conn_msgs.proto", fileDescriptor_8c680f0b24d73fe7) }
  207. var fileDescriptor_8c680f0b24d73fe7 = []byte{
  208. // 295 bytes of a gzipped FileDescriptorProto
  209. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x4f, 0x83, 0x30,
  210. 0x14, 0xc6, 0x45, 0xdc, 0x0c, 0x8f, 0x79, 0x69, 0x3c, 0x30, 0x2f, 0x10, 0x0e, 0x66, 0x31, 0x0b,
  211. 0x24, 0xf8, 0x0f, 0x18, 0xa6, 0xc6, 0x1d, 0x16, 0x17, 0x8e, 0x5e, 0x08, 0x03, 0x2c, 0x8d, 0xd2,
  212. 0xd7, 0x40, 0x77, 0xf0, 0x6f, 0x35, 0xd9, 0x61, 0x7f, 0x89, 0xa1, 0x9d, 0x03, 0x13, 0xa3, 0xb7,
  213. 0xef, 0xfb, 0xf2, 0xfa, 0x7b, 0x5f, 0x5b, 0x98, 0x8a, 0x06, 0x25, 0x86, 0x22, 0x12, 0x61, 0x8e,
  214. 0x9c, 0xa7, 0x75, 0x4b, 0xdb, 0x40, 0x65, 0xe4, 0x52, 0x96, 0xbc, 0x28, 0x9b, 0x9a, 0x71, 0xa9,
  215. 0x93, 0x40, 0x44, 0xe2, 0xea, 0x5a, 0x56, 0xac, 0x29, 0x52, 0x91, 0x35, 0xf2, 0x23, 0xd4, 0x87,
  216. 0x29, 0x52, 0xec, 0x95, 0x9e, 0xf5, 0x27, 0x00, 0xeb, 0x2c, 0x7f, 0x2b, 0xe5, 0x9a, 0x71, 0x3a,
  217. 0x70, 0xc8, 0xa9, 0x5f, 0x81, 0xa5, 0xdd, 0xaa, 0xa5, 0x64, 0x0e, 0x90, 0x57, 0x19, 0xe7, 0xe5,
  218. 0x7b, 0xca, 0x0a, 0xc7, 0xf0, 0x8c, 0xd9, 0x28, 0xbe, 0xd8, 0xef, 0x5c, 0x6b, 0xa1, 0xd3, 0xe5,
  219. 0x7d, 0x62, 0x1d, 0x06, 0x96, 0x05, 0x99, 0x82, 0x59, 0xe2, 0xab, 0x73, 0xaa, 0xc6, 0xce, 0xf7,
  220. 0x3b, 0xd7, 0x7c, 0x78, 0x7e, 0x4c, 0xba, 0x8c, 0x10, 0x38, 0x2b, 0x32, 0x99, 0x39, 0xa6, 0x67,
  221. 0xcc, 0x26, 0x89, 0xd2, 0xfe, 0xa7, 0x01, 0x63, 0xbd, 0x8a, 0x2c, 0xc0, 0x16, 0x4a, 0xa5, 0x82,
  222. 0x71, 0xaa, 0x16, 0xd9, 0x91, 0x17, 0xfc, 0x76, 0xc9, 0xa0, 0x6f, 0xfe, 0x74, 0x92, 0x80, 0x38,
  223. 0xba, 0x21, 0x04, 0x39, 0x55, 0x35, 0xfe, 0x83, 0xe0, 0x0f, 0x08, 0x72, 0x4a, 0xee, 0xe0, 0xe0,
  224. 0xba, 0xd7, 0x56, 0x75, 0xed, 0xc8, 0xfd, 0x8b, 0xb1, 0x6a, 0x3b, 0x84, 0x25, 0xbe, 0x4d, 0x3c,
  225. 0x02, 0xb3, 0xdd, 0xd6, 0xf1, 0xfc, 0xe5, 0x86, 0x32, 0x59, 0x6d, 0x37, 0x41, 0x8e, 0x75, 0xd8,
  226. 0x03, 0x86, 0xf2, 0xf8, 0xbf, 0x9b, 0xb1, 0x92, 0xb7, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x87,
  227. 0x8c, 0x0a, 0x5f, 0xf3, 0x01, 0x00, 0x00,
  228. }