config.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  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/socks/config.proto
  6. package socks
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. protocol "github.com/xtls/xray-core/common/protocol"
  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. // AuthType is the authentication type of Socks proxy.
  22. type AuthType int32
  23. const (
  24. // NO_AUTH is for anounymous authentication.
  25. AuthType_NO_AUTH AuthType = 0
  26. // PASSWORD is for username/password authentication.
  27. AuthType_PASSWORD AuthType = 1
  28. )
  29. // Enum value maps for AuthType.
  30. var (
  31. AuthType_name = map[int32]string{
  32. 0: "NO_AUTH",
  33. 1: "PASSWORD",
  34. }
  35. AuthType_value = map[string]int32{
  36. "NO_AUTH": 0,
  37. "PASSWORD": 1,
  38. }
  39. )
  40. func (x AuthType) Enum() *AuthType {
  41. p := new(AuthType)
  42. *p = x
  43. return p
  44. }
  45. func (x AuthType) String() string {
  46. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  47. }
  48. func (AuthType) Descriptor() protoreflect.EnumDescriptor {
  49. return file_proxy_socks_config_proto_enumTypes[0].Descriptor()
  50. }
  51. func (AuthType) Type() protoreflect.EnumType {
  52. return &file_proxy_socks_config_proto_enumTypes[0]
  53. }
  54. func (x AuthType) Number() protoreflect.EnumNumber {
  55. return protoreflect.EnumNumber(x)
  56. }
  57. // Deprecated: Use AuthType.Descriptor instead.
  58. func (AuthType) EnumDescriptor() ([]byte, []int) {
  59. return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. type Version int32
  62. const (
  63. Version_SOCKS5 Version = 0
  64. Version_SOCKS4 Version = 1
  65. Version_SOCKS4A Version = 2
  66. )
  67. // Enum value maps for Version.
  68. var (
  69. Version_name = map[int32]string{
  70. 0: "SOCKS5",
  71. 1: "SOCKS4",
  72. 2: "SOCKS4A",
  73. }
  74. Version_value = map[string]int32{
  75. "SOCKS5": 0,
  76. "SOCKS4": 1,
  77. "SOCKS4A": 2,
  78. }
  79. )
  80. func (x Version) Enum() *Version {
  81. p := new(Version)
  82. *p = x
  83. return p
  84. }
  85. func (x Version) String() string {
  86. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  87. }
  88. func (Version) Descriptor() protoreflect.EnumDescriptor {
  89. return file_proxy_socks_config_proto_enumTypes[1].Descriptor()
  90. }
  91. func (Version) Type() protoreflect.EnumType {
  92. return &file_proxy_socks_config_proto_enumTypes[1]
  93. }
  94. func (x Version) Number() protoreflect.EnumNumber {
  95. return protoreflect.EnumNumber(x)
  96. }
  97. // Deprecated: Use Version.Descriptor instead.
  98. func (Version) EnumDescriptor() ([]byte, []int) {
  99. return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
  100. }
  101. // Account represents a Socks account.
  102. type Account struct {
  103. state protoimpl.MessageState
  104. sizeCache protoimpl.SizeCache
  105. unknownFields protoimpl.UnknownFields
  106. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  107. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  108. }
  109. func (x *Account) Reset() {
  110. *x = Account{}
  111. if protoimpl.UnsafeEnabled {
  112. mi := &file_proxy_socks_config_proto_msgTypes[0]
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. ms.StoreMessageInfo(mi)
  115. }
  116. }
  117. func (x *Account) String() string {
  118. return protoimpl.X.MessageStringOf(x)
  119. }
  120. func (*Account) ProtoMessage() {}
  121. func (x *Account) ProtoReflect() protoreflect.Message {
  122. mi := &file_proxy_socks_config_proto_msgTypes[0]
  123. if protoimpl.UnsafeEnabled && x != nil {
  124. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  125. if ms.LoadMessageInfo() == nil {
  126. ms.StoreMessageInfo(mi)
  127. }
  128. return ms
  129. }
  130. return mi.MessageOf(x)
  131. }
  132. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  133. func (*Account) Descriptor() ([]byte, []int) {
  134. return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
  135. }
  136. func (x *Account) GetUsername() string {
  137. if x != nil {
  138. return x.Username
  139. }
  140. return ""
  141. }
  142. func (x *Account) GetPassword() string {
  143. if x != nil {
  144. return x.Password
  145. }
  146. return ""
  147. }
  148. // ServerConfig is the protobuf config for Socks server.
  149. type ServerConfig struct {
  150. state protoimpl.MessageState
  151. sizeCache protoimpl.SizeCache
  152. unknownFields protoimpl.UnknownFields
  153. AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=xray.proxy.socks.AuthType" json:"auth_type,omitempty"`
  154. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  155. Address *net.IPOrDomain `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
  156. UdpEnabled bool `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
  157. // Deprecated: Do not use.
  158. Timeout uint32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
  159. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  160. }
  161. func (x *ServerConfig) Reset() {
  162. *x = ServerConfig{}
  163. if protoimpl.UnsafeEnabled {
  164. mi := &file_proxy_socks_config_proto_msgTypes[1]
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. ms.StoreMessageInfo(mi)
  167. }
  168. }
  169. func (x *ServerConfig) String() string {
  170. return protoimpl.X.MessageStringOf(x)
  171. }
  172. func (*ServerConfig) ProtoMessage() {}
  173. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  174. mi := &file_proxy_socks_config_proto_msgTypes[1]
  175. if protoimpl.UnsafeEnabled && x != nil {
  176. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  177. if ms.LoadMessageInfo() == nil {
  178. ms.StoreMessageInfo(mi)
  179. }
  180. return ms
  181. }
  182. return mi.MessageOf(x)
  183. }
  184. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  185. func (*ServerConfig) Descriptor() ([]byte, []int) {
  186. return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
  187. }
  188. func (x *ServerConfig) GetAuthType() AuthType {
  189. if x != nil {
  190. return x.AuthType
  191. }
  192. return AuthType_NO_AUTH
  193. }
  194. func (x *ServerConfig) GetAccounts() map[string]string {
  195. if x != nil {
  196. return x.Accounts
  197. }
  198. return nil
  199. }
  200. func (x *ServerConfig) GetAddress() *net.IPOrDomain {
  201. if x != nil {
  202. return x.Address
  203. }
  204. return nil
  205. }
  206. func (x *ServerConfig) GetUdpEnabled() bool {
  207. if x != nil {
  208. return x.UdpEnabled
  209. }
  210. return false
  211. }
  212. // Deprecated: Do not use.
  213. func (x *ServerConfig) GetTimeout() uint32 {
  214. if x != nil {
  215. return x.Timeout
  216. }
  217. return 0
  218. }
  219. func (x *ServerConfig) GetUserLevel() uint32 {
  220. if x != nil {
  221. return x.UserLevel
  222. }
  223. return 0
  224. }
  225. // ClientConfig is the protobuf config for Socks client.
  226. type ClientConfig struct {
  227. state protoimpl.MessageState
  228. sizeCache protoimpl.SizeCache
  229. unknownFields protoimpl.UnknownFields
  230. // Sever is a list of Socks server addresses.
  231. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  232. Version Version `protobuf:"varint,2,opt,name=version,proto3,enum=xray.proxy.socks.Version" json:"version,omitempty"`
  233. }
  234. func (x *ClientConfig) Reset() {
  235. *x = ClientConfig{}
  236. if protoimpl.UnsafeEnabled {
  237. mi := &file_proxy_socks_config_proto_msgTypes[2]
  238. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  239. ms.StoreMessageInfo(mi)
  240. }
  241. }
  242. func (x *ClientConfig) String() string {
  243. return protoimpl.X.MessageStringOf(x)
  244. }
  245. func (*ClientConfig) ProtoMessage() {}
  246. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  247. mi := &file_proxy_socks_config_proto_msgTypes[2]
  248. if protoimpl.UnsafeEnabled && x != nil {
  249. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  250. if ms.LoadMessageInfo() == nil {
  251. ms.StoreMessageInfo(mi)
  252. }
  253. return ms
  254. }
  255. return mi.MessageOf(x)
  256. }
  257. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  258. func (*ClientConfig) Descriptor() ([]byte, []int) {
  259. return file_proxy_socks_config_proto_rawDescGZIP(), []int{2}
  260. }
  261. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  262. if x != nil {
  263. return x.Server
  264. }
  265. return nil
  266. }
  267. func (x *ClientConfig) GetVersion() Version {
  268. if x != nil {
  269. return x.Version
  270. }
  271. return Version_SOCKS5
  272. }
  273. var File_proxy_socks_config_proto protoreflect.FileDescriptor
  274. var file_proxy_socks_config_proto_rawDesc = []byte{
  275. 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f,
  276. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61, 0x79,
  277. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x18, 0x63, 0x6f,
  278. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  279. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70,
  280. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73,
  281. 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x07, 0x41, 0x63, 0x63,
  282. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
  283. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
  284. 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01,
  285. 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xe3, 0x02, 0x0a,
  286. 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a,
  287. 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  288. 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f,
  289. 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75,
  290. 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  291. 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  292. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76,
  293. 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  294. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
  295. 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
  296. 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  297. 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07,
  298. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65,
  299. 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64,
  300. 0x70, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65,
  301. 0x6f, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74,
  302. 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c,
  303. 0x65, 0x76, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72,
  304. 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  305. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  306. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  307. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  308. 0x38, 0x01, 0x22, 0x81, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
  309. 0x66, 0x69, 0x67, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20,
  310. 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  311. 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65,
  312. 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65,
  313. 0x72, 0x12, 0x33, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
  314. 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  315. 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76,
  316. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x25, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79,
  317. 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12,
  318. 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x2a, 0x2e, 0x0a,
  319. 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b,
  320. 0x53, 0x35, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x10, 0x01,
  321. 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x41, 0x10, 0x02, 0x42, 0x52, 0x0a,
  322. 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  323. 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  324. 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  325. 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02,
  326. 0x10, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x6f, 0x63, 0x6b,
  327. 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  328. }
  329. var (
  330. file_proxy_socks_config_proto_rawDescOnce sync.Once
  331. file_proxy_socks_config_proto_rawDescData = file_proxy_socks_config_proto_rawDesc
  332. )
  333. func file_proxy_socks_config_proto_rawDescGZIP() []byte {
  334. file_proxy_socks_config_proto_rawDescOnce.Do(func() {
  335. file_proxy_socks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_config_proto_rawDescData)
  336. })
  337. return file_proxy_socks_config_proto_rawDescData
  338. }
  339. var file_proxy_socks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  340. var file_proxy_socks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  341. var file_proxy_socks_config_proto_goTypes = []interface{}{
  342. (AuthType)(0), // 0: xray.proxy.socks.AuthType
  343. (Version)(0), // 1: xray.proxy.socks.Version
  344. (*Account)(nil), // 2: xray.proxy.socks.Account
  345. (*ServerConfig)(nil), // 3: xray.proxy.socks.ServerConfig
  346. (*ClientConfig)(nil), // 4: xray.proxy.socks.ClientConfig
  347. nil, // 5: xray.proxy.socks.ServerConfig.AccountsEntry
  348. (*net.IPOrDomain)(nil), // 6: xray.common.net.IPOrDomain
  349. (*protocol.ServerEndpoint)(nil), // 7: xray.common.protocol.ServerEndpoint
  350. }
  351. var file_proxy_socks_config_proto_depIdxs = []int32{
  352. 0, // 0: xray.proxy.socks.ServerConfig.auth_type:type_name -> xray.proxy.socks.AuthType
  353. 5, // 1: xray.proxy.socks.ServerConfig.accounts:type_name -> xray.proxy.socks.ServerConfig.AccountsEntry
  354. 6, // 2: xray.proxy.socks.ServerConfig.address:type_name -> xray.common.net.IPOrDomain
  355. 7, // 3: xray.proxy.socks.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
  356. 1, // 4: xray.proxy.socks.ClientConfig.version:type_name -> xray.proxy.socks.Version
  357. 5, // [5:5] is the sub-list for method output_type
  358. 5, // [5:5] is the sub-list for method input_type
  359. 5, // [5:5] is the sub-list for extension type_name
  360. 5, // [5:5] is the sub-list for extension extendee
  361. 0, // [0:5] is the sub-list for field type_name
  362. }
  363. func init() { file_proxy_socks_config_proto_init() }
  364. func file_proxy_socks_config_proto_init() {
  365. if File_proxy_socks_config_proto != nil {
  366. return
  367. }
  368. if !protoimpl.UnsafeEnabled {
  369. file_proxy_socks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  370. switch v := v.(*Account); i {
  371. case 0:
  372. return &v.state
  373. case 1:
  374. return &v.sizeCache
  375. case 2:
  376. return &v.unknownFields
  377. default:
  378. return nil
  379. }
  380. }
  381. file_proxy_socks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  382. switch v := v.(*ServerConfig); i {
  383. case 0:
  384. return &v.state
  385. case 1:
  386. return &v.sizeCache
  387. case 2:
  388. return &v.unknownFields
  389. default:
  390. return nil
  391. }
  392. }
  393. file_proxy_socks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  394. switch v := v.(*ClientConfig); i {
  395. case 0:
  396. return &v.state
  397. case 1:
  398. return &v.sizeCache
  399. case 2:
  400. return &v.unknownFields
  401. default:
  402. return nil
  403. }
  404. }
  405. }
  406. type x struct{}
  407. out := protoimpl.TypeBuilder{
  408. File: protoimpl.DescBuilder{
  409. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  410. RawDescriptor: file_proxy_socks_config_proto_rawDesc,
  411. NumEnums: 2,
  412. NumMessages: 4,
  413. NumExtensions: 0,
  414. NumServices: 0,
  415. },
  416. GoTypes: file_proxy_socks_config_proto_goTypes,
  417. DependencyIndexes: file_proxy_socks_config_proto_depIdxs,
  418. EnumInfos: file_proxy_socks_config_proto_enumTypes,
  419. MessageInfos: file_proxy_socks_config_proto_msgTypes,
  420. }.Build()
  421. File_proxy_socks_config_proto = out.File
  422. file_proxy_socks_config_proto_rawDesc = nil
  423. file_proxy_socks_config_proto_goTypes = nil
  424. file_proxy_socks_config_proto_depIdxs = nil
  425. }