config.pb.go 19 KB

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