config.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. package core
  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. transport "v2ray.com/core/transport"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  18. // of the legacy proto package is being used.
  19. const _ = proto.ProtoPackageIsVersion4
  20. // Config is the master config of V2Ray. V2Ray takes this config as input and functions accordingly.
  21. type Config struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. // Inbound handler configurations. Must have at least one item.
  26. Inbound []*InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound,proto3" json:"inbound,omitempty"`
  27. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  28. Outbound []*OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound,proto3" json:"outbound,omitempty"`
  29. // App is for configurations of all features in V2Ray. A feature must implement the Feature interface, and its config type must be registered through common.RegisterConfig.
  30. App []*serial.TypedMessage `protobuf:"bytes,4,rep,name=app,proto3" json:"app,omitempty"`
  31. // Transport settings.
  32. // Deprecated. Each inbound and outbound should choose their own transport config.
  33. // Date to remove: 2020-01-13
  34. //
  35. // Deprecated: Do not use.
  36. Transport *transport.Config `protobuf:"bytes,5,opt,name=transport,proto3" json:"transport,omitempty"`
  37. // Configuration for extensions. The config may not work if corresponding extension is not loaded into V2Ray.
  38. // V2Ray will ignore such config during initialization.
  39. Extension []*serial.TypedMessage `protobuf:"bytes,6,rep,name=extension,proto3" json:"extension,omitempty"`
  40. }
  41. func (x *Config) Reset() {
  42. *x = Config{}
  43. if protoimpl.UnsafeEnabled {
  44. mi := &file_v2ray_com_core_config_proto_msgTypes[0]
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. ms.StoreMessageInfo(mi)
  47. }
  48. }
  49. func (x *Config) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*Config) ProtoMessage() {}
  53. func (x *Config) ProtoReflect() protoreflect.Message {
  54. mi := &file_v2ray_com_core_config_proto_msgTypes[0]
  55. if protoimpl.UnsafeEnabled && x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  65. func (*Config) Descriptor() ([]byte, []int) {
  66. return file_v2ray_com_core_config_proto_rawDescGZIP(), []int{0}
  67. }
  68. func (x *Config) GetInbound() []*InboundHandlerConfig {
  69. if x != nil {
  70. return x.Inbound
  71. }
  72. return nil
  73. }
  74. func (x *Config) GetOutbound() []*OutboundHandlerConfig {
  75. if x != nil {
  76. return x.Outbound
  77. }
  78. return nil
  79. }
  80. func (x *Config) GetApp() []*serial.TypedMessage {
  81. if x != nil {
  82. return x.App
  83. }
  84. return nil
  85. }
  86. // Deprecated: Do not use.
  87. func (x *Config) GetTransport() *transport.Config {
  88. if x != nil {
  89. return x.Transport
  90. }
  91. return nil
  92. }
  93. func (x *Config) GetExtension() []*serial.TypedMessage {
  94. if x != nil {
  95. return x.Extension
  96. }
  97. return nil
  98. }
  99. // InboundHandlerConfig is the configuration for inbound handler.
  100. type InboundHandlerConfig struct {
  101. state protoimpl.MessageState
  102. sizeCache protoimpl.SizeCache
  103. unknownFields protoimpl.UnknownFields
  104. // Tag of the inbound handler. The tag must be unique among all inbound handlers
  105. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  106. // Settings for how this inbound proxy is handled.
  107. ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
  108. // Settings for inbound proxy. Must be one of the inbound proxies.
  109. ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  110. }
  111. func (x *InboundHandlerConfig) Reset() {
  112. *x = InboundHandlerConfig{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_v2ray_com_core_config_proto_msgTypes[1]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *InboundHandlerConfig) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*InboundHandlerConfig) ProtoMessage() {}
  123. func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message {
  124. mi := &file_v2ray_com_core_config_proto_msgTypes[1]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead.
  135. func (*InboundHandlerConfig) Descriptor() ([]byte, []int) {
  136. return file_v2ray_com_core_config_proto_rawDescGZIP(), []int{1}
  137. }
  138. func (x *InboundHandlerConfig) GetTag() string {
  139. if x != nil {
  140. return x.Tag
  141. }
  142. return ""
  143. }
  144. func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage {
  145. if x != nil {
  146. return x.ReceiverSettings
  147. }
  148. return nil
  149. }
  150. func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage {
  151. if x != nil {
  152. return x.ProxySettings
  153. }
  154. return nil
  155. }
  156. // OutboundHandlerConfig is the configuration for outbound handler.
  157. type OutboundHandlerConfig struct {
  158. state protoimpl.MessageState
  159. sizeCache protoimpl.SizeCache
  160. unknownFields protoimpl.UnknownFields
  161. // Tag of this outbound handler.
  162. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  163. // Settings for how to dial connection for this outbound handler.
  164. SenderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=sender_settings,json=senderSettings,proto3" json:"sender_settings,omitempty"`
  165. // Settings for this outbound proxy. Must be one of the outbound proxies.
  166. ProxySettings *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
  167. // If not zero, this outbound will be expired in seconds. Not used for now.
  168. Expire int64 `protobuf:"varint,4,opt,name=expire,proto3" json:"expire,omitempty"`
  169. // Comment of this outbound handler. Not used for now.
  170. Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
  171. }
  172. func (x *OutboundHandlerConfig) Reset() {
  173. *x = OutboundHandlerConfig{}
  174. if protoimpl.UnsafeEnabled {
  175. mi := &file_v2ray_com_core_config_proto_msgTypes[2]
  176. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  177. ms.StoreMessageInfo(mi)
  178. }
  179. }
  180. func (x *OutboundHandlerConfig) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*OutboundHandlerConfig) ProtoMessage() {}
  184. func (x *OutboundHandlerConfig) ProtoReflect() protoreflect.Message {
  185. mi := &file_v2ray_com_core_config_proto_msgTypes[2]
  186. if protoimpl.UnsafeEnabled && x != nil {
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. if ms.LoadMessageInfo() == nil {
  189. ms.StoreMessageInfo(mi)
  190. }
  191. return ms
  192. }
  193. return mi.MessageOf(x)
  194. }
  195. // Deprecated: Use OutboundHandlerConfig.ProtoReflect.Descriptor instead.
  196. func (*OutboundHandlerConfig) Descriptor() ([]byte, []int) {
  197. return file_v2ray_com_core_config_proto_rawDescGZIP(), []int{2}
  198. }
  199. func (x *OutboundHandlerConfig) GetTag() string {
  200. if x != nil {
  201. return x.Tag
  202. }
  203. return ""
  204. }
  205. func (x *OutboundHandlerConfig) GetSenderSettings() *serial.TypedMessage {
  206. if x != nil {
  207. return x.SenderSettings
  208. }
  209. return nil
  210. }
  211. func (x *OutboundHandlerConfig) GetProxySettings() *serial.TypedMessage {
  212. if x != nil {
  213. return x.ProxySettings
  214. }
  215. return nil
  216. }
  217. func (x *OutboundHandlerConfig) GetExpire() int64 {
  218. if x != nil {
  219. return x.Expire
  220. }
  221. return 0
  222. }
  223. func (x *OutboundHandlerConfig) GetComment() string {
  224. if x != nil {
  225. return x.Comment
  226. }
  227. return ""
  228. }
  229. var File_v2ray_com_core_config_proto protoreflect.FileDescriptor
  230. var file_v2ray_com_core_config_proto_rawDesc = []byte{
  231. 0x0a, 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  232. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x76,
  233. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x30, 0x76, 0x32, 0x72, 0x61, 0x79,
  234. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  235. 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65,
  236. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x76, 0x32, 0x72,
  237. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e,
  238. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  239. 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a,
  240. 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,
  241. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x62, 0x6f,
  242. 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  243. 0x52, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x3d, 0x0a, 0x08, 0x6f, 0x75, 0x74,
  244. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32,
  245. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  246. 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08,
  247. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x38, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18,
  248. 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  249. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  250. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 0x61,
  251. 0x70, 0x70, 0x12, 0x3e, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18,
  252. 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  253. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x43, 0x6f, 0x6e,
  254. 0x66, 0x69, 0x67, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  255. 0x72, 0x74, 0x12, 0x44, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18,
  256. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  257. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  258. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x09, 0x65,
  259. 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xcc,
  260. 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65,
  261. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01,
  262. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x53, 0x0a, 0x11, 0x72, 0x65, 0x63,
  263. 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02,
  264. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  265. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  266. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x72, 0x65,
  267. 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4d,
  268. 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  269. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  270. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61,
  271. 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d,
  272. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xfb, 0x01,
  273. 0x0a, 0x15, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65,
  274. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01,
  275. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x4f, 0x0a, 0x0f, 0x73, 0x65, 0x6e,
  276. 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01,
  277. 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  278. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79,
  279. 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0e, 0x73, 0x65, 0x6e, 0x64,
  280. 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4d, 0x0a, 0x0e, 0x70, 0x72,
  281. 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01,
  282. 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  283. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79,
  284. 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78,
  285. 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70,
  286. 0x69, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72,
  287. 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
  288. 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x25, 0x0a, 0x0e, 0x63,
  289. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x50, 0x01, 0x5a,
  290. 0x04, 0x63, 0x6f, 0x72, 0x65, 0xaa, 0x02, 0x0a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  291. 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  292. }
  293. var (
  294. file_v2ray_com_core_config_proto_rawDescOnce sync.Once
  295. file_v2ray_com_core_config_proto_rawDescData = file_v2ray_com_core_config_proto_rawDesc
  296. )
  297. func file_v2ray_com_core_config_proto_rawDescGZIP() []byte {
  298. file_v2ray_com_core_config_proto_rawDescOnce.Do(func() {
  299. file_v2ray_com_core_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_config_proto_rawDescData)
  300. })
  301. return file_v2ray_com_core_config_proto_rawDescData
  302. }
  303. var file_v2ray_com_core_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  304. var file_v2ray_com_core_config_proto_goTypes = []interface{}{
  305. (*Config)(nil), // 0: v2ray.core.Config
  306. (*InboundHandlerConfig)(nil), // 1: v2ray.core.InboundHandlerConfig
  307. (*OutboundHandlerConfig)(nil), // 2: v2ray.core.OutboundHandlerConfig
  308. (*serial.TypedMessage)(nil), // 3: v2ray.core.common.serial.TypedMessage
  309. (*transport.Config)(nil), // 4: v2ray.core.transport.Config
  310. }
  311. var file_v2ray_com_core_config_proto_depIdxs = []int32{
  312. 1, // 0: v2ray.core.Config.inbound:type_name -> v2ray.core.InboundHandlerConfig
  313. 2, // 1: v2ray.core.Config.outbound:type_name -> v2ray.core.OutboundHandlerConfig
  314. 3, // 2: v2ray.core.Config.app:type_name -> v2ray.core.common.serial.TypedMessage
  315. 4, // 3: v2ray.core.Config.transport:type_name -> v2ray.core.transport.Config
  316. 3, // 4: v2ray.core.Config.extension:type_name -> v2ray.core.common.serial.TypedMessage
  317. 3, // 5: v2ray.core.InboundHandlerConfig.receiver_settings:type_name -> v2ray.core.common.serial.TypedMessage
  318. 3, // 6: v2ray.core.InboundHandlerConfig.proxy_settings:type_name -> v2ray.core.common.serial.TypedMessage
  319. 3, // 7: v2ray.core.OutboundHandlerConfig.sender_settings:type_name -> v2ray.core.common.serial.TypedMessage
  320. 3, // 8: v2ray.core.OutboundHandlerConfig.proxy_settings:type_name -> v2ray.core.common.serial.TypedMessage
  321. 9, // [9:9] is the sub-list for method output_type
  322. 9, // [9:9] is the sub-list for method input_type
  323. 9, // [9:9] is the sub-list for extension type_name
  324. 9, // [9:9] is the sub-list for extension extendee
  325. 0, // [0:9] is the sub-list for field type_name
  326. }
  327. func init() { file_v2ray_com_core_config_proto_init() }
  328. func file_v2ray_com_core_config_proto_init() {
  329. if File_v2ray_com_core_config_proto != nil {
  330. return
  331. }
  332. if !protoimpl.UnsafeEnabled {
  333. file_v2ray_com_core_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  334. switch v := v.(*Config); i {
  335. case 0:
  336. return &v.state
  337. case 1:
  338. return &v.sizeCache
  339. case 2:
  340. return &v.unknownFields
  341. default:
  342. return nil
  343. }
  344. }
  345. file_v2ray_com_core_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  346. switch v := v.(*InboundHandlerConfig); i {
  347. case 0:
  348. return &v.state
  349. case 1:
  350. return &v.sizeCache
  351. case 2:
  352. return &v.unknownFields
  353. default:
  354. return nil
  355. }
  356. }
  357. file_v2ray_com_core_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  358. switch v := v.(*OutboundHandlerConfig); i {
  359. case 0:
  360. return &v.state
  361. case 1:
  362. return &v.sizeCache
  363. case 2:
  364. return &v.unknownFields
  365. default:
  366. return nil
  367. }
  368. }
  369. }
  370. type x struct{}
  371. out := protoimpl.TypeBuilder{
  372. File: protoimpl.DescBuilder{
  373. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  374. RawDescriptor: file_v2ray_com_core_config_proto_rawDesc,
  375. NumEnums: 0,
  376. NumMessages: 3,
  377. NumExtensions: 0,
  378. NumServices: 0,
  379. },
  380. GoTypes: file_v2ray_com_core_config_proto_goTypes,
  381. DependencyIndexes: file_v2ray_com_core_config_proto_depIdxs,
  382. MessageInfos: file_v2ray_com_core_config_proto_msgTypes,
  383. }.Build()
  384. File_v2ray_com_core_config_proto = out.File
  385. file_v2ray_com_core_config_proto_rawDesc = nil
  386. file_v2ray_com_core_config_proto_goTypes = nil
  387. file_v2ray_com_core_config_proto_depIdxs = nil
  388. }