config.pb.go 16 KB

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