config.pb.go 18 KB

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