config.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc v3.20.1
  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 User 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. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
  153. Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
  154. }
  155. func (x *User) Reset() {
  156. *x = User{}
  157. if protoimpl.UnsafeEnabled {
  158. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. }
  163. func (x *User) String() string {
  164. return protoimpl.X.MessageStringOf(x)
  165. }
  166. func (*User) ProtoMessage() {}
  167. func (x *User) ProtoReflect() protoreflect.Message {
  168. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[2]
  169. if protoimpl.UnsafeEnabled && x != nil {
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. if ms.LoadMessageInfo() == nil {
  172. ms.StoreMessageInfo(mi)
  173. }
  174. return ms
  175. }
  176. return mi.MessageOf(x)
  177. }
  178. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  179. func (*User) Descriptor() ([]byte, []int) {
  180. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{2}
  181. }
  182. func (x *User) GetKey() string {
  183. if x != nil {
  184. return x.Key
  185. }
  186. return ""
  187. }
  188. func (x *User) GetEmail() string {
  189. if x != nil {
  190. return x.Email
  191. }
  192. return ""
  193. }
  194. func (x *User) GetLevel() int32 {
  195. if x != nil {
  196. return x.Level
  197. }
  198. return 0
  199. }
  200. type ClientConfig struct {
  201. state protoimpl.MessageState
  202. sizeCache protoimpl.SizeCache
  203. unknownFields protoimpl.UnknownFields
  204. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  205. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  206. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
  207. Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
  208. ReducedIvHeadEntropy bool `protobuf:"varint,5,opt,name=reduced_iv_head_entropy,json=reducedIvHeadEntropy,proto3" json:"reduced_iv_head_entropy,omitempty"`
  209. }
  210. func (x *ClientConfig) Reset() {
  211. *x = ClientConfig{}
  212. if protoimpl.UnsafeEnabled {
  213. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. ms.StoreMessageInfo(mi)
  216. }
  217. }
  218. func (x *ClientConfig) String() string {
  219. return protoimpl.X.MessageStringOf(x)
  220. }
  221. func (*ClientConfig) ProtoMessage() {}
  222. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  223. mi := &file_proxy_shadowsocks_2022_config_proto_msgTypes[3]
  224. if protoimpl.UnsafeEnabled && x != nil {
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. if ms.LoadMessageInfo() == nil {
  227. ms.StoreMessageInfo(mi)
  228. }
  229. return ms
  230. }
  231. return mi.MessageOf(x)
  232. }
  233. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  234. func (*ClientConfig) Descriptor() ([]byte, []int) {
  235. return file_proxy_shadowsocks_2022_config_proto_rawDescGZIP(), []int{3}
  236. }
  237. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  238. if x != nil {
  239. return x.Address
  240. }
  241. return nil
  242. }
  243. func (x *ClientConfig) GetPort() uint32 {
  244. if x != nil {
  245. return x.Port
  246. }
  247. return 0
  248. }
  249. func (x *ClientConfig) GetMethod() string {
  250. if x != nil {
  251. return x.Method
  252. }
  253. return ""
  254. }
  255. func (x *ClientConfig) GetKey() string {
  256. if x != nil {
  257. return x.Key
  258. }
  259. return ""
  260. }
  261. func (x *ClientConfig) GetReducedIvHeadEntropy() bool {
  262. if x != nil {
  263. return x.ReducedIvHeadEntropy
  264. }
  265. return false
  266. }
  267. var File_proxy_shadowsocks_2022_config_proto protoreflect.FileDescriptor
  268. var file_proxy_shadowsocks_2022_config_proto_rawDesc = []byte{
  269. 0x0a, 0x23, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  270. 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  271. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  272. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30,
  273. 0x32, 0x32, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  274. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f,
  275. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  276. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
  277. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  278. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
  279. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  280. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  281. 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  282. 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x32, 0x0a,
  283. 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18,
  284. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  285. 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  286. 0x6b, 0x22, 0xae, 0x01, 0x0a, 0x15, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x55, 0x73, 0x65, 0x72, 0x53,
  287. 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d,
  288. 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74,
  289. 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  290. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03,
  291. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  292. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30,
  293. 0x32, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x32,
  294. 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32,
  295. 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  296. 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  297. 0x72, 0x6b, 0x22, 0x44, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  298. 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
  299. 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61,
  300. 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  301. 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xba, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69,
  302. 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64,
  303. 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61,
  304. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f,
  305. 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  306. 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04,
  307. 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03,
  308. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03,
  309. 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35,
  310. 0x0a, 0x17, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x5f, 0x69, 0x76, 0x5f, 0x68, 0x65, 0x61,
  311. 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
  312. 0x14, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x49, 0x76, 0x48, 0x65, 0x61, 0x64, 0x45, 0x6e,
  313. 0x74, 0x72, 0x6f, 0x70, 0x79, 0x42, 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61,
  314. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  315. 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68,
  316. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
  317. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64,
  318. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x32, 0x30, 0x32, 0x32, 0xaa, 0x02, 0x1a, 0x58,
  319. 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77,
  320. 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  321. 0x33,
  322. }
  323. var (
  324. file_proxy_shadowsocks_2022_config_proto_rawDescOnce sync.Once
  325. file_proxy_shadowsocks_2022_config_proto_rawDescData = file_proxy_shadowsocks_2022_config_proto_rawDesc
  326. )
  327. func file_proxy_shadowsocks_2022_config_proto_rawDescGZIP() []byte {
  328. file_proxy_shadowsocks_2022_config_proto_rawDescOnce.Do(func() {
  329. file_proxy_shadowsocks_2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_2022_config_proto_rawDescData)
  330. })
  331. return file_proxy_shadowsocks_2022_config_proto_rawDescData
  332. }
  333. var file_proxy_shadowsocks_2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  334. var file_proxy_shadowsocks_2022_config_proto_goTypes = []interface{}{
  335. (*ServerConfig)(nil), // 0: xray.proxy.shadowsocks_2022.ServerConfig
  336. (*MultiUserServerConfig)(nil), // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig
  337. (*User)(nil), // 2: xray.proxy.shadowsocks_2022.User
  338. (*ClientConfig)(nil), // 3: xray.proxy.shadowsocks_2022.ClientConfig
  339. (net.Network)(0), // 4: xray.common.net.Network
  340. (*net.IPOrDomain)(nil), // 5: xray.common.net.IPOrDomain
  341. }
  342. var file_proxy_shadowsocks_2022_config_proto_depIdxs = []int32{
  343. 4, // 0: xray.proxy.shadowsocks_2022.ServerConfig.network:type_name -> xray.common.net.Network
  344. 2, // 1: xray.proxy.shadowsocks_2022.MultiUserServerConfig.users:type_name -> xray.proxy.shadowsocks_2022.User
  345. 4, // 2: xray.proxy.shadowsocks_2022.MultiUserServerConfig.network:type_name -> xray.common.net.Network
  346. 5, // 3: xray.proxy.shadowsocks_2022.ClientConfig.address:type_name -> xray.common.net.IPOrDomain
  347. 4, // [4:4] is the sub-list for method output_type
  348. 4, // [4:4] is the sub-list for method input_type
  349. 4, // [4:4] is the sub-list for extension type_name
  350. 4, // [4:4] is the sub-list for extension extendee
  351. 0, // [0:4] is the sub-list for field type_name
  352. }
  353. func init() { file_proxy_shadowsocks_2022_config_proto_init() }
  354. func file_proxy_shadowsocks_2022_config_proto_init() {
  355. if File_proxy_shadowsocks_2022_config_proto != nil {
  356. return
  357. }
  358. if !protoimpl.UnsafeEnabled {
  359. file_proxy_shadowsocks_2022_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  360. switch v := v.(*ServerConfig); i {
  361. case 0:
  362. return &v.state
  363. case 1:
  364. return &v.sizeCache
  365. case 2:
  366. return &v.unknownFields
  367. default:
  368. return nil
  369. }
  370. }
  371. file_proxy_shadowsocks_2022_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  372. switch v := v.(*MultiUserServerConfig); i {
  373. case 0:
  374. return &v.state
  375. case 1:
  376. return &v.sizeCache
  377. case 2:
  378. return &v.unknownFields
  379. default:
  380. return nil
  381. }
  382. }
  383. file_proxy_shadowsocks_2022_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  384. switch v := v.(*User); i {
  385. case 0:
  386. return &v.state
  387. case 1:
  388. return &v.sizeCache
  389. case 2:
  390. return &v.unknownFields
  391. default:
  392. return nil
  393. }
  394. }
  395. file_proxy_shadowsocks_2022_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  396. switch v := v.(*ClientConfig); i {
  397. case 0:
  398. return &v.state
  399. case 1:
  400. return &v.sizeCache
  401. case 2:
  402. return &v.unknownFields
  403. default:
  404. return nil
  405. }
  406. }
  407. }
  408. type x struct{}
  409. out := protoimpl.TypeBuilder{
  410. File: protoimpl.DescBuilder{
  411. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  412. RawDescriptor: file_proxy_shadowsocks_2022_config_proto_rawDesc,
  413. NumEnums: 0,
  414. NumMessages: 4,
  415. NumExtensions: 0,
  416. NumServices: 0,
  417. },
  418. GoTypes: file_proxy_shadowsocks_2022_config_proto_goTypes,
  419. DependencyIndexes: file_proxy_shadowsocks_2022_config_proto_depIdxs,
  420. MessageInfos: file_proxy_shadowsocks_2022_config_proto_msgTypes,
  421. }.Build()
  422. File_proxy_shadowsocks_2022_config_proto = out.File
  423. file_proxy_shadowsocks_2022_config_proto_rawDesc = nil
  424. file_proxy_shadowsocks_2022_config_proto_goTypes = nil
  425. file_proxy_shadowsocks_2022_config_proto_depIdxs = nil
  426. }