github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/pb/p2p.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v4.24.4 5 // source: pb/p2p.proto 6 7 package pb 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type P2PSignedMsg struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Holds data of P2PConfigExchange. 34 Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // Signature of data field. 35 } 36 37 func (x *P2PSignedMsg) Reset() { 38 *x = P2PSignedMsg{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_pb_p2p_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *P2PSignedMsg) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*P2PSignedMsg) ProtoMessage() {} 51 52 func (x *P2PSignedMsg) ProtoReflect() protoreflect.Message { 53 mi := &file_pb_p2p_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use P2PSignedMsg.ProtoReflect.Descriptor instead. 65 func (*P2PSignedMsg) Descriptor() ([]byte, []int) { 66 return file_pb_p2p_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *P2PSignedMsg) GetData() []byte { 70 if x != nil { 71 return x.Data 72 } 73 return nil 74 } 75 76 func (x *P2PSignedMsg) GetSignature() []byte { 77 if x != nil { 78 return x.Signature 79 } 80 return nil 81 } 82 83 type P2PConfigExchangeMsg struct { 84 state protoimpl.MessageState 85 sizeCache protoimpl.SizeCache 86 unknownFields protoimpl.UnknownFields 87 88 PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // Public key field which is send from both provider and consumer. 89 ConfigCiphertext []byte `protobuf:"bytes,2,opt,name=configCiphertext,proto3" json:"configCiphertext,omitempty"` // Encrypted P2PConnectConfig data. 90 } 91 92 func (x *P2PConfigExchangeMsg) Reset() { 93 *x = P2PConfigExchangeMsg{} 94 if protoimpl.UnsafeEnabled { 95 mi := &file_pb_p2p_proto_msgTypes[1] 96 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 97 ms.StoreMessageInfo(mi) 98 } 99 } 100 101 func (x *P2PConfigExchangeMsg) String() string { 102 return protoimpl.X.MessageStringOf(x) 103 } 104 105 func (*P2PConfigExchangeMsg) ProtoMessage() {} 106 107 func (x *P2PConfigExchangeMsg) ProtoReflect() protoreflect.Message { 108 mi := &file_pb_p2p_proto_msgTypes[1] 109 if protoimpl.UnsafeEnabled && x != nil { 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 if ms.LoadMessageInfo() == nil { 112 ms.StoreMessageInfo(mi) 113 } 114 return ms 115 } 116 return mi.MessageOf(x) 117 } 118 119 // Deprecated: Use P2PConfigExchangeMsg.ProtoReflect.Descriptor instead. 120 func (*P2PConfigExchangeMsg) Descriptor() ([]byte, []int) { 121 return file_pb_p2p_proto_rawDescGZIP(), []int{1} 122 } 123 124 func (x *P2PConfigExchangeMsg) GetPublicKey() string { 125 if x != nil { 126 return x.PublicKey 127 } 128 return "" 129 } 130 131 func (x *P2PConfigExchangeMsg) GetConfigCiphertext() []byte { 132 if x != nil { 133 return x.ConfigCiphertext 134 } 135 return nil 136 } 137 138 type P2PConnectConfig struct { 139 state protoimpl.MessageState 140 sizeCache protoimpl.SizeCache 141 unknownFields protoimpl.UnknownFields 142 143 PublicIP string `protobuf:"bytes,1,opt,name=publicIP,proto3" json:"publicIP,omitempty"` 144 Ports []int32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` 145 Compatibility int32 `protobuf:"varint,3,opt,name=compatibility,proto3" json:"compatibility,omitempty"` 146 } 147 148 func (x *P2PConnectConfig) Reset() { 149 *x = P2PConnectConfig{} 150 if protoimpl.UnsafeEnabled { 151 mi := &file_pb_p2p_proto_msgTypes[2] 152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 153 ms.StoreMessageInfo(mi) 154 } 155 } 156 157 func (x *P2PConnectConfig) String() string { 158 return protoimpl.X.MessageStringOf(x) 159 } 160 161 func (*P2PConnectConfig) ProtoMessage() {} 162 163 func (x *P2PConnectConfig) ProtoReflect() protoreflect.Message { 164 mi := &file_pb_p2p_proto_msgTypes[2] 165 if protoimpl.UnsafeEnabled && x != nil { 166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 167 if ms.LoadMessageInfo() == nil { 168 ms.StoreMessageInfo(mi) 169 } 170 return ms 171 } 172 return mi.MessageOf(x) 173 } 174 175 // Deprecated: Use P2PConnectConfig.ProtoReflect.Descriptor instead. 176 func (*P2PConnectConfig) Descriptor() ([]byte, []int) { 177 return file_pb_p2p_proto_rawDescGZIP(), []int{2} 178 } 179 180 func (x *P2PConnectConfig) GetPublicIP() string { 181 if x != nil { 182 return x.PublicIP 183 } 184 return "" 185 } 186 187 func (x *P2PConnectConfig) GetPorts() []int32 { 188 if x != nil { 189 return x.Ports 190 } 191 return nil 192 } 193 194 func (x *P2PConnectConfig) GetCompatibility() int32 { 195 if x != nil { 196 return x.Compatibility 197 } 198 return 0 199 } 200 201 type P2PKeepAlivePing struct { 202 state protoimpl.MessageState 203 sizeCache protoimpl.SizeCache 204 unknownFields protoimpl.UnknownFields 205 206 SessionID string `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"` 207 } 208 209 func (x *P2PKeepAlivePing) Reset() { 210 *x = P2PKeepAlivePing{} 211 if protoimpl.UnsafeEnabled { 212 mi := &file_pb_p2p_proto_msgTypes[3] 213 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 214 ms.StoreMessageInfo(mi) 215 } 216 } 217 218 func (x *P2PKeepAlivePing) String() string { 219 return protoimpl.X.MessageStringOf(x) 220 } 221 222 func (*P2PKeepAlivePing) ProtoMessage() {} 223 224 func (x *P2PKeepAlivePing) ProtoReflect() protoreflect.Message { 225 mi := &file_pb_p2p_proto_msgTypes[3] 226 if protoimpl.UnsafeEnabled && x != nil { 227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 228 if ms.LoadMessageInfo() == nil { 229 ms.StoreMessageInfo(mi) 230 } 231 return ms 232 } 233 return mi.MessageOf(x) 234 } 235 236 // Deprecated: Use P2PKeepAlivePing.ProtoReflect.Descriptor instead. 237 func (*P2PKeepAlivePing) Descriptor() ([]byte, []int) { 238 return file_pb_p2p_proto_rawDescGZIP(), []int{3} 239 } 240 241 func (x *P2PKeepAlivePing) GetSessionID() string { 242 if x != nil { 243 return x.SessionID 244 } 245 return "" 246 } 247 248 type P2PChannelHandlersReady struct { 249 state protoimpl.MessageState 250 sizeCache protoimpl.SizeCache 251 unknownFields protoimpl.UnknownFields 252 253 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 254 } 255 256 func (x *P2PChannelHandlersReady) Reset() { 257 *x = P2PChannelHandlersReady{} 258 if protoimpl.UnsafeEnabled { 259 mi := &file_pb_p2p_proto_msgTypes[4] 260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 261 ms.StoreMessageInfo(mi) 262 } 263 } 264 265 func (x *P2PChannelHandlersReady) String() string { 266 return protoimpl.X.MessageStringOf(x) 267 } 268 269 func (*P2PChannelHandlersReady) ProtoMessage() {} 270 271 func (x *P2PChannelHandlersReady) ProtoReflect() protoreflect.Message { 272 mi := &file_pb_p2p_proto_msgTypes[4] 273 if protoimpl.UnsafeEnabled && x != nil { 274 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 275 if ms.LoadMessageInfo() == nil { 276 ms.StoreMessageInfo(mi) 277 } 278 return ms 279 } 280 return mi.MessageOf(x) 281 } 282 283 // Deprecated: Use P2PChannelHandlersReady.ProtoReflect.Descriptor instead. 284 func (*P2PChannelHandlersReady) Descriptor() ([]byte, []int) { 285 return file_pb_p2p_proto_rawDescGZIP(), []int{4} 286 } 287 288 func (x *P2PChannelHandlersReady) GetValue() string { 289 if x != nil { 290 return x.Value 291 } 292 return "" 293 } 294 295 type P2PChannelEnvelope struct { 296 state protoimpl.MessageState 297 sizeCache protoimpl.SizeCache 298 unknownFields protoimpl.UnknownFields 299 300 ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 301 StatusCode uint64 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"` 302 Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` 303 Msg string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` 304 Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` 305 } 306 307 func (x *P2PChannelEnvelope) Reset() { 308 *x = P2PChannelEnvelope{} 309 if protoimpl.UnsafeEnabled { 310 mi := &file_pb_p2p_proto_msgTypes[5] 311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 312 ms.StoreMessageInfo(mi) 313 } 314 } 315 316 func (x *P2PChannelEnvelope) String() string { 317 return protoimpl.X.MessageStringOf(x) 318 } 319 320 func (*P2PChannelEnvelope) ProtoMessage() {} 321 322 func (x *P2PChannelEnvelope) ProtoReflect() protoreflect.Message { 323 mi := &file_pb_p2p_proto_msgTypes[5] 324 if protoimpl.UnsafeEnabled && x != nil { 325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 326 if ms.LoadMessageInfo() == nil { 327 ms.StoreMessageInfo(mi) 328 } 329 return ms 330 } 331 return mi.MessageOf(x) 332 } 333 334 // Deprecated: Use P2PChannelEnvelope.ProtoReflect.Descriptor instead. 335 func (*P2PChannelEnvelope) Descriptor() ([]byte, []int) { 336 return file_pb_p2p_proto_rawDescGZIP(), []int{5} 337 } 338 339 func (x *P2PChannelEnvelope) GetID() uint64 { 340 if x != nil { 341 return x.ID 342 } 343 return 0 344 } 345 346 func (x *P2PChannelEnvelope) GetStatusCode() uint64 { 347 if x != nil { 348 return x.StatusCode 349 } 350 return 0 351 } 352 353 func (x *P2PChannelEnvelope) GetTopic() string { 354 if x != nil { 355 return x.Topic 356 } 357 return "" 358 } 359 360 func (x *P2PChannelEnvelope) GetMsg() string { 361 if x != nil { 362 return x.Msg 363 } 364 return "" 365 } 366 367 func (x *P2PChannelEnvelope) GetData() []byte { 368 if x != nil { 369 return x.Data 370 } 371 return nil 372 } 373 374 var File_pb_p2p_proto protoreflect.FileDescriptor 375 376 var file_pb_p2p_proto_rawDesc = []byte{ 377 0x0a, 0x0c, 0x70, 0x62, 0x2f, 0x70, 0x32, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 378 0x70, 0x62, 0x22, 0x40, 0x0a, 0x0c, 0x50, 0x32, 0x50, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x4d, 379 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 380 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 381 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 382 0x74, 0x75, 0x72, 0x65, 0x22, 0x60, 0x0a, 0x14, 0x50, 0x32, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 383 0x67, 0x45, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x1c, 0x0a, 0x09, 384 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 385 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 386 0x6e, 0x66, 0x69, 0x67, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 387 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x43, 0x69, 0x70, 0x68, 388 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x22, 0x6a, 0x0a, 0x10, 0x50, 0x32, 0x50, 0x43, 0x6f, 0x6e, 389 0x6e, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x75, 390 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x75, 391 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 392 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 393 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 394 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x69, 0x6c, 0x69, 395 0x74, 0x79, 0x22, 0x30, 0x0a, 0x10, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 396 0x76, 0x65, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 397 0x6e, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x73, 0x73, 0x69, 398 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x2f, 0x0a, 0x17, 0x50, 0x32, 0x50, 0x43, 0x68, 0x61, 0x6e, 0x6e, 399 0x65, 0x6c, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x73, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 400 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 401 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x12, 0x50, 0x32, 0x50, 0x43, 0x68, 0x61, 402 0x6e, 0x6e, 0x65, 0x6c, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 403 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 404 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 405 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 406 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 407 0x69, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 408 0x03, 0x6d, 0x73, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 409 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 410 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 411 } 412 413 var ( 414 file_pb_p2p_proto_rawDescOnce sync.Once 415 file_pb_p2p_proto_rawDescData = file_pb_p2p_proto_rawDesc 416 ) 417 418 func file_pb_p2p_proto_rawDescGZIP() []byte { 419 file_pb_p2p_proto_rawDescOnce.Do(func() { 420 file_pb_p2p_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_p2p_proto_rawDescData) 421 }) 422 return file_pb_p2p_proto_rawDescData 423 } 424 425 var file_pb_p2p_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 426 var file_pb_p2p_proto_goTypes = []interface{}{ 427 (*P2PSignedMsg)(nil), // 0: pb.P2PSignedMsg 428 (*P2PConfigExchangeMsg)(nil), // 1: pb.P2PConfigExchangeMsg 429 (*P2PConnectConfig)(nil), // 2: pb.P2PConnectConfig 430 (*P2PKeepAlivePing)(nil), // 3: pb.P2PKeepAlivePing 431 (*P2PChannelHandlersReady)(nil), // 4: pb.P2PChannelHandlersReady 432 (*P2PChannelEnvelope)(nil), // 5: pb.P2PChannelEnvelope 433 } 434 var file_pb_p2p_proto_depIdxs = []int32{ 435 0, // [0:0] is the sub-list for method output_type 436 0, // [0:0] is the sub-list for method input_type 437 0, // [0:0] is the sub-list for extension type_name 438 0, // [0:0] is the sub-list for extension extendee 439 0, // [0:0] is the sub-list for field type_name 440 } 441 442 func init() { file_pb_p2p_proto_init() } 443 func file_pb_p2p_proto_init() { 444 if File_pb_p2p_proto != nil { 445 return 446 } 447 if !protoimpl.UnsafeEnabled { 448 file_pb_p2p_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 449 switch v := v.(*P2PSignedMsg); i { 450 case 0: 451 return &v.state 452 case 1: 453 return &v.sizeCache 454 case 2: 455 return &v.unknownFields 456 default: 457 return nil 458 } 459 } 460 file_pb_p2p_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 461 switch v := v.(*P2PConfigExchangeMsg); i { 462 case 0: 463 return &v.state 464 case 1: 465 return &v.sizeCache 466 case 2: 467 return &v.unknownFields 468 default: 469 return nil 470 } 471 } 472 file_pb_p2p_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 473 switch v := v.(*P2PConnectConfig); i { 474 case 0: 475 return &v.state 476 case 1: 477 return &v.sizeCache 478 case 2: 479 return &v.unknownFields 480 default: 481 return nil 482 } 483 } 484 file_pb_p2p_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 485 switch v := v.(*P2PKeepAlivePing); i { 486 case 0: 487 return &v.state 488 case 1: 489 return &v.sizeCache 490 case 2: 491 return &v.unknownFields 492 default: 493 return nil 494 } 495 } 496 file_pb_p2p_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 497 switch v := v.(*P2PChannelHandlersReady); i { 498 case 0: 499 return &v.state 500 case 1: 501 return &v.sizeCache 502 case 2: 503 return &v.unknownFields 504 default: 505 return nil 506 } 507 } 508 file_pb_p2p_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 509 switch v := v.(*P2PChannelEnvelope); i { 510 case 0: 511 return &v.state 512 case 1: 513 return &v.sizeCache 514 case 2: 515 return &v.unknownFields 516 default: 517 return nil 518 } 519 } 520 } 521 type x struct{} 522 out := protoimpl.TypeBuilder{ 523 File: protoimpl.DescBuilder{ 524 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 525 RawDescriptor: file_pb_p2p_proto_rawDesc, 526 NumEnums: 0, 527 NumMessages: 6, 528 NumExtensions: 0, 529 NumServices: 0, 530 }, 531 GoTypes: file_pb_p2p_proto_goTypes, 532 DependencyIndexes: file_pb_p2p_proto_depIdxs, 533 MessageInfos: file_pb_p2p_proto_msgTypes, 534 }.Build() 535 File_pb_p2p_proto = out.File 536 file_pb_p2p_proto_rawDesc = nil 537 file_pb_p2p_proto_goTypes = nil 538 file_pb_p2p_proto_depIdxs = nil 539 }