config.pb.go 11 KB

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