config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: proxy/shadowsocks/simplified/config.proto
  6. package simplified
  7. import (
  8. net "github.com/v2fly/v2ray-core/v5/common/net"
  9. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  10. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  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. type ServerConfig struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  27. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  28. Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
  29. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  30. }
  31. func (x *ServerConfig) Reset() {
  32. *x = ServerConfig{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *ServerConfig) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*ServerConfig) ProtoMessage() {}
  43. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  44. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  55. func (*ServerConfig) Descriptor() ([]byte, []int) {
  56. return file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *ServerConfig) GetMethod() string {
  59. if x != nil {
  60. return x.Method
  61. }
  62. return ""
  63. }
  64. func (x *ServerConfig) GetPassword() string {
  65. if x != nil {
  66. return x.Password
  67. }
  68. return ""
  69. }
  70. func (x *ServerConfig) GetNetwork() string {
  71. if x != nil {
  72. return x.Network
  73. }
  74. return ""
  75. }
  76. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  77. if x != nil {
  78. return x.PacketEncoding
  79. }
  80. return packetaddr.PacketAddrType(0)
  81. }
  82. type ClientConfig struct {
  83. state protoimpl.MessageState
  84. sizeCache protoimpl.SizeCache
  85. unknownFields protoimpl.UnknownFields
  86. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  87. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  88. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
  89. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
  90. ExperimentReducedIvHeadEntropy bool `protobuf:"varint,90001,opt,name=experiment_reduced_iv_head_entropy,json=experimentReducedIvHeadEntropy,proto3" json:"experiment_reduced_iv_head_entropy,omitempty"`
  91. }
  92. func (x *ClientConfig) Reset() {
  93. *x = ClientConfig{}
  94. if protoimpl.UnsafeEnabled {
  95. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[1]
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. ms.StoreMessageInfo(mi)
  98. }
  99. }
  100. func (x *ClientConfig) String() string {
  101. return protoimpl.X.MessageStringOf(x)
  102. }
  103. func (*ClientConfig) ProtoMessage() {}
  104. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  105. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[1]
  106. if protoimpl.UnsafeEnabled && x != nil {
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. if ms.LoadMessageInfo() == nil {
  109. ms.StoreMessageInfo(mi)
  110. }
  111. return ms
  112. }
  113. return mi.MessageOf(x)
  114. }
  115. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  116. func (*ClientConfig) Descriptor() ([]byte, []int) {
  117. return file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP(), []int{1}
  118. }
  119. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  120. if x != nil {
  121. return x.Address
  122. }
  123. return nil
  124. }
  125. func (x *ClientConfig) GetPort() uint32 {
  126. if x != nil {
  127. return x.Port
  128. }
  129. return 0
  130. }
  131. func (x *ClientConfig) GetMethod() string {
  132. if x != nil {
  133. return x.Method
  134. }
  135. return ""
  136. }
  137. func (x *ClientConfig) GetPassword() string {
  138. if x != nil {
  139. return x.Password
  140. }
  141. return ""
  142. }
  143. func (x *ClientConfig) GetExperimentReducedIvHeadEntropy() bool {
  144. if x != nil {
  145. return x.ExperimentReducedIvHeadEntropy
  146. }
  147. return false
  148. }
  149. var File_proxy_shadowsocks_simplified_config_proto protoreflect.FileDescriptor
  150. var file_proxy_shadowsocks_simplified_config_proto_rawDesc = []byte{
  151. 0x0a, 0x29, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  152. 0x63, 0x6b, 0x73, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63,
  153. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72,
  154. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68,
  155. 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69,
  156. 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  157. 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  158. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  159. 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  160. 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63,
  161. 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  162. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43,
  163. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18,
  164. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a,
  165. 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  166. 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74,
  167. 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77,
  168. 0x6f, 0x72, 0x6b, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e,
  169. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76,
  170. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61,
  171. 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41,
  172. 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45,
  173. 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x1e, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69,
  174. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x0d, 0x12, 0x0b, 0x73, 0x68, 0x61, 0x64,
  175. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65,
  176. 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
  177. 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61,
  178. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  179. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  180. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
  181. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
  182. 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  183. 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20,
  184. 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x4c, 0x0a,
  185. 0x22, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x64, 0x75,
  186. 0x63, 0x65, 0x64, 0x5f, 0x69, 0x76, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72,
  187. 0x6f, 0x70, 0x79, 0x18, 0x91, 0xbf, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x65, 0x78, 0x70,
  188. 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x49, 0x76,
  189. 0x48, 0x65, 0x61, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x3a, 0x1f, 0x82, 0xb5, 0x18,
  190. 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x0d, 0x12,
  191. 0x0b, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x42, 0x96, 0x01, 0x0a,
  192. 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  193. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b,
  194. 0x73, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x3b,
  195. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  196. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70,
  197. 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73,
  198. 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x27, 0x56, 0x32,
  199. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53,
  200. 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c,
  201. 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  202. }
  203. var (
  204. file_proxy_shadowsocks_simplified_config_proto_rawDescOnce sync.Once
  205. file_proxy_shadowsocks_simplified_config_proto_rawDescData = file_proxy_shadowsocks_simplified_config_proto_rawDesc
  206. )
  207. func file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP() []byte {
  208. file_proxy_shadowsocks_simplified_config_proto_rawDescOnce.Do(func() {
  209. file_proxy_shadowsocks_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_simplified_config_proto_rawDescData)
  210. })
  211. return file_proxy_shadowsocks_simplified_config_proto_rawDescData
  212. }
  213. var file_proxy_shadowsocks_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  214. var file_proxy_shadowsocks_simplified_config_proto_goTypes = []interface{}{
  215. (*ServerConfig)(nil), // 0: v2ray.core.proxy.shadowsocks.simplified.ServerConfig
  216. (*ClientConfig)(nil), // 1: v2ray.core.proxy.shadowsocks.simplified.ClientConfig
  217. (packetaddr.PacketAddrType)(0), // 2: v2ray.core.net.packetaddr.PacketAddrType
  218. (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain
  219. }
  220. var file_proxy_shadowsocks_simplified_config_proto_depIdxs = []int32{
  221. 2, // 0: v2ray.core.proxy.shadowsocks.simplified.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  222. 3, // 1: v2ray.core.proxy.shadowsocks.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  223. 2, // [2:2] is the sub-list for method output_type
  224. 2, // [2:2] is the sub-list for method input_type
  225. 2, // [2:2] is the sub-list for extension type_name
  226. 2, // [2:2] is the sub-list for extension extendee
  227. 0, // [0:2] is the sub-list for field type_name
  228. }
  229. func init() { file_proxy_shadowsocks_simplified_config_proto_init() }
  230. func file_proxy_shadowsocks_simplified_config_proto_init() {
  231. if File_proxy_shadowsocks_simplified_config_proto != nil {
  232. return
  233. }
  234. if !protoimpl.UnsafeEnabled {
  235. file_proxy_shadowsocks_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  236. switch v := v.(*ServerConfig); i {
  237. case 0:
  238. return &v.state
  239. case 1:
  240. return &v.sizeCache
  241. case 2:
  242. return &v.unknownFields
  243. default:
  244. return nil
  245. }
  246. }
  247. file_proxy_shadowsocks_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  248. switch v := v.(*ClientConfig); i {
  249. case 0:
  250. return &v.state
  251. case 1:
  252. return &v.sizeCache
  253. case 2:
  254. return &v.unknownFields
  255. default:
  256. return nil
  257. }
  258. }
  259. }
  260. type x struct{}
  261. out := protoimpl.TypeBuilder{
  262. File: protoimpl.DescBuilder{
  263. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  264. RawDescriptor: file_proxy_shadowsocks_simplified_config_proto_rawDesc,
  265. NumEnums: 0,
  266. NumMessages: 2,
  267. NumExtensions: 0,
  268. NumServices: 0,
  269. },
  270. GoTypes: file_proxy_shadowsocks_simplified_config_proto_goTypes,
  271. DependencyIndexes: file_proxy_shadowsocks_simplified_config_proto_depIdxs,
  272. MessageInfos: file_proxy_shadowsocks_simplified_config_proto_msgTypes,
  273. }.Build()
  274. File_proxy_shadowsocks_simplified_config_proto = out.File
  275. file_proxy_shadowsocks_simplified_config_proto_rawDesc = nil
  276. file_proxy_shadowsocks_simplified_config_proto_goTypes = nil
  277. file_proxy_shadowsocks_simplified_config_proto_depIdxs = nil
  278. }