config.pb.go 16 KB

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