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