config.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  5. // source: core/config.proto
  6. package core
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. global "github.com/xtls/xray-core/transport/global"
  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 Xray. Xray 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 Xray. 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 *global.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 Xray. Xray 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_core_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_core_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_core_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() *global.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_core_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_core_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_core_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_core_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_core_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_core_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_core_config_proto protoreflect.FileDescriptor
  237. var file_core_config_proto_rawDesc = []byte{
  238. 0x0a, 0x11, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
  239. 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x21,
  240. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79,
  241. 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  242. 0x6f, 0x1a, 0x1d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x67, 0x6c, 0x6f,
  243. 0x62, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  244. 0x22, 0xb5, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x39, 0x0a, 0x07, 0x69,
  245. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78,
  246. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  247. 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x69,
  248. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  249. 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  250. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e,
  251. 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62,
  252. 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x32, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28,
  253. 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  254. 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  255. 0x61, 0x67, 0x65, 0x52, 0x03, 0x61, 0x70, 0x70, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e,
  256. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72,
  257. 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x43, 0x6f, 0x6e,
  258. 0x66, 0x69, 0x67, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  259. 0x72, 0x74, 0x12, 0x3e, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18,
  260. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  261. 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64,
  262. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  263. 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x62,
  264. 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  265. 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  266. 0x74, 0x61, 0x67, 0x12, 0x4d, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x5f,
  267. 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
  268. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72,
  269. 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  270. 0x52, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  271. 0x67, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74,
  272. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  273. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  274. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72,
  275. 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xef, 0x01, 0x0a, 0x15,
  276. 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x43,
  277. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01,
  278. 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x49, 0x0a, 0x0f, 0x73, 0x65, 0x6e, 0x64, 0x65,
  279. 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  280. 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73,
  281. 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
  282. 0x67, 0x65, 0x52, 0x0e, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
  283. 0x67, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74,
  284. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  285. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  286. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0d, 0x70, 0x72,
  287. 0x6f, 0x78, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65,
  288. 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70,
  289. 0x69, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05,
  290. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x3d, 0x0a,
  291. 0x0d, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x50, 0x01,
  292. 0x5a, 0x1e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  293. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  294. 0xaa, 0x02, 0x09, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,
  295. 0x6f, 0x74, 0x6f, 0x33,
  296. }
  297. var (
  298. file_core_config_proto_rawDescOnce sync.Once
  299. file_core_config_proto_rawDescData = file_core_config_proto_rawDesc
  300. )
  301. func file_core_config_proto_rawDescGZIP() []byte {
  302. file_core_config_proto_rawDescOnce.Do(func() {
  303. file_core_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_core_config_proto_rawDescData)
  304. })
  305. return file_core_config_proto_rawDescData
  306. }
  307. var file_core_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  308. var file_core_config_proto_goTypes = []interface{}{
  309. (*Config)(nil), // 0: xray.core.Config
  310. (*InboundHandlerConfig)(nil), // 1: xray.core.InboundHandlerConfig
  311. (*OutboundHandlerConfig)(nil), // 2: xray.core.OutboundHandlerConfig
  312. (*serial.TypedMessage)(nil), // 3: xray.common.serial.TypedMessage
  313. (*global.Config)(nil), // 4: xray.transport.Config
  314. }
  315. var file_core_config_proto_depIdxs = []int32{
  316. 1, // 0: xray.core.Config.inbound:type_name -> xray.core.InboundHandlerConfig
  317. 2, // 1: xray.core.Config.outbound:type_name -> xray.core.OutboundHandlerConfig
  318. 3, // 2: xray.core.Config.app:type_name -> xray.common.serial.TypedMessage
  319. 4, // 3: xray.core.Config.transport:type_name -> xray.transport.Config
  320. 3, // 4: xray.core.Config.extension:type_name -> xray.common.serial.TypedMessage
  321. 3, // 5: xray.core.InboundHandlerConfig.receiver_settings:type_name -> xray.common.serial.TypedMessage
  322. 3, // 6: xray.core.InboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage
  323. 3, // 7: xray.core.OutboundHandlerConfig.sender_settings:type_name -> xray.common.serial.TypedMessage
  324. 3, // 8: xray.core.OutboundHandlerConfig.proxy_settings:type_name -> xray.common.serial.TypedMessage
  325. 9, // [9:9] is the sub-list for method output_type
  326. 9, // [9:9] is the sub-list for method input_type
  327. 9, // [9:9] is the sub-list for extension type_name
  328. 9, // [9:9] is the sub-list for extension extendee
  329. 0, // [0:9] is the sub-list for field type_name
  330. }
  331. func init() { file_core_config_proto_init() }
  332. func file_core_config_proto_init() {
  333. if File_core_config_proto != nil {
  334. return
  335. }
  336. if !protoimpl.UnsafeEnabled {
  337. file_core_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  338. switch v := v.(*Config); i {
  339. case 0:
  340. return &v.state
  341. case 1:
  342. return &v.sizeCache
  343. case 2:
  344. return &v.unknownFields
  345. default:
  346. return nil
  347. }
  348. }
  349. file_core_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  350. switch v := v.(*InboundHandlerConfig); i {
  351. case 0:
  352. return &v.state
  353. case 1:
  354. return &v.sizeCache
  355. case 2:
  356. return &v.unknownFields
  357. default:
  358. return nil
  359. }
  360. }
  361. file_core_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  362. switch v := v.(*OutboundHandlerConfig); i {
  363. case 0:
  364. return &v.state
  365. case 1:
  366. return &v.sizeCache
  367. case 2:
  368. return &v.unknownFields
  369. default:
  370. return nil
  371. }
  372. }
  373. }
  374. type x struct{}
  375. out := protoimpl.TypeBuilder{
  376. File: protoimpl.DescBuilder{
  377. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  378. RawDescriptor: file_core_config_proto_rawDesc,
  379. NumEnums: 0,
  380. NumMessages: 3,
  381. NumExtensions: 0,
  382. NumServices: 0,
  383. },
  384. GoTypes: file_core_config_proto_goTypes,
  385. DependencyIndexes: file_core_config_proto_depIdxs,
  386. MessageInfos: file_core_config_proto_msgTypes,
  387. }.Build()
  388. File_core_config_proto = out.File
  389. file_core_config_proto_rawDesc = nil
  390. file_core_config_proto_goTypes = nil
  391. file_core_config_proto_depIdxs = nil
  392. }