config.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. package internet
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. serial "v2ray.com/core/common/serial"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. type TransportProtocol int32
  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. // Enum value maps for TransportProtocol.
  29. var (
  30. TransportProtocol_name = map[int32]string{
  31. 0: "TCP",
  32. 1: "UDP",
  33. 2: "MKCP",
  34. 3: "WebSocket",
  35. 4: "HTTP",
  36. 5: "DomainSocket",
  37. }
  38. TransportProtocol_value = map[string]int32{
  39. "TCP": 0,
  40. "UDP": 1,
  41. "MKCP": 2,
  42. "WebSocket": 3,
  43. "HTTP": 4,
  44. "DomainSocket": 5,
  45. }
  46. )
  47. func (x TransportProtocol) Enum() *TransportProtocol {
  48. p := new(TransportProtocol)
  49. *p = x
  50. return p
  51. }
  52. func (x TransportProtocol) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor {
  56. return file_v2ray_com_core_transport_internet_config_proto_enumTypes[0].Descriptor()
  57. }
  58. func (TransportProtocol) Type() protoreflect.EnumType {
  59. return &file_v2ray_com_core_transport_internet_config_proto_enumTypes[0]
  60. }
  61. func (x TransportProtocol) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use TransportProtocol.Descriptor instead.
  65. func (TransportProtocol) EnumDescriptor() ([]byte, []int) {
  66. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{0}
  67. }
  68. type SocketConfig_TCPFastOpenState int32
  69. const (
  70. // AsIs is to leave the current TFO state as is, unmodified.
  71. SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0
  72. // Enable is for enabling TFO explictly.
  73. SocketConfig_Enable SocketConfig_TCPFastOpenState = 1
  74. // Disable is for disabling TFO explictly.
  75. SocketConfig_Disable SocketConfig_TCPFastOpenState = 2
  76. )
  77. // Enum value maps for SocketConfig_TCPFastOpenState.
  78. var (
  79. SocketConfig_TCPFastOpenState_name = map[int32]string{
  80. 0: "AsIs",
  81. 1: "Enable",
  82. 2: "Disable",
  83. }
  84. SocketConfig_TCPFastOpenState_value = map[string]int32{
  85. "AsIs": 0,
  86. "Enable": 1,
  87. "Disable": 2,
  88. }
  89. )
  90. func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState {
  91. p := new(SocketConfig_TCPFastOpenState)
  92. *p = x
  93. return p
  94. }
  95. func (x SocketConfig_TCPFastOpenState) String() string {
  96. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  97. }
  98. func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor {
  99. return file_v2ray_com_core_transport_internet_config_proto_enumTypes[1].Descriptor()
  100. }
  101. func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType {
  102. return &file_v2ray_com_core_transport_internet_config_proto_enumTypes[1]
  103. }
  104. func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber {
  105. return protoreflect.EnumNumber(x)
  106. }
  107. // Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead.
  108. func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) {
  109. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{3, 0}
  110. }
  111. type SocketConfig_TProxyMode int32
  112. const (
  113. // TProxy is off.
  114. SocketConfig_Off SocketConfig_TProxyMode = 0
  115. // TProxy mode.
  116. SocketConfig_TProxy SocketConfig_TProxyMode = 1
  117. // Redirect mode.
  118. SocketConfig_Redirect SocketConfig_TProxyMode = 2
  119. )
  120. // Enum value maps for SocketConfig_TProxyMode.
  121. var (
  122. SocketConfig_TProxyMode_name = map[int32]string{
  123. 0: "Off",
  124. 1: "TProxy",
  125. 2: "Redirect",
  126. }
  127. SocketConfig_TProxyMode_value = map[string]int32{
  128. "Off": 0,
  129. "TProxy": 1,
  130. "Redirect": 2,
  131. }
  132. )
  133. func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode {
  134. p := new(SocketConfig_TProxyMode)
  135. *p = x
  136. return p
  137. }
  138. func (x SocketConfig_TProxyMode) String() string {
  139. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  140. }
  141. func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor {
  142. return file_v2ray_com_core_transport_internet_config_proto_enumTypes[2].Descriptor()
  143. }
  144. func (SocketConfig_TProxyMode) Type() protoreflect.EnumType {
  145. return &file_v2ray_com_core_transport_internet_config_proto_enumTypes[2]
  146. }
  147. func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber {
  148. return protoreflect.EnumNumber(x)
  149. }
  150. // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.
  151. func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) {
  152. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{3, 1}
  153. }
  154. type TransportConfig struct {
  155. state protoimpl.MessageState
  156. sizeCache protoimpl.SizeCache
  157. unknownFields protoimpl.UnknownFields
  158. // Type of network that this settings supports.
  159. // Deprecated. Use the string form below.
  160. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  161. // Type of network that this settings supports.
  162. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  163. // Specific settings. Must be of the transports.
  164. Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  165. }
  166. func (x *TransportConfig) Reset() {
  167. *x = TransportConfig{}
  168. if protoimpl.UnsafeEnabled {
  169. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[0]
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. ms.StoreMessageInfo(mi)
  172. }
  173. }
  174. func (x *TransportConfig) String() string {
  175. return protoimpl.X.MessageStringOf(x)
  176. }
  177. func (*TransportConfig) ProtoMessage() {}
  178. func (x *TransportConfig) ProtoReflect() protoreflect.Message {
  179. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[0]
  180. if protoimpl.UnsafeEnabled && x != nil {
  181. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  182. if ms.LoadMessageInfo() == nil {
  183. ms.StoreMessageInfo(mi)
  184. }
  185. return ms
  186. }
  187. return mi.MessageOf(x)
  188. }
  189. // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
  190. func (*TransportConfig) Descriptor() ([]byte, []int) {
  191. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{0}
  192. }
  193. func (x *TransportConfig) GetProtocol() TransportProtocol {
  194. if x != nil {
  195. return x.Protocol
  196. }
  197. return TransportProtocol_TCP
  198. }
  199. func (x *TransportConfig) GetProtocolName() string {
  200. if x != nil {
  201. return x.ProtocolName
  202. }
  203. return ""
  204. }
  205. func (x *TransportConfig) GetSettings() *serial.TypedMessage {
  206. if x != nil {
  207. return x.Settings
  208. }
  209. return nil
  210. }
  211. type StreamConfig struct {
  212. state protoimpl.MessageState
  213. sizeCache protoimpl.SizeCache
  214. unknownFields protoimpl.UnknownFields
  215. // Effective network. Deprecated. Use the string form below.
  216. //
  217. // Deprecated: Do not use.
  218. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  219. // Effective network.
  220. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  221. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  222. // Type of security. Must be a message name of the settings proto.
  223. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  224. // Settings for transport security. For now the only choice is TLS.
  225. SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  226. SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  227. }
  228. func (x *StreamConfig) Reset() {
  229. *x = StreamConfig{}
  230. if protoimpl.UnsafeEnabled {
  231. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[1]
  232. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  233. ms.StoreMessageInfo(mi)
  234. }
  235. }
  236. func (x *StreamConfig) String() string {
  237. return protoimpl.X.MessageStringOf(x)
  238. }
  239. func (*StreamConfig) ProtoMessage() {}
  240. func (x *StreamConfig) ProtoReflect() protoreflect.Message {
  241. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[1]
  242. if protoimpl.UnsafeEnabled && x != nil {
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. if ms.LoadMessageInfo() == nil {
  245. ms.StoreMessageInfo(mi)
  246. }
  247. return ms
  248. }
  249. return mi.MessageOf(x)
  250. }
  251. // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
  252. func (*StreamConfig) Descriptor() ([]byte, []int) {
  253. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{1}
  254. }
  255. // Deprecated: Do not use.
  256. func (x *StreamConfig) GetProtocol() TransportProtocol {
  257. if x != nil {
  258. return x.Protocol
  259. }
  260. return TransportProtocol_TCP
  261. }
  262. func (x *StreamConfig) GetProtocolName() string {
  263. if x != nil {
  264. return x.ProtocolName
  265. }
  266. return ""
  267. }
  268. func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
  269. if x != nil {
  270. return x.TransportSettings
  271. }
  272. return nil
  273. }
  274. func (x *StreamConfig) GetSecurityType() string {
  275. if x != nil {
  276. return x.SecurityType
  277. }
  278. return ""
  279. }
  280. func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
  281. if x != nil {
  282. return x.SecuritySettings
  283. }
  284. return nil
  285. }
  286. func (x *StreamConfig) GetSocketSettings() *SocketConfig {
  287. if x != nil {
  288. return x.SocketSettings
  289. }
  290. return nil
  291. }
  292. type ProxyConfig struct {
  293. state protoimpl.MessageState
  294. sizeCache protoimpl.SizeCache
  295. unknownFields protoimpl.UnknownFields
  296. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  297. }
  298. func (x *ProxyConfig) Reset() {
  299. *x = ProxyConfig{}
  300. if protoimpl.UnsafeEnabled {
  301. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[2]
  302. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  303. ms.StoreMessageInfo(mi)
  304. }
  305. }
  306. func (x *ProxyConfig) String() string {
  307. return protoimpl.X.MessageStringOf(x)
  308. }
  309. func (*ProxyConfig) ProtoMessage() {}
  310. func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
  311. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[2]
  312. if protoimpl.UnsafeEnabled && x != nil {
  313. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  314. if ms.LoadMessageInfo() == nil {
  315. ms.StoreMessageInfo(mi)
  316. }
  317. return ms
  318. }
  319. return mi.MessageOf(x)
  320. }
  321. // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
  322. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  323. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{2}
  324. }
  325. func (x *ProxyConfig) GetTag() string {
  326. if x != nil {
  327. return x.Tag
  328. }
  329. return ""
  330. }
  331. // SocketConfig is options to be applied on network sockets.
  332. type SocketConfig struct {
  333. state protoimpl.MessageState
  334. sizeCache protoimpl.SizeCache
  335. unknownFields protoimpl.UnknownFields
  336. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  337. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  338. // TFO is the state of TFO settings.
  339. Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"`
  340. // TProxy is for enabling TProxy socket option.
  341. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  342. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket option.
  343. // This option is for UDP only.
  344. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  345. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  346. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  347. }
  348. func (x *SocketConfig) Reset() {
  349. *x = SocketConfig{}
  350. if protoimpl.UnsafeEnabled {
  351. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[3]
  352. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  353. ms.StoreMessageInfo(mi)
  354. }
  355. }
  356. func (x *SocketConfig) String() string {
  357. return protoimpl.X.MessageStringOf(x)
  358. }
  359. func (*SocketConfig) ProtoMessage() {}
  360. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  361. mi := &file_v2ray_com_core_transport_internet_config_proto_msgTypes[3]
  362. if protoimpl.UnsafeEnabled && x != nil {
  363. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  364. if ms.LoadMessageInfo() == nil {
  365. ms.StoreMessageInfo(mi)
  366. }
  367. return ms
  368. }
  369. return mi.MessageOf(x)
  370. }
  371. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  372. func (*SocketConfig) Descriptor() ([]byte, []int) {
  373. return file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP(), []int{3}
  374. }
  375. func (x *SocketConfig) GetMark() int32 {
  376. if x != nil {
  377. return x.Mark
  378. }
  379. return 0
  380. }
  381. func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState {
  382. if x != nil {
  383. return x.Tfo
  384. }
  385. return SocketConfig_AsIs
  386. }
  387. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  388. if x != nil {
  389. return x.Tproxy
  390. }
  391. return SocketConfig_Off
  392. }
  393. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  394. if x != nil {
  395. return x.ReceiveOriginalDestAddress
  396. }
  397. return false
  398. }
  399. func (x *SocketConfig) GetBindAddress() []byte {
  400. if x != nil {
  401. return x.BindAddress
  402. }
  403. return nil
  404. }
  405. func (x *SocketConfig) GetBindPort() uint32 {
  406. if x != nil {
  407. return x.BindPort
  408. }
  409. return 0
  410. }
  411. var File_v2ray_com_core_transport_internet_config_proto protoreflect.FileDescriptor
  412. var file_v2ray_com_core_transport_internet_config_proto_rawDesc = []byte{
  413. 0x0a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  414. 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  415. 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  416. 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61,
  417. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a,
  418. 0x30, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  419. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79,
  420. 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  421. 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43,
  422. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  423. 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  424. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  425. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  426. 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  427. 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f,
  428. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74,
  429. 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74,
  430. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72,
  431. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73,
  432. 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
  433. 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb4, 0x03, 0x0a,
  434. 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a,
  435. 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
  436. 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61,
  437. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  438. 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  439. 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12,
  440. 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  441. 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  442. 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  443. 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  444. 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  445. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  446. 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  447. 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69,
  448. 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f,
  449. 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75,
  450. 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75,
  451. 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20,
  452. 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  453. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54,
  454. 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x65, 0x63,
  455. 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a,
  456. 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  457. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  458. 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
  459. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e,
  460. 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69,
  461. 0x6e, 0x67, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66,
  462. 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  463. 0x03, 0x74, 0x61, 0x67, 0x22, 0xad, 0x03, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  464. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20,
  465. 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74, 0x66, 0x6f,
  466. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  467. 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
  468. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e,
  469. 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53,
  470. 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74, 0x70, 0x72,
  471. 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61,
  472. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  473. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  474. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64,
  475. 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63,
  476. 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65,
  477. 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
  478. 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
  479. 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c,
  480. 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01,
  481. 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12,
  482. 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01,
  483. 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x35, 0x0a, 0x10,
  484. 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65,
  485. 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x6e,
  486. 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c,
  487. 0x65, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64,
  488. 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50,
  489. 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
  490. 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  491. 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50,
  492. 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d,
  493. 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b,
  494. 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10,
  495. 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05,
  496. 0x42, 0x4f, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  497. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  498. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  499. 0x74, 0xaa, 0x02, 0x1d, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54,
  500. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  501. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  502. }
  503. var (
  504. file_v2ray_com_core_transport_internet_config_proto_rawDescOnce sync.Once
  505. file_v2ray_com_core_transport_internet_config_proto_rawDescData = file_v2ray_com_core_transport_internet_config_proto_rawDesc
  506. )
  507. func file_v2ray_com_core_transport_internet_config_proto_rawDescGZIP() []byte {
  508. file_v2ray_com_core_transport_internet_config_proto_rawDescOnce.Do(func() {
  509. file_v2ray_com_core_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_transport_internet_config_proto_rawDescData)
  510. })
  511. return file_v2ray_com_core_transport_internet_config_proto_rawDescData
  512. }
  513. var file_v2ray_com_core_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  514. var file_v2ray_com_core_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  515. var file_v2ray_com_core_transport_internet_config_proto_goTypes = []interface{}{
  516. (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol
  517. (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  518. (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode
  519. (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig
  520. (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig
  521. (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig
  522. (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig
  523. (*serial.TypedMessage)(nil), // 7: v2ray.core.common.serial.TypedMessage
  524. }
  525. var file_v2ray_com_core_transport_internet_config_proto_depIdxs = []int32{
  526. 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  527. 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> v2ray.core.common.serial.TypedMessage
  528. 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  529. 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  530. 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> v2ray.core.common.serial.TypedMessage
  531. 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  532. 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  533. 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode
  534. 8, // [8:8] is the sub-list for method output_type
  535. 8, // [8:8] is the sub-list for method input_type
  536. 8, // [8:8] is the sub-list for extension type_name
  537. 8, // [8:8] is the sub-list for extension extendee
  538. 0, // [0:8] is the sub-list for field type_name
  539. }
  540. func init() { file_v2ray_com_core_transport_internet_config_proto_init() }
  541. func file_v2ray_com_core_transport_internet_config_proto_init() {
  542. if File_v2ray_com_core_transport_internet_config_proto != nil {
  543. return
  544. }
  545. if !protoimpl.UnsafeEnabled {
  546. file_v2ray_com_core_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  547. switch v := v.(*TransportConfig); i {
  548. case 0:
  549. return &v.state
  550. case 1:
  551. return &v.sizeCache
  552. case 2:
  553. return &v.unknownFields
  554. default:
  555. return nil
  556. }
  557. }
  558. file_v2ray_com_core_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  559. switch v := v.(*StreamConfig); i {
  560. case 0:
  561. return &v.state
  562. case 1:
  563. return &v.sizeCache
  564. case 2:
  565. return &v.unknownFields
  566. default:
  567. return nil
  568. }
  569. }
  570. file_v2ray_com_core_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  571. switch v := v.(*ProxyConfig); i {
  572. case 0:
  573. return &v.state
  574. case 1:
  575. return &v.sizeCache
  576. case 2:
  577. return &v.unknownFields
  578. default:
  579. return nil
  580. }
  581. }
  582. file_v2ray_com_core_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  583. switch v := v.(*SocketConfig); i {
  584. case 0:
  585. return &v.state
  586. case 1:
  587. return &v.sizeCache
  588. case 2:
  589. return &v.unknownFields
  590. default:
  591. return nil
  592. }
  593. }
  594. }
  595. type x struct{}
  596. out := protoimpl.TypeBuilder{
  597. File: protoimpl.DescBuilder{
  598. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  599. RawDescriptor: file_v2ray_com_core_transport_internet_config_proto_rawDesc,
  600. NumEnums: 3,
  601. NumMessages: 4,
  602. NumExtensions: 0,
  603. NumServices: 0,
  604. },
  605. GoTypes: file_v2ray_com_core_transport_internet_config_proto_goTypes,
  606. DependencyIndexes: file_v2ray_com_core_transport_internet_config_proto_depIdxs,
  607. EnumInfos: file_v2ray_com_core_transport_internet_config_proto_enumTypes,
  608. MessageInfos: file_v2ray_com_core_transport_internet_config_proto_msgTypes,
  609. }.Build()
  610. File_v2ray_com_core_transport_internet_config_proto = out.File
  611. file_v2ray_com_core_transport_internet_config_proto_rawDesc = nil
  612. file_v2ray_com_core_transport_internet_config_proto_goTypes = nil
  613. file_v2ray_com_core_transport_internet_config_proto_depIdxs = nil
  614. }