config.pb.go 17 KB

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