config.pb.go 17 KB

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