config.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. package shadowsocks
  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. type CipherType int32
  21. const (
  22. CipherType_UNKNOWN CipherType = 0
  23. CipherType_AES_128_CFB CipherType = 1
  24. CipherType_AES_256_CFB CipherType = 2
  25. CipherType_CHACHA20 CipherType = 3
  26. CipherType_CHACHA20_IETF CipherType = 4
  27. CipherType_AES_128_GCM CipherType = 5
  28. CipherType_AES_256_GCM CipherType = 6
  29. CipherType_CHACHA20_POLY1305 CipherType = 7
  30. CipherType_NONE CipherType = 8
  31. )
  32. // Enum value maps for CipherType.
  33. var (
  34. CipherType_name = map[int32]string{
  35. 0: "UNKNOWN",
  36. 1: "AES_128_CFB",
  37. 2: "AES_256_CFB",
  38. 3: "CHACHA20",
  39. 4: "CHACHA20_IETF",
  40. 5: "AES_128_GCM",
  41. 6: "AES_256_GCM",
  42. 7: "CHACHA20_POLY1305",
  43. 8: "NONE",
  44. }
  45. CipherType_value = map[string]int32{
  46. "UNKNOWN": 0,
  47. "AES_128_CFB": 1,
  48. "AES_256_CFB": 2,
  49. "CHACHA20": 3,
  50. "CHACHA20_IETF": 4,
  51. "AES_128_GCM": 5,
  52. "AES_256_GCM": 6,
  53. "CHACHA20_POLY1305": 7,
  54. "NONE": 8,
  55. }
  56. )
  57. func (x CipherType) Enum() *CipherType {
  58. p := new(CipherType)
  59. *p = x
  60. return p
  61. }
  62. func (x CipherType) String() string {
  63. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  64. }
  65. func (CipherType) Descriptor() protoreflect.EnumDescriptor {
  66. return file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes[0].Descriptor()
  67. }
  68. func (CipherType) Type() protoreflect.EnumType {
  69. return &file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes[0]
  70. }
  71. func (x CipherType) Number() protoreflect.EnumNumber {
  72. return protoreflect.EnumNumber(x)
  73. }
  74. // Deprecated: Use CipherType.Descriptor instead.
  75. func (CipherType) EnumDescriptor() ([]byte, []int) {
  76. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
  77. }
  78. type Account_OneTimeAuth int32
  79. const (
  80. Account_Auto Account_OneTimeAuth = 0
  81. Account_Disabled Account_OneTimeAuth = 1
  82. Account_Enabled Account_OneTimeAuth = 2
  83. )
  84. // Enum value maps for Account_OneTimeAuth.
  85. var (
  86. Account_OneTimeAuth_name = map[int32]string{
  87. 0: "Auto",
  88. 1: "Disabled",
  89. 2: "Enabled",
  90. }
  91. Account_OneTimeAuth_value = map[string]int32{
  92. "Auto": 0,
  93. "Disabled": 1,
  94. "Enabled": 2,
  95. }
  96. )
  97. func (x Account_OneTimeAuth) Enum() *Account_OneTimeAuth {
  98. p := new(Account_OneTimeAuth)
  99. *p = x
  100. return p
  101. }
  102. func (x Account_OneTimeAuth) String() string {
  103. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  104. }
  105. func (Account_OneTimeAuth) Descriptor() protoreflect.EnumDescriptor {
  106. return file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes[1].Descriptor()
  107. }
  108. func (Account_OneTimeAuth) Type() protoreflect.EnumType {
  109. return &file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes[1]
  110. }
  111. func (x Account_OneTimeAuth) Number() protoreflect.EnumNumber {
  112. return protoreflect.EnumNumber(x)
  113. }
  114. // Deprecated: Use Account_OneTimeAuth.Descriptor instead.
  115. func (Account_OneTimeAuth) EnumDescriptor() ([]byte, []int) {
  116. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0, 0}
  117. }
  118. type Account struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
  123. CipherType CipherType `protobuf:"varint,2,opt,name=cipher_type,json=cipherType,proto3,enum=v2ray.core.proxy.shadowsocks.CipherType" json:"cipher_type,omitempty"`
  124. Ota Account_OneTimeAuth `protobuf:"varint,3,opt,name=ota,proto3,enum=v2ray.core.proxy.shadowsocks.Account_OneTimeAuth" json:"ota,omitempty"`
  125. }
  126. func (x *Account) Reset() {
  127. *x = Account{}
  128. if protoimpl.UnsafeEnabled {
  129. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[0]
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. ms.StoreMessageInfo(mi)
  132. }
  133. }
  134. func (x *Account) String() string {
  135. return protoimpl.X.MessageStringOf(x)
  136. }
  137. func (*Account) ProtoMessage() {}
  138. func (x *Account) ProtoReflect() protoreflect.Message {
  139. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[0]
  140. if protoimpl.UnsafeEnabled && x != nil {
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. if ms.LoadMessageInfo() == nil {
  143. ms.StoreMessageInfo(mi)
  144. }
  145. return ms
  146. }
  147. return mi.MessageOf(x)
  148. }
  149. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  150. func (*Account) Descriptor() ([]byte, []int) {
  151. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
  152. }
  153. func (x *Account) GetPassword() string {
  154. if x != nil {
  155. return x.Password
  156. }
  157. return ""
  158. }
  159. func (x *Account) GetCipherType() CipherType {
  160. if x != nil {
  161. return x.CipherType
  162. }
  163. return CipherType_UNKNOWN
  164. }
  165. func (x *Account) GetOta() Account_OneTimeAuth {
  166. if x != nil {
  167. return x.Ota
  168. }
  169. return Account_Auto
  170. }
  171. type ServerConfig struct {
  172. state protoimpl.MessageState
  173. sizeCache protoimpl.SizeCache
  174. unknownFields protoimpl.UnknownFields
  175. // UdpEnabled specified whether or not to enable UDP for Shadowsocks.
  176. // Deprecated. Use 'network' field.
  177. //
  178. // Deprecated: Do not use.
  179. UdpEnabled bool `protobuf:"varint,1,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
  180. User *protocol.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
  181. Network []net.Network `protobuf:"varint,3,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  182. }
  183. func (x *ServerConfig) Reset() {
  184. *x = ServerConfig{}
  185. if protoimpl.UnsafeEnabled {
  186. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[1]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. }
  191. func (x *ServerConfig) String() string {
  192. return protoimpl.X.MessageStringOf(x)
  193. }
  194. func (*ServerConfig) ProtoMessage() {}
  195. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  196. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[1]
  197. if protoimpl.UnsafeEnabled && x != nil {
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. if ms.LoadMessageInfo() == nil {
  200. ms.StoreMessageInfo(mi)
  201. }
  202. return ms
  203. }
  204. return mi.MessageOf(x)
  205. }
  206. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  207. func (*ServerConfig) Descriptor() ([]byte, []int) {
  208. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{1}
  209. }
  210. // Deprecated: Do not use.
  211. func (x *ServerConfig) GetUdpEnabled() bool {
  212. if x != nil {
  213. return x.UdpEnabled
  214. }
  215. return false
  216. }
  217. func (x *ServerConfig) GetUser() *protocol.User {
  218. if x != nil {
  219. return x.User
  220. }
  221. return nil
  222. }
  223. func (x *ServerConfig) GetNetwork() []net.Network {
  224. if x != nil {
  225. return x.Network
  226. }
  227. return nil
  228. }
  229. type ClientConfig struct {
  230. state protoimpl.MessageState
  231. sizeCache protoimpl.SizeCache
  232. unknownFields protoimpl.UnknownFields
  233. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  234. }
  235. func (x *ClientConfig) Reset() {
  236. *x = ClientConfig{}
  237. if protoimpl.UnsafeEnabled {
  238. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[2]
  239. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  240. ms.StoreMessageInfo(mi)
  241. }
  242. }
  243. func (x *ClientConfig) String() string {
  244. return protoimpl.X.MessageStringOf(x)
  245. }
  246. func (*ClientConfig) ProtoMessage() {}
  247. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  248. mi := &file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[2]
  249. if protoimpl.UnsafeEnabled && x != nil {
  250. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  251. if ms.LoadMessageInfo() == nil {
  252. ms.StoreMessageInfo(mi)
  253. }
  254. return ms
  255. }
  256. return mi.MessageOf(x)
  257. }
  258. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  259. func (*ClientConfig) Descriptor() ([]byte, []int) {
  260. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{2}
  261. }
  262. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  263. if x != nil {
  264. return x.Server
  265. }
  266. return nil
  267. }
  268. var File_v2ray_com_core_proxy_shadowsocks_config_proto protoreflect.FileDescriptor
  269. var file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDesc = []byte{
  270. 0x0a, 0x2d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  271. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
  272. 0x6b, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  273. 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  274. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x27, 0x76,
  275. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f,
  276. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  277. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  278. 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72,
  279. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  280. 0x6f, 0x1a, 0x30, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72,
  281. 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  282. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  283. 0x6f, 0x74, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  284. 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  285. 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x63,
  286. 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
  287. 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  288. 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e,
  289. 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68,
  290. 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x03, 0x6f, 0x74, 0x61, 0x18, 0x03, 0x20,
  291. 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  292. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
  293. 0x6b, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x4f, 0x6e, 0x65, 0x54, 0x69,
  294. 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x52, 0x03, 0x6f, 0x74, 0x61, 0x22, 0x32, 0x0a, 0x0b, 0x4f,
  295. 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x41, 0x75, 0x74, 0x68, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x75,
  296. 0x74, 0x6f, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64,
  297. 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x02, 0x22,
  298. 0xa3, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  299. 0x12, 0x23, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18,
  300. 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e,
  301. 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20,
  302. 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  303. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  304. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x6e,
  305. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76,
  306. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  307. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65,
  308. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x52, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43,
  309. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18,
  310. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  311. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  312. 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
  313. 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2a, 0x9f, 0x01, 0x0a, 0x0a, 0x43, 0x69,
  314. 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
  315. 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32, 0x38,
  316. 0x5f, 0x43, 0x46, 0x42, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32, 0x35,
  317. 0x36, 0x5f, 0x43, 0x46, 0x42, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x48, 0x41, 0x43, 0x48,
  318. 0x41, 0x32, 0x30, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x48, 0x41, 0x43, 0x48, 0x41, 0x32,
  319. 0x30, 0x5f, 0x49, 0x45, 0x54, 0x46, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f,
  320. 0x31, 0x32, 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x05, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53,
  321. 0x5f, 0x32, 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48,
  322. 0x41, 0x43, 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10,
  323. 0x07, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x08, 0x42, 0x50, 0x0a, 0x20, 0x63,
  324. 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  325. 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50,
  326. 0x01, 0x5a, 0x0b, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02,
  327. 0x1c, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  328. 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06, 0x70,
  329. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  330. }
  331. var (
  332. file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescOnce sync.Once
  333. file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescData = file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDesc
  334. )
  335. func file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescGZIP() []byte {
  336. file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescOnce.Do(func() {
  337. file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescData)
  338. })
  339. return file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDescData
  340. }
  341. var file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  342. var file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  343. var file_v2ray_com_core_proxy_shadowsocks_config_proto_goTypes = []interface{}{
  344. (CipherType)(0), // 0: v2ray.core.proxy.shadowsocks.CipherType
  345. (Account_OneTimeAuth)(0), // 1: v2ray.core.proxy.shadowsocks.Account.OneTimeAuth
  346. (*Account)(nil), // 2: v2ray.core.proxy.shadowsocks.Account
  347. (*ServerConfig)(nil), // 3: v2ray.core.proxy.shadowsocks.ServerConfig
  348. (*ClientConfig)(nil), // 4: v2ray.core.proxy.shadowsocks.ClientConfig
  349. (*protocol.User)(nil), // 5: v2ray.core.common.protocol.User
  350. (net.Network)(0), // 6: v2ray.core.common.net.Network
  351. (*protocol.ServerEndpoint)(nil), // 7: v2ray.core.common.protocol.ServerEndpoint
  352. }
  353. var file_v2ray_com_core_proxy_shadowsocks_config_proto_depIdxs = []int32{
  354. 0, // 0: v2ray.core.proxy.shadowsocks.Account.cipher_type:type_name -> v2ray.core.proxy.shadowsocks.CipherType
  355. 1, // 1: v2ray.core.proxy.shadowsocks.Account.ota:type_name -> v2ray.core.proxy.shadowsocks.Account.OneTimeAuth
  356. 5, // 2: v2ray.core.proxy.shadowsocks.ServerConfig.user:type_name -> v2ray.core.common.protocol.User
  357. 6, // 3: v2ray.core.proxy.shadowsocks.ServerConfig.network:type_name -> v2ray.core.common.net.Network
  358. 7, // 4: v2ray.core.proxy.shadowsocks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  359. 5, // [5:5] is the sub-list for method output_type
  360. 5, // [5:5] is the sub-list for method input_type
  361. 5, // [5:5] is the sub-list for extension type_name
  362. 5, // [5:5] is the sub-list for extension extendee
  363. 0, // [0:5] is the sub-list for field type_name
  364. }
  365. func init() { file_v2ray_com_core_proxy_shadowsocks_config_proto_init() }
  366. func file_v2ray_com_core_proxy_shadowsocks_config_proto_init() {
  367. if File_v2ray_com_core_proxy_shadowsocks_config_proto != nil {
  368. return
  369. }
  370. if !protoimpl.UnsafeEnabled {
  371. file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  372. switch v := v.(*Account); 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_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  384. switch v := v.(*ServerConfig); 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_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes[2].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_v2ray_com_core_proxy_shadowsocks_config_proto_rawDesc,
  413. NumEnums: 2,
  414. NumMessages: 3,
  415. NumExtensions: 0,
  416. NumServices: 0,
  417. },
  418. GoTypes: file_v2ray_com_core_proxy_shadowsocks_config_proto_goTypes,
  419. DependencyIndexes: file_v2ray_com_core_proxy_shadowsocks_config_proto_depIdxs,
  420. EnumInfos: file_v2ray_com_core_proxy_shadowsocks_config_proto_enumTypes,
  421. MessageInfos: file_v2ray_com_core_proxy_shadowsocks_config_proto_msgTypes,
  422. }.Build()
  423. File_v2ray_com_core_proxy_shadowsocks_config_proto = out.File
  424. file_v2ray_com_core_proxy_shadowsocks_config_proto_rawDesc = nil
  425. file_v2ray_com_core_proxy_shadowsocks_config_proto_goTypes = nil
  426. file_v2ray_com_core_proxy_shadowsocks_config_proto_depIdxs = nil
  427. }