github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/config.pb.go (about) 1 package internet 2 3 import ( 4 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 5 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 6 anypb "google.golang.org/protobuf/types/known/anypb" 7 reflect "reflect" 8 sync "sync" 9 ) 10 11 const ( 12 // Verify that this generated code is sufficiently up-to-date. 13 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 14 // Verify that runtime/protoimpl is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 16 ) 17 18 type TransportProtocol int32 19 20 const ( 21 TransportProtocol_TCP TransportProtocol = 0 22 TransportProtocol_UDP TransportProtocol = 1 23 TransportProtocol_MKCP TransportProtocol = 2 24 TransportProtocol_WebSocket TransportProtocol = 3 25 TransportProtocol_HTTP TransportProtocol = 4 26 TransportProtocol_DomainSocket TransportProtocol = 5 27 ) 28 29 // Enum value maps for TransportProtocol. 30 var ( 31 TransportProtocol_name = map[int32]string{ 32 0: "TCP", 33 1: "UDP", 34 2: "MKCP", 35 3: "WebSocket", 36 4: "HTTP", 37 5: "DomainSocket", 38 } 39 TransportProtocol_value = map[string]int32{ 40 "TCP": 0, 41 "UDP": 1, 42 "MKCP": 2, 43 "WebSocket": 3, 44 "HTTP": 4, 45 "DomainSocket": 5, 46 } 47 ) 48 49 func (x TransportProtocol) Enum() *TransportProtocol { 50 p := new(TransportProtocol) 51 *p = x 52 return p 53 } 54 55 func (x TransportProtocol) String() string { 56 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 57 } 58 59 func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor { 60 return file_transport_internet_config_proto_enumTypes[0].Descriptor() 61 } 62 63 func (TransportProtocol) Type() protoreflect.EnumType { 64 return &file_transport_internet_config_proto_enumTypes[0] 65 } 66 67 func (x TransportProtocol) Number() protoreflect.EnumNumber { 68 return protoreflect.EnumNumber(x) 69 } 70 71 // Deprecated: Use TransportProtocol.Descriptor instead. 72 func (TransportProtocol) EnumDescriptor() ([]byte, []int) { 73 return file_transport_internet_config_proto_rawDescGZIP(), []int{0} 74 } 75 76 type SocketConfig_TCPFastOpenState int32 77 78 const ( 79 // AsIs is to leave the current TFO state as is, unmodified. 80 SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0 81 // Enable is for enabling TFO explictly. 82 SocketConfig_Enable SocketConfig_TCPFastOpenState = 1 83 // Disable is for disabling TFO explictly. 84 SocketConfig_Disable SocketConfig_TCPFastOpenState = 2 85 ) 86 87 // Enum value maps for SocketConfig_TCPFastOpenState. 88 var ( 89 SocketConfig_TCPFastOpenState_name = map[int32]string{ 90 0: "AsIs", 91 1: "Enable", 92 2: "Disable", 93 } 94 SocketConfig_TCPFastOpenState_value = map[string]int32{ 95 "AsIs": 0, 96 "Enable": 1, 97 "Disable": 2, 98 } 99 ) 100 101 func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState { 102 p := new(SocketConfig_TCPFastOpenState) 103 *p = x 104 return p 105 } 106 107 func (x SocketConfig_TCPFastOpenState) String() string { 108 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 109 } 110 111 func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor { 112 return file_transport_internet_config_proto_enumTypes[1].Descriptor() 113 } 114 115 func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType { 116 return &file_transport_internet_config_proto_enumTypes[1] 117 } 118 119 func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber { 120 return protoreflect.EnumNumber(x) 121 } 122 123 // Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead. 124 func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) { 125 return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 0} 126 } 127 128 type SocketConfig_TProxyMode int32 129 130 const ( 131 // TProxy is off. 132 SocketConfig_Off SocketConfig_TProxyMode = 0 133 // TProxy mode. 134 SocketConfig_TProxy SocketConfig_TProxyMode = 1 135 // Redirect mode. 136 SocketConfig_Redirect SocketConfig_TProxyMode = 2 137 ) 138 139 // Enum value maps for SocketConfig_TProxyMode. 140 var ( 141 SocketConfig_TProxyMode_name = map[int32]string{ 142 0: "Off", 143 1: "TProxy", 144 2: "Redirect", 145 } 146 SocketConfig_TProxyMode_value = map[string]int32{ 147 "Off": 0, 148 "TProxy": 1, 149 "Redirect": 2, 150 } 151 ) 152 153 func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode { 154 p := new(SocketConfig_TProxyMode) 155 *p = x 156 return p 157 } 158 159 func (x SocketConfig_TProxyMode) String() string { 160 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 161 } 162 163 func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor { 164 return file_transport_internet_config_proto_enumTypes[2].Descriptor() 165 } 166 167 func (SocketConfig_TProxyMode) Type() protoreflect.EnumType { 168 return &file_transport_internet_config_proto_enumTypes[2] 169 } 170 171 func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber { 172 return protoreflect.EnumNumber(x) 173 } 174 175 // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead. 176 func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) { 177 return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 1} 178 } 179 180 type TransportConfig struct { 181 state protoimpl.MessageState 182 sizeCache protoimpl.SizeCache 183 unknownFields protoimpl.UnknownFields 184 185 // Type of network that this settings supports. 186 // Deprecated. Use the string form below. 187 // 188 // Deprecated: Marked as deprecated in transport/internet/config.proto. 189 Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` 190 // Type of network that this settings supports. 191 ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"` 192 // Specific settings. Must be of the transports. 193 Settings *anypb.Any `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` 194 } 195 196 func (x *TransportConfig) Reset() { 197 *x = TransportConfig{} 198 if protoimpl.UnsafeEnabled { 199 mi := &file_transport_internet_config_proto_msgTypes[0] 200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 201 ms.StoreMessageInfo(mi) 202 } 203 } 204 205 func (x *TransportConfig) String() string { 206 return protoimpl.X.MessageStringOf(x) 207 } 208 209 func (*TransportConfig) ProtoMessage() {} 210 211 func (x *TransportConfig) ProtoReflect() protoreflect.Message { 212 mi := &file_transport_internet_config_proto_msgTypes[0] 213 if protoimpl.UnsafeEnabled && x != nil { 214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 215 if ms.LoadMessageInfo() == nil { 216 ms.StoreMessageInfo(mi) 217 } 218 return ms 219 } 220 return mi.MessageOf(x) 221 } 222 223 // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead. 224 func (*TransportConfig) Descriptor() ([]byte, []int) { 225 return file_transport_internet_config_proto_rawDescGZIP(), []int{0} 226 } 227 228 // Deprecated: Marked as deprecated in transport/internet/config.proto. 229 func (x *TransportConfig) GetProtocol() TransportProtocol { 230 if x != nil { 231 return x.Protocol 232 } 233 return TransportProtocol_TCP 234 } 235 236 func (x *TransportConfig) GetProtocolName() string { 237 if x != nil { 238 return x.ProtocolName 239 } 240 return "" 241 } 242 243 func (x *TransportConfig) GetSettings() *anypb.Any { 244 if x != nil { 245 return x.Settings 246 } 247 return nil 248 } 249 250 type StreamConfig struct { 251 state protoimpl.MessageState 252 sizeCache protoimpl.SizeCache 253 unknownFields protoimpl.UnknownFields 254 255 // Effective network. Deprecated. Use the string form below. 256 // 257 // Deprecated: Marked as deprecated in transport/internet/config.proto. 258 Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"` 259 // Effective network. 260 ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"` 261 TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"` 262 // Type of security. Must be a message name of the settings proto. 263 SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"` 264 // Settings for transport security. For now the only choice is TLS. 265 SecuritySettings []*anypb.Any `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"` 266 SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"` 267 } 268 269 func (x *StreamConfig) Reset() { 270 *x = StreamConfig{} 271 if protoimpl.UnsafeEnabled { 272 mi := &file_transport_internet_config_proto_msgTypes[1] 273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 274 ms.StoreMessageInfo(mi) 275 } 276 } 277 278 func (x *StreamConfig) String() string { 279 return protoimpl.X.MessageStringOf(x) 280 } 281 282 func (*StreamConfig) ProtoMessage() {} 283 284 func (x *StreamConfig) ProtoReflect() protoreflect.Message { 285 mi := &file_transport_internet_config_proto_msgTypes[1] 286 if protoimpl.UnsafeEnabled && x != nil { 287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 288 if ms.LoadMessageInfo() == nil { 289 ms.StoreMessageInfo(mi) 290 } 291 return ms 292 } 293 return mi.MessageOf(x) 294 } 295 296 // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead. 297 func (*StreamConfig) Descriptor() ([]byte, []int) { 298 return file_transport_internet_config_proto_rawDescGZIP(), []int{1} 299 } 300 301 // Deprecated: Marked as deprecated in transport/internet/config.proto. 302 func (x *StreamConfig) GetProtocol() TransportProtocol { 303 if x != nil { 304 return x.Protocol 305 } 306 return TransportProtocol_TCP 307 } 308 309 func (x *StreamConfig) GetProtocolName() string { 310 if x != nil { 311 return x.ProtocolName 312 } 313 return "" 314 } 315 316 func (x *StreamConfig) GetTransportSettings() []*TransportConfig { 317 if x != nil { 318 return x.TransportSettings 319 } 320 return nil 321 } 322 323 func (x *StreamConfig) GetSecurityType() string { 324 if x != nil { 325 return x.SecurityType 326 } 327 return "" 328 } 329 330 func (x *StreamConfig) GetSecuritySettings() []*anypb.Any { 331 if x != nil { 332 return x.SecuritySettings 333 } 334 return nil 335 } 336 337 func (x *StreamConfig) GetSocketSettings() *SocketConfig { 338 if x != nil { 339 return x.SocketSettings 340 } 341 return nil 342 } 343 344 type ProxyConfig struct { 345 state protoimpl.MessageState 346 sizeCache protoimpl.SizeCache 347 unknownFields protoimpl.UnknownFields 348 349 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 350 TransportLayerProxy bool `protobuf:"varint,2,opt,name=transportLayerProxy,proto3" json:"transportLayerProxy,omitempty"` 351 } 352 353 func (x *ProxyConfig) Reset() { 354 *x = ProxyConfig{} 355 if protoimpl.UnsafeEnabled { 356 mi := &file_transport_internet_config_proto_msgTypes[2] 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 ms.StoreMessageInfo(mi) 359 } 360 } 361 362 func (x *ProxyConfig) String() string { 363 return protoimpl.X.MessageStringOf(x) 364 } 365 366 func (*ProxyConfig) ProtoMessage() {} 367 368 func (x *ProxyConfig) ProtoReflect() protoreflect.Message { 369 mi := &file_transport_internet_config_proto_msgTypes[2] 370 if protoimpl.UnsafeEnabled && x != nil { 371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 if ms.LoadMessageInfo() == nil { 373 ms.StoreMessageInfo(mi) 374 } 375 return ms 376 } 377 return mi.MessageOf(x) 378 } 379 380 // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead. 381 func (*ProxyConfig) Descriptor() ([]byte, []int) { 382 return file_transport_internet_config_proto_rawDescGZIP(), []int{2} 383 } 384 385 func (x *ProxyConfig) GetTag() string { 386 if x != nil { 387 return x.Tag 388 } 389 return "" 390 } 391 392 func (x *ProxyConfig) GetTransportLayerProxy() bool { 393 if x != nil { 394 return x.TransportLayerProxy 395 } 396 return false 397 } 398 399 // SocketConfig is options to be applied on network sockets. 400 type SocketConfig struct { 401 state protoimpl.MessageState 402 sizeCache protoimpl.SizeCache 403 unknownFields protoimpl.UnknownFields 404 405 // Mark of the connection. If non-zero, the value will be set to SO_MARK. 406 Mark uint32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"` 407 // TFO is the state of TFO settings. 408 Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"` 409 // TProxy is for enabling TProxy socket option. 410 Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"` 411 // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket 412 // option. This option is for UDP only. 413 ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"` 414 BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"` 415 BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"` 416 AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` 417 TcpKeepAliveInterval int32 `protobuf:"varint,8,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"` 418 TfoQueueLength uint32 `protobuf:"varint,9,opt,name=tfo_queue_length,json=tfoQueueLength,proto3" json:"tfo_queue_length,omitempty"` 419 TcpKeepAliveIdle int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"` 420 BindToDevice string `protobuf:"bytes,11,opt,name=bind_to_device,json=bindToDevice,proto3" json:"bind_to_device,omitempty"` 421 RxBufSize int64 `protobuf:"varint,12,opt,name=rx_buf_size,json=rxBufSize,proto3" json:"rx_buf_size,omitempty"` 422 TxBufSize int64 `protobuf:"varint,13,opt,name=tx_buf_size,json=txBufSize,proto3" json:"tx_buf_size,omitempty"` 423 ForceBufSize bool `protobuf:"varint,14,opt,name=force_buf_size,json=forceBufSize,proto3" json:"force_buf_size,omitempty"` 424 } 425 426 func (x *SocketConfig) Reset() { 427 *x = SocketConfig{} 428 if protoimpl.UnsafeEnabled { 429 mi := &file_transport_internet_config_proto_msgTypes[3] 430 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 431 ms.StoreMessageInfo(mi) 432 } 433 } 434 435 func (x *SocketConfig) String() string { 436 return protoimpl.X.MessageStringOf(x) 437 } 438 439 func (*SocketConfig) ProtoMessage() {} 440 441 func (x *SocketConfig) ProtoReflect() protoreflect.Message { 442 mi := &file_transport_internet_config_proto_msgTypes[3] 443 if protoimpl.UnsafeEnabled && x != nil { 444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 445 if ms.LoadMessageInfo() == nil { 446 ms.StoreMessageInfo(mi) 447 } 448 return ms 449 } 450 return mi.MessageOf(x) 451 } 452 453 // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead. 454 func (*SocketConfig) Descriptor() ([]byte, []int) { 455 return file_transport_internet_config_proto_rawDescGZIP(), []int{3} 456 } 457 458 func (x *SocketConfig) GetMark() uint32 { 459 if x != nil { 460 return x.Mark 461 } 462 return 0 463 } 464 465 func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState { 466 if x != nil { 467 return x.Tfo 468 } 469 return SocketConfig_AsIs 470 } 471 472 func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode { 473 if x != nil { 474 return x.Tproxy 475 } 476 return SocketConfig_Off 477 } 478 479 func (x *SocketConfig) GetReceiveOriginalDestAddress() bool { 480 if x != nil { 481 return x.ReceiveOriginalDestAddress 482 } 483 return false 484 } 485 486 func (x *SocketConfig) GetBindAddress() []byte { 487 if x != nil { 488 return x.BindAddress 489 } 490 return nil 491 } 492 493 func (x *SocketConfig) GetBindPort() uint32 { 494 if x != nil { 495 return x.BindPort 496 } 497 return 0 498 } 499 500 func (x *SocketConfig) GetAcceptProxyProtocol() bool { 501 if x != nil { 502 return x.AcceptProxyProtocol 503 } 504 return false 505 } 506 507 func (x *SocketConfig) GetTcpKeepAliveInterval() int32 { 508 if x != nil { 509 return x.TcpKeepAliveInterval 510 } 511 return 0 512 } 513 514 func (x *SocketConfig) GetTfoQueueLength() uint32 { 515 if x != nil { 516 return x.TfoQueueLength 517 } 518 return 0 519 } 520 521 func (x *SocketConfig) GetTcpKeepAliveIdle() int32 { 522 if x != nil { 523 return x.TcpKeepAliveIdle 524 } 525 return 0 526 } 527 528 func (x *SocketConfig) GetBindToDevice() string { 529 if x != nil { 530 return x.BindToDevice 531 } 532 return "" 533 } 534 535 func (x *SocketConfig) GetRxBufSize() int64 { 536 if x != nil { 537 return x.RxBufSize 538 } 539 return 0 540 } 541 542 func (x *SocketConfig) GetTxBufSize() int64 { 543 if x != nil { 544 return x.TxBufSize 545 } 546 return 0 547 } 548 549 func (x *SocketConfig) GetForceBufSize() bool { 550 if x != nil { 551 return x.ForceBufSize 552 } 553 return false 554 } 555 556 var File_transport_internet_config_proto protoreflect.FileDescriptor 557 558 var file_transport_internet_config_proto_rawDesc = []byte{ 559 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 560 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 561 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 562 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 563 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 564 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x01, 0x0a, 0x0f, 565 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 566 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 567 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 568 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 569 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 570 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 571 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 572 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 573 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 574 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 575 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 576 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xa2, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 577 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 578 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 579 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 580 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 581 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 582 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 583 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 584 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 585 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 586 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 587 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 588 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 589 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 590 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 591 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 592 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 593 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 594 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 595 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 596 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 597 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 598 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 599 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 600 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 601 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 602 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x51, 0x0a, 603 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 604 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x30, 605 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 606 0x50, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 0x72, 0x61, 607 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 608 0x22, 0xfd, 0x05, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 609 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 610 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 611 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 612 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 613 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 614 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 615 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 616 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 617 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 618 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 619 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 620 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 621 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 622 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 623 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 624 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 625 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 626 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 627 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 628 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 629 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 630 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 631 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x17, 632 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 633 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 634 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 635 0x76, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x66, 0x6f, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 636 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74, 637 0x66, 0x6f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x2d, 0x0a, 638 0x13, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 639 0x69, 0x64, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x63, 0x70, 0x4b, 640 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x64, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 641 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x0b, 642 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x54, 0x6f, 0x44, 0x65, 0x76, 0x69, 643 0x63, 0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x72, 0x78, 0x5f, 0x62, 0x75, 0x66, 0x5f, 0x73, 0x69, 0x7a, 644 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x78, 0x42, 0x75, 0x66, 0x53, 0x69, 645 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x78, 0x5f, 0x62, 0x75, 0x66, 0x5f, 0x73, 0x69, 0x7a, 646 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x78, 0x42, 0x75, 0x66, 0x53, 0x69, 647 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x66, 0x5f, 648 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x6f, 0x72, 0x63, 649 0x65, 0x42, 0x75, 0x66, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x35, 0x0a, 0x10, 0x54, 0x43, 0x50, 0x46, 650 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 651 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 652 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x02, 0x22, 653 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 654 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 655 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 656 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 657 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 658 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 659 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 660 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 661 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x42, 0x78, 0x0a, 0x21, 662 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 663 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 664 0x74, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 665 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 666 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 667 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x1d, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 668 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 669 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 670 } 671 672 var ( 673 file_transport_internet_config_proto_rawDescOnce sync.Once 674 file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc 675 ) 676 677 func file_transport_internet_config_proto_rawDescGZIP() []byte { 678 file_transport_internet_config_proto_rawDescOnce.Do(func() { 679 file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData) 680 }) 681 return file_transport_internet_config_proto_rawDescData 682 } 683 684 var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3) 685 var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 686 var file_transport_internet_config_proto_goTypes = []interface{}{ 687 (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol 688 (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState 689 (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode 690 (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig 691 (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig 692 (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig 693 (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig 694 (*anypb.Any)(nil), // 7: google.protobuf.Any 695 } 696 var file_transport_internet_config_proto_depIdxs = []int32{ 697 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol 698 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> google.protobuf.Any 699 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol 700 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig 701 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> google.protobuf.Any 702 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig 703 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState 704 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode 705 8, // [8:8] is the sub-list for method output_type 706 8, // [8:8] is the sub-list for method input_type 707 8, // [8:8] is the sub-list for extension type_name 708 8, // [8:8] is the sub-list for extension extendee 709 0, // [0:8] is the sub-list for field type_name 710 } 711 712 func init() { file_transport_internet_config_proto_init() } 713 func file_transport_internet_config_proto_init() { 714 if File_transport_internet_config_proto != nil { 715 return 716 } 717 if !protoimpl.UnsafeEnabled { 718 file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 719 switch v := v.(*TransportConfig); i { 720 case 0: 721 return &v.state 722 case 1: 723 return &v.sizeCache 724 case 2: 725 return &v.unknownFields 726 default: 727 return nil 728 } 729 } 730 file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 731 switch v := v.(*StreamConfig); i { 732 case 0: 733 return &v.state 734 case 1: 735 return &v.sizeCache 736 case 2: 737 return &v.unknownFields 738 default: 739 return nil 740 } 741 } 742 file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 743 switch v := v.(*ProxyConfig); i { 744 case 0: 745 return &v.state 746 case 1: 747 return &v.sizeCache 748 case 2: 749 return &v.unknownFields 750 default: 751 return nil 752 } 753 } 754 file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 755 switch v := v.(*SocketConfig); i { 756 case 0: 757 return &v.state 758 case 1: 759 return &v.sizeCache 760 case 2: 761 return &v.unknownFields 762 default: 763 return nil 764 } 765 } 766 } 767 type x struct{} 768 out := protoimpl.TypeBuilder{ 769 File: protoimpl.DescBuilder{ 770 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 771 RawDescriptor: file_transport_internet_config_proto_rawDesc, 772 NumEnums: 3, 773 NumMessages: 4, 774 NumExtensions: 0, 775 NumServices: 0, 776 }, 777 GoTypes: file_transport_internet_config_proto_goTypes, 778 DependencyIndexes: file_transport_internet_config_proto_depIdxs, 779 EnumInfos: file_transport_internet_config_proto_enumTypes, 780 MessageInfos: file_transport_internet_config_proto_msgTypes, 781 }.Build() 782 File_transport_internet_config_proto = out.File 783 file_transport_internet_config_proto_rawDesc = nil 784 file_transport_internet_config_proto_goTypes = nil 785 file_transport_internet_config_proto_depIdxs = nil 786 }