config.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  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: proxy/shadowsocks_2022/config.proto
  6. package shadowsocks_2022
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ServerConfig struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  25. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  26. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  27. Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
  28. Network []net.Network `protobuf:"varint,5,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
  29. }
  30. func (x *ServerConfig) Reset() {
  31. *x = ServerConfig{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *ServerConfig) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*ServerConfig) ProtoMessage() {}
  42. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  43. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  54. func (*ServerConfig) Descriptor() ([]byte, []int) {
  55. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *ServerConfig) GetMethod() string {
  58. if x != nil {
  59. return x.Method
  60. }
  61. return ""
  62. }
  63. func (x *ServerConfig) GetKey() string {
  64. if x != nil {
  65. return x.Key
  66. }
  67. return ""
  68. }
  69. func (x *ServerConfig) GetEmail() string {
  70. if x != nil {
  71. return x.Email
  72. }
  73. return ""
  74. }
  75. func (x *ServerConfig) GetLevel() int32 {
  76. if x != nil {
  77. return x.Level
  78. }
  79. return 0
  80. }
  81. func (x *ServerConfig) GetNetwork() []net.Network {
  82. if x != nil {
  83. return x.Network
  84. }
  85. return nil
  86. }
  87. type MultiUserServerConfig struct {
  88. state protoimpl.MessageState
  89. sizeCache protoimpl.SizeCache
  90. unknownFields protoimpl.UnknownFields
  91. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  92. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  93. Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
  94. Network []net.Network `protobuf:"varint,4,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
  95. }
  96. func (x *MultiUserServerConfig) Reset() {
  97. *x = MultiUserServerConfig{}
  98. if protoimpl.UnsafeEnabled {
  99. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[1]
  100. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  101. ms.StoreMessageInfo(mi)
  102. }
  103. }
  104. func (x *MultiUserServerConfig) String() string {
  105. return protoimpl.X.MessageStringOf(x)
  106. }
  107. func (*MultiUserServerConfig) ProtoMessage() {}
  108. func (x *MultiUserServerConfig) ProtoReflect() protoreflect.Message {
  109. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[1]
  110. if protoimpl.UnsafeEnabled && x != nil {
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. if ms.LoadMessageInfo() == nil {
  113. ms.StoreMessageInfo(mi)
  114. }
  115. return ms
  116. }
  117. return mi.MessageOf(x)
  118. }
  119. // Deprecated: Use MultiUserServerConfig.ProtoReflect.Descriptor instead.
  120. func (*MultiUserServerConfig) Descriptor() ([]byte, []int) {
  121. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{1}
  122. }
  123. func (x *MultiUserServerConfig) GetMethod() string {
  124. if x != nil {
  125. return x.Method
  126. }
  127. return ""
  128. }
  129. func (x *MultiUserServerConfig) GetKey() string {
  130. if x != nil {
  131. return x.Key
  132. }
  133. return ""
  134. }
  135. func (x *MultiUserServerConfig) GetUsers() []*User {
  136. if x != nil {
  137. return x.Users
  138. }
  139. return nil
  140. }
  141. func (x *MultiUserServerConfig) GetNetwork() []net.Network {
  142. if x != nil {
  143. return x.Network
  144. }
  145. return nil
  146. }
  147. type RelayDestination struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  152. Address *net.IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
  153. Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
  154. Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
  155. Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
  156. }
  157. func (x *RelayDestination) Reset() {
  158. *x = RelayDestination{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *RelayDestination) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*RelayDestination) ProtoMessage() {}
  169. func (x *RelayDestination) ProtoReflect() protoreflect.Message {
  170. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use RelayDestination.ProtoReflect.Descriptor instead.
  181. func (*RelayDestination) Descriptor() ([]byte, []int) {
  182. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{2}
  183. }
  184. func (x *RelayDestination) GetKey() string {
  185. if x != nil {
  186. return x.Key
  187. }
  188. return ""
  189. }
  190. func (x *RelayDestination) GetAddress() *net.IPOrDomain {
  191. if x != nil {
  192. return x.Address
  193. }
  194. return nil
  195. }
  196. func (x *RelayDestination) GetPort() uint32 {
  197. if x != nil {
  198. return x.Port
  199. }
  200. return 0
  201. }
  202. func (x *RelayDestination) GetEmail() string {
  203. if x != nil {
  204. return x.Email
  205. }
  206. return ""
  207. }
  208. func (x *RelayDestination) GetLevel() int32 {
  209. if x != nil {
  210. return x.Level
  211. }
  212. return 0
  213. }
  214. type RelayServerConfig struct {
  215. state protoimpl.MessageState
  216. sizeCache protoimpl.SizeCache
  217. unknownFields protoimpl.UnknownFields
  218. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  219. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  220. Destinations []*RelayDestination `protobuf:"bytes,3,rep,name=destinations,proto3" json:"destinations,omitempty"`
  221. Network []net.Network `protobuf:"varint,4,rep,packed,name=network,proto3,enum=xray.common.net.Network" json:"network,omitempty"`
  222. }
  223. func (x *RelayServerConfig) Reset() {
  224. *x = RelayServerConfig{}
  225. if protoimpl.UnsafeEnabled {
  226. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
  227. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  228. ms.StoreMessageInfo(mi)
  229. }
  230. }
  231. func (x *RelayServerConfig) String() string {
  232. return protoimpl.X.MessageStringOf(x)
  233. }
  234. func (*RelayServerConfig) ProtoMessage() {}
  235. func (x *RelayServerConfig) ProtoReflect() protoreflect.Message {
  236. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
  237. if protoimpl.UnsafeEnabled && x != nil {
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. if ms.LoadMessageInfo() == nil {
  240. ms.StoreMessageInfo(mi)
  241. }
  242. return ms
  243. }
  244. return mi.MessageOf(x)
  245. }
  246. // Deprecated: Use RelayServerConfig.ProtoReflect.Descriptor instead.
  247. func (*RelayServerConfig) Descriptor() ([]byte, []int) {
  248. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{3}
  249. }
  250. func (x *RelayServerConfig) GetMethod() string {
  251. if x != nil {
  252. return x.Method
  253. }
  254. return ""
  255. }
  256. func (x *RelayServerConfig) GetKey() string {
  257. if x != nil {
  258. return x.Key
  259. }
  260. return ""
  261. }
  262. func (x *RelayServerConfig) GetDestinations() []*RelayDestination {
  263. if x != nil {
  264. return x.Destinations
  265. }
  266. return nil
  267. }
  268. func (x *RelayServerConfig) GetNetwork() []net.Network {
  269. if x != nil {
  270. return x.Network
  271. }
  272. return nil
  273. }
  274. type User struct {
  275. state protoimpl.MessageState
  276. sizeCache protoimpl.SizeCache
  277. unknownFields protoimpl.UnknownFields
  278. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  279. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
  280. Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
  281. }
  282. func (x *User) Reset() {
  283. *x = User{}
  284. if protoimpl.UnsafeEnabled {
  285. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[4]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. }
  290. func (x *User) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*User) ProtoMessage() {}
  294. func (x *User) ProtoReflect() protoreflect.Message {
  295. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[4]
  296. if protoimpl.UnsafeEnabled && x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  306. func (*User) Descriptor() ([]byte, []int) {
  307. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{4}
  308. }
  309. func (x *User) GetKey() string {
  310. if x != nil {
  311. return x.Key
  312. }
  313. return ""
  314. }
  315. func (x *User) GetEmail() string {
  316. if x != nil {
  317. return x.Email
  318. }
  319. return ""
  320. }
  321. func (x *User) GetLevel() int32 {
  322. if x != nil {
  323. return x.Level
  324. }
  325. return 0
  326. }
  327. type ClientConfig struct {
  328. state protoimpl.MessageState
  329. sizeCache protoimpl.SizeCache
  330. unknownFields protoimpl.UnknownFields
  331. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  332. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  333. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
  334. Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
  335. UdpOverTcp bool `protobuf:"varint,5,opt,name=udp_over_tcp,json=udpOverTcp,proto3" json:"udp_over_tcp,omitempty"`
  336. }
  337. func (x *ClientConfig) Reset() {
  338. *x = ClientConfig{}
  339. if protoimpl.UnsafeEnabled {
  340. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[5]
  341. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  342. ms.StoreMessageInfo(mi)
  343. }
  344. }
  345. func (x *ClientConfig) String() string {
  346. return protoimpl.X.MessageStringOf(x)
  347. }
  348. func (*ClientConfig) ProtoMessage() {}
  349. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  350. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[5]
  351. if protoimpl.UnsafeEnabled && x != nil {
  352. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  353. if ms.LoadMessageInfo() == nil {
  354. ms.StoreMessageInfo(mi)
  355. }
  356. return ms
  357. }
  358. return mi.MessageOf(x)
  359. }
  360. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  361. func (*ClientConfig) Descriptor() ([]byte, []int) {
  362. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{5}
  363. }
  364. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  365. if x != nil {
  366. return x.Address
  367. }
  368. return nil
  369. }
  370. func (x *ClientConfig) GetPort() uint32 {
  371. if x != nil {
  372. return x.Port
  373. }
  374. return 0
  375. }
  376. func (x *ClientConfig) GetMethod() string {
  377. if x != nil {
  378. return x.Method
  379. }
  380. return ""
  381. }
  382. func (x *ClientConfig) GetKey() string {
  383. if x != nil {
  384. return x.Key
  385. }
  386. return ""
  387. }
  388. func (x *ClientConfig) GetUdpOverTcp() bool {
  389. if x != nil {
  390. return x.UdpOverTcp
  391. }
  392. return false
  393. }
  394. var File_proxy_shadowsocks_2022_config_proto protoreflect.FileDescriptor
  395. var file_proxy_shadowsocks_2022_config_proto_rawDesc = []byte{
  396. 0x0a, 0x23, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  397. 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  398. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  399. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30,
  400. 0x32, 0x32, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  401. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f,
  402. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  403. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
  404. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  405. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
  406. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  407. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  408. 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  409. 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x32, 0x0a,
  410. 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18,
  411. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  412. 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  413. 0x6b, 0x22, 0xae, 0x01, 0x0a, 0x15, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x55, 0x73, 0x65, 0x72, 0x53,
  414. 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d,
  415. 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74,
  416. 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  417. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03,
  418. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  419. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30,
  420. 0x32, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x32,
  421. 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32,
  422. 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  423. 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  424. 0x72, 0x6b, 0x22, 0x9b, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x44, 0x65, 0x73, 0x74,
  425. 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
  426. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64,
  427. 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61,
  428. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f,
  429. 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  430. 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04,
  431. 0x70, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20,
  432. 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
  433. 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  434. 0x22, 0xc4, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  435. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
  436. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10,
  437. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  438. 0x12, 0x51, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  439. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72,
  440. 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f,
  441. 0x32, 0x30, 0x32, 0x32, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e,
  442. 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69,
  443. 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04,
  444. 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  445. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07,
  446. 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x44, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12,
  447. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  448. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  449. 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  450. 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xa5, 0x01,
  451. 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35,
  452. 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  453. 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  454. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  455. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
  456. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
  457. 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  458. 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  459. 0x6b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x64, 0x70, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x5f,
  460. 0x74, 0x63, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x4f, 0x76,
  461. 0x65, 0x72, 0x54, 0x63, 0x70, 0x42, 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61,
  462. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  463. 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68,
  464. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
  465. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64,
  466. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0xaa, 0x02, 0x1a, 0x58,
  467. 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77,
  468. 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  469. 0x33,
  470. }
  471. var (
  472. file_proxy_shadowsocks_2022_config_proto_rawDescOnce sync.Once
  473. file_proxy_shadowsocks_2022_config_proto_rawDescData = file_proxy_shadowsocks_2022_config_proto_rawDesc
  474. )
  475. func file_proxy_shadowsocks_2022_config_proto_rawDescGZIP() []byte {
  476. file_proxy_shadowsocks_2022_config_proto_rawDescOnce.Do(func() {
  477. file_proxy_shadowsocks_2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_2022_config_proto_rawDescData)
  478. })
  479. return file_proxy_shadowsocks_2022_config_proto_rawDescData
  480. }
  481. var file_proxy_shadowsocks_2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  482. var file_proxy_shadowsocks_2022_config_proto_goTypes = []interface{}{
  483. (*ServerConfig)(nil), // 0: xray.proxy.shadowsocks_2022.ServerConfig
  484. (*MultiUserServerConfig)(nil), // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig
  485. (*RelayDestination)(nil), // 2: xray.proxy.shadowsocks_2022.RelayDestination
  486. (*RelayServerConfig)(nil), // 3: xray.proxy.shadowsocks_2022.RelayServerConfig
  487. (*User)(nil), // 4: xray.proxy.shadowsocks_2022.User
  488. (*ClientConfig)(nil), // 5: xray.proxy.shadowsocks_2022.ClientConfig
  489. (net.Network)(0), // 6: xray.common.net.Network
  490. (*net.IPOrDomain)(nil), // 7: xray.common.net.IPOrDomain
  491. }
  492. var file_proxy_shadowsocks_2022_config_proto_depIdxs = []int32{
  493. 6, // 0: xray.proxy.shadowsocks_2022.ServerConfig.network:type_name -> xray.common.net.Network
  494. 4, // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig.users:type_name -> xray.proxy.shadowsocks_2022.User
  495. 6, // 2: xray.proxy.shadowsocks_2022.MultiUserServerConfig.network:type_name -> xray.common.net.Network
  496. 7, // 3: xray.proxy.shadowsocks_2022.RelayDestination.address:type_name -> xray.common.net.IPOrDomain
  497. 2, // 4: xray.proxy.shadowsocks_2022.RelayServerConfig.destinations:type_name -> xray.proxy.shadowsocks_2022.RelayDestination
  498. 6, // 5: xray.proxy.shadowsocks_2022.RelayServerConfig.network:type_name -> xray.common.net.Network
  499. 7, // 6: xray.proxy.shadowsocks_2022.ClientConfig.address:type_name -> xray.common.net.IPOrDomain
  500. 7, // [7:7] is the sub-list for method output_type
  501. 7, // [7:7] is the sub-list for method input_type
  502. 7, // [7:7] is the sub-list for extension type_name
  503. 7, // [7:7] is the sub-list for extension extendee
  504. 0, // [0:7] is the sub-list for field type_name
  505. }
  506. func init() { file_proxy_shadowsocks_2022_config_proto_init() }
  507. func file_proxy_shadowsocks_2022_config_proto_init() {
  508. if File_proxy_shadowsocks_2022_config_proto != nil {
  509. return
  510. }
  511. if !protoimpl.UnsafeEnabled {
  512. file_proxy_shadowsocks_2022_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  513. switch v := v.(*ServerConfig); i {
  514. case 0:
  515. return &v.state
  516. case 1:
  517. return &v.sizeCache
  518. case 2:
  519. return &v.unknownFields
  520. default:
  521. return nil
  522. }
  523. }
  524. file_proxy_shadowsocks_2022_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  525. switch v := v.(*MultiUserServerConfig); i {
  526. case 0:
  527. return &v.state
  528. case 1:
  529. return &v.sizeCache
  530. case 2:
  531. return &v.unknownFields
  532. default:
  533. return nil
  534. }
  535. }
  536. file_proxy_shadowsocks_2022_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  537. switch v := v.(*RelayDestination); i {
  538. case 0:
  539. return &v.state
  540. case 1:
  541. return &v.sizeCache
  542. case 2:
  543. return &v.unknownFields
  544. default:
  545. return nil
  546. }
  547. }
  548. file_proxy_shadowsocks_2022_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  549. switch v := v.(*RelayServerConfig); i {
  550. case 0:
  551. return &v.state
  552. case 1:
  553. return &v.sizeCache
  554. case 2:
  555. return &v.unknownFields
  556. default:
  557. return nil
  558. }
  559. }
  560. file_proxy_shadowsocks_2022_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  561. switch v := v.(*User); i {
  562. case 0:
  563. return &v.state
  564. case 1:
  565. return &v.sizeCache
  566. case 2:
  567. return &v.unknownFields
  568. default:
  569. return nil
  570. }
  571. }
  572. file_proxy_shadowsocks_2022_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  573. switch v := v.(*ClientConfig); i {
  574. case 0:
  575. return &v.state
  576. case 1:
  577. return &v.sizeCache
  578. case 2:
  579. return &v.unknownFields
  580. default:
  581. return nil
  582. }
  583. }
  584. }
  585. type x struct{}
  586. out := protoimpl.TypeBuilder{
  587. File: protoimpl.DescBuilder{
  588. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  589. RawDescriptor: file_proxy_shadowsocks_2022_config_proto_rawDesc,
  590. NumEnums: 0,
  591. NumMessages: 6,
  592. NumExtensions: 0,
  593. NumServices: 0,
  594. },
  595. GoTypes: file_proxy_shadowsocks_2022_config_proto_goTypes,
  596. DependencyIndexes: file_proxy_shadowsocks_2022_config_proto_depIdxs,
  597. MessageInfos: file_proxy_shadowsocks_2022_config_proto_msgTypes,
  598. }.Build()
  599. File_proxy_shadowsocks_2022_config_proto = out.File
  600. file_proxy_shadowsocks_2022_config_proto_rawDesc = nil
  601. file_proxy_shadowsocks_2022_config_proto_goTypes = nil
  602. file_proxy_shadowsocks_2022_config_proto_depIdxs = nil
  603. }