config.pb.go 10 KB

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