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.

195 lines
6.8 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/p2p/pex_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 PexRequest struct {
  20. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  21. XXX_unrecognized []byte `json:"-"`
  22. XXX_sizecache int32 `json:"-"`
  23. }
  24. func (m *PexRequest) Reset() { *m = PexRequest{} }
  25. func (m *PexRequest) String() string { return proto.CompactTextString(m) }
  26. func (*PexRequest) ProtoMessage() {}
  27. func (*PexRequest) Descriptor() ([]byte, []int) {
  28. return fileDescriptor_b4d6fe6b009e47d8, []int{0}
  29. }
  30. func (m *PexRequest) XXX_Unmarshal(b []byte) error {
  31. return xxx_messageInfo_PexRequest.Unmarshal(m, b)
  32. }
  33. func (m *PexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  34. return xxx_messageInfo_PexRequest.Marshal(b, m, deterministic)
  35. }
  36. func (m *PexRequest) XXX_Merge(src proto.Message) {
  37. xxx_messageInfo_PexRequest.Merge(m, src)
  38. }
  39. func (m *PexRequest) XXX_Size() int {
  40. return xxx_messageInfo_PexRequest.Size(m)
  41. }
  42. func (m *PexRequest) XXX_DiscardUnknown() {
  43. xxx_messageInfo_PexRequest.DiscardUnknown(m)
  44. }
  45. var xxx_messageInfo_PexRequest proto.InternalMessageInfo
  46. type PexAddrs struct {
  47. Addrs []NetAddress `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs"`
  48. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  49. XXX_unrecognized []byte `json:"-"`
  50. XXX_sizecache int32 `json:"-"`
  51. }
  52. func (m *PexAddrs) Reset() { *m = PexAddrs{} }
  53. func (m *PexAddrs) String() string { return proto.CompactTextString(m) }
  54. func (*PexAddrs) ProtoMessage() {}
  55. func (*PexAddrs) Descriptor() ([]byte, []int) {
  56. return fileDescriptor_b4d6fe6b009e47d8, []int{1}
  57. }
  58. func (m *PexAddrs) XXX_Unmarshal(b []byte) error {
  59. return xxx_messageInfo_PexAddrs.Unmarshal(m, b)
  60. }
  61. func (m *PexAddrs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  62. return xxx_messageInfo_PexAddrs.Marshal(b, m, deterministic)
  63. }
  64. func (m *PexAddrs) XXX_Merge(src proto.Message) {
  65. xxx_messageInfo_PexAddrs.Merge(m, src)
  66. }
  67. func (m *PexAddrs) XXX_Size() int {
  68. return xxx_messageInfo_PexAddrs.Size(m)
  69. }
  70. func (m *PexAddrs) XXX_DiscardUnknown() {
  71. xxx_messageInfo_PexAddrs.DiscardUnknown(m)
  72. }
  73. var xxx_messageInfo_PexAddrs proto.InternalMessageInfo
  74. func (m *PexAddrs) GetAddrs() []NetAddress {
  75. if m != nil {
  76. return m.Addrs
  77. }
  78. return nil
  79. }
  80. type Message struct {
  81. // Types that are valid to be assigned to Sum:
  82. // *Message_PexRequest
  83. // *Message_PexAddrs
  84. Sum isMessage_Sum `protobuf_oneof:"sum"`
  85. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  86. XXX_unrecognized []byte `json:"-"`
  87. XXX_sizecache int32 `json:"-"`
  88. }
  89. func (m *Message) Reset() { *m = Message{} }
  90. func (m *Message) String() string { return proto.CompactTextString(m) }
  91. func (*Message) ProtoMessage() {}
  92. func (*Message) Descriptor() ([]byte, []int) {
  93. return fileDescriptor_b4d6fe6b009e47d8, []int{2}
  94. }
  95. func (m *Message) XXX_Unmarshal(b []byte) error {
  96. return xxx_messageInfo_Message.Unmarshal(m, b)
  97. }
  98. func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  99. return xxx_messageInfo_Message.Marshal(b, m, deterministic)
  100. }
  101. func (m *Message) XXX_Merge(src proto.Message) {
  102. xxx_messageInfo_Message.Merge(m, src)
  103. }
  104. func (m *Message) XXX_Size() int {
  105. return xxx_messageInfo_Message.Size(m)
  106. }
  107. func (m *Message) XXX_DiscardUnknown() {
  108. xxx_messageInfo_Message.DiscardUnknown(m)
  109. }
  110. var xxx_messageInfo_Message proto.InternalMessageInfo
  111. type isMessage_Sum interface {
  112. isMessage_Sum()
  113. }
  114. type Message_PexRequest struct {
  115. PexRequest *PexRequest `protobuf:"bytes,1,opt,name=pex_request,json=pexRequest,proto3,oneof" json:"pex_request,omitempty"`
  116. }
  117. type Message_PexAddrs struct {
  118. PexAddrs *PexAddrs `protobuf:"bytes,2,opt,name=pex_addrs,json=pexAddrs,proto3,oneof" json:"pex_addrs,omitempty"`
  119. }
  120. func (*Message_PexRequest) isMessage_Sum() {}
  121. func (*Message_PexAddrs) isMessage_Sum() {}
  122. func (m *Message) GetSum() isMessage_Sum {
  123. if m != nil {
  124. return m.Sum
  125. }
  126. return nil
  127. }
  128. func (m *Message) GetPexRequest() *PexRequest {
  129. if x, ok := m.GetSum().(*Message_PexRequest); ok {
  130. return x.PexRequest
  131. }
  132. return nil
  133. }
  134. func (m *Message) GetPexAddrs() *PexAddrs {
  135. if x, ok := m.GetSum().(*Message_PexAddrs); ok {
  136. return x.PexAddrs
  137. }
  138. return nil
  139. }
  140. // XXX_OneofWrappers is for the internal use of the proto package.
  141. func (*Message) XXX_OneofWrappers() []interface{} {
  142. return []interface{}{
  143. (*Message_PexRequest)(nil),
  144. (*Message_PexAddrs)(nil),
  145. }
  146. }
  147. func init() {
  148. proto.RegisterType((*PexRequest)(nil), "tendermint.proto.p2p.PexRequest")
  149. proto.RegisterType((*PexAddrs)(nil), "tendermint.proto.p2p.PexAddrs")
  150. proto.RegisterType((*Message)(nil), "tendermint.proto.p2p.Message")
  151. }
  152. func init() { proto.RegisterFile("proto/p2p/pex_msgs.proto", fileDescriptor_b4d6fe6b009e47d8) }
  153. var fileDescriptor_b4d6fe6b009e47d8 = []byte{
  154. // 255 bytes of a gzipped FileDescriptorProto
  155. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x28, 0x28, 0xca, 0x2f,
  156. 0xc9, 0xd7, 0x2f, 0x30, 0x2a, 0xd0, 0x2f, 0x48, 0xad, 0x88, 0xcf, 0x2d, 0x4e, 0x2f, 0xd6, 0x03,
  157. 0x0b, 0x09, 0x89, 0x94, 0xa4, 0xe6, 0xa5, 0xa4, 0x16, 0xe5, 0x66, 0xe6, 0x95, 0x40, 0x44, 0xf4,
  158. 0x0a, 0x8c, 0x0a, 0xa4, 0x44, 0x11, 0xea, 0x4b, 0x2a, 0x0b, 0x52, 0xa1, 0x8a, 0xa5, 0xd4, 0x4a,
  159. 0x32, 0x32, 0x8b, 0x52, 0xe2, 0x0b, 0x12, 0x8b, 0x4a, 0x2a, 0xf5, 0x21, 0x4a, 0xd2, 0xf3, 0xd3,
  160. 0xf3, 0x11, 0x2c, 0x88, 0x3a, 0x25, 0x1e, 0x2e, 0xae, 0x80, 0xd4, 0x8a, 0xa0, 0xd4, 0xc2, 0xd2,
  161. 0xd4, 0xe2, 0x12, 0x25, 0x0f, 0x2e, 0x8e, 0x80, 0xd4, 0x0a, 0xc7, 0x94, 0x94, 0xa2, 0x62, 0x21,
  162. 0x1b, 0x2e, 0xd6, 0x44, 0x10, 0x43, 0x82, 0x51, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x41, 0x0f, 0x9b,
  163. 0xf5, 0x7a, 0x7e, 0xa9, 0x25, 0x20, 0xe5, 0xa9, 0xc5, 0xc5, 0x4e, 0x2c, 0x27, 0xee, 0xc9, 0x33,
  164. 0x04, 0x41, 0x34, 0x29, 0x4d, 0x61, 0xe4, 0x62, 0xf7, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x15,
  165. 0x72, 0xe6, 0xe2, 0x06, 0x79, 0xa5, 0x08, 0x62, 0x89, 0x04, 0xa3, 0x02, 0x23, 0x6e, 0xf3, 0x10,
  166. 0x8e, 0xf1, 0x60, 0x08, 0xe2, 0x2a, 0x80, 0xf3, 0x84, 0x6c, 0xb9, 0x38, 0x41, 0x86, 0x40, 0x9c,
  167. 0xc4, 0x04, 0x36, 0x42, 0x0e, 0xa7, 0x11, 0x60, 0x1f, 0x78, 0x30, 0x04, 0x71, 0x14, 0x40, 0xd9,
  168. 0x4e, 0xac, 0x5c, 0xcc, 0xc5, 0xa5, 0xb9, 0x4e, 0x3a, 0x51, 0x5a, 0xe9, 0x99, 0x25, 0x19, 0xa5,
  169. 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x08, 0xed, 0xc8, 0x4c, 0x78, 0x80, 0x26, 0xb1, 0x81, 0x99,
  170. 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x73, 0x54, 0xb6, 0xcc, 0x94, 0x01, 0x00, 0x00,
  171. }