config.pb.go 17 KB

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