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