config.pb.go 17 KB

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