config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. package subscription
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. type ImportSource struct {
  16. state protoimpl.MessageState
  17. sizeCache protoimpl.SizeCache
  18. unknownFields protoimpl.UnknownFields
  19. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  20. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
  21. TagPrefix string `protobuf:"bytes,3,opt,name=tag_prefix,json=tagPrefix,proto3" json:"tag_prefix,omitempty"`
  22. ImportUsingTag string `protobuf:"bytes,4,opt,name=import_using_tag,json=importUsingTag,proto3" json:"import_using_tag,omitempty"`
  23. DefaultExpireSeconds uint64 `protobuf:"varint,5,opt,name=default_expire_seconds,json=defaultExpireSeconds,proto3" json:"default_expire_seconds,omitempty"`
  24. }
  25. func (x *ImportSource) Reset() {
  26. *x = ImportSource{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_app_subscription_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *ImportSource) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*ImportSource) ProtoMessage() {}
  37. func (x *ImportSource) ProtoReflect() protoreflect.Message {
  38. mi := &file_app_subscription_config_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use ImportSource.ProtoReflect.Descriptor instead.
  49. func (*ImportSource) Descriptor() ([]byte, []int) {
  50. return file_app_subscription_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *ImportSource) GetName() string {
  53. if x != nil {
  54. return x.Name
  55. }
  56. return ""
  57. }
  58. func (x *ImportSource) GetUrl() string {
  59. if x != nil {
  60. return x.Url
  61. }
  62. return ""
  63. }
  64. func (x *ImportSource) GetTagPrefix() string {
  65. if x != nil {
  66. return x.TagPrefix
  67. }
  68. return ""
  69. }
  70. func (x *ImportSource) GetImportUsingTag() string {
  71. if x != nil {
  72. return x.ImportUsingTag
  73. }
  74. return ""
  75. }
  76. func (x *ImportSource) GetDefaultExpireSeconds() uint64 {
  77. if x != nil {
  78. return x.DefaultExpireSeconds
  79. }
  80. return 0
  81. }
  82. // Config is the settings for Subscription Manager.
  83. type Config struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. Imports []*ImportSource `protobuf:"bytes,1,rep,name=imports,proto3" json:"imports,omitempty"`
  88. NonnativeConverterOverlay []byte `protobuf:"bytes,2,opt,name=nonnative_converter_overlay,json=nonnativeConverterOverlay,proto3" json:"nonnative_converter_overlay,omitempty"`
  89. NonnativeConverterOverlayFile string `protobuf:"bytes,96002,opt,name=nonnative_converter_overlay_file,json=nonnativeConverterOverlayFile,proto3" json:"nonnative_converter_overlay_file,omitempty"`
  90. }
  91. func (x *Config) Reset() {
  92. *x = Config{}
  93. if protoimpl.UnsafeEnabled {
  94. mi := &file_app_subscription_config_proto_msgTypes[1]
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. ms.StoreMessageInfo(mi)
  97. }
  98. }
  99. func (x *Config) String() string {
  100. return protoimpl.X.MessageStringOf(x)
  101. }
  102. func (*Config) ProtoMessage() {}
  103. func (x *Config) ProtoReflect() protoreflect.Message {
  104. mi := &file_app_subscription_config_proto_msgTypes[1]
  105. if protoimpl.UnsafeEnabled && x != nil {
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. if ms.LoadMessageInfo() == nil {
  108. ms.StoreMessageInfo(mi)
  109. }
  110. return ms
  111. }
  112. return mi.MessageOf(x)
  113. }
  114. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  115. func (*Config) Descriptor() ([]byte, []int) {
  116. return file_app_subscription_config_proto_rawDescGZIP(), []int{1}
  117. }
  118. func (x *Config) GetImports() []*ImportSource {
  119. if x != nil {
  120. return x.Imports
  121. }
  122. return nil
  123. }
  124. func (x *Config) GetNonnativeConverterOverlay() []byte {
  125. if x != nil {
  126. return x.NonnativeConverterOverlay
  127. }
  128. return nil
  129. }
  130. func (x *Config) GetNonnativeConverterOverlayFile() string {
  131. if x != nil {
  132. return x.NonnativeConverterOverlayFile
  133. }
  134. return ""
  135. }
  136. var File_app_subscription_config_proto protoreflect.FileDescriptor
  137. var file_app_subscription_config_proto_rawDesc = []byte{
  138. 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  139. 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  140. 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  141. 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x63, 0x6f,
  142. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  143. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3,
  144. 0x01, 0x0a, 0x0c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
  145. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  146. 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  147. 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x72, 0x65,
  148. 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x67, 0x50, 0x72,
  149. 0x65, 0x66, 0x69, 0x78, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x75,
  150. 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
  151. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x34,
  152. 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
  153. 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14,
  154. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x53, 0x65, 0x63,
  155. 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x98, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  156. 0x43, 0x0a, 0x07, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  157. 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  158. 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49,
  159. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x69, 0x6d, 0x70,
  160. 0x6f, 0x72, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76,
  161. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72,
  162. 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x19, 0x6e, 0x6f, 0x6e, 0x6e, 0x61,
  163. 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x4f, 0x76, 0x65,
  164. 0x72, 0x6c, 0x61, 0x79, 0x12, 0x6c, 0x0a, 0x20, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76,
  165. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72,
  166. 0x6c, 0x61, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x82, 0xee, 0x05, 0x20, 0x01, 0x28, 0x09,
  167. 0x42, 0x21, 0x82, 0xb5, 0x18, 0x1d, 0x22, 0x1b, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76,
  168. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72,
  169. 0x6c, 0x61, 0x79, 0x52, 0x1d, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f,
  170. 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x79, 0x46, 0x69,
  171. 0x6c, 0x65, 0x3a, 0x1b, 0x82, 0xb5, 0x18, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  172. 0x65, 0x12, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
  173. 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  174. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  175. 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  176. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  177. 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
  178. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1b, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  179. 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  180. 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  181. }
  182. var (
  183. file_app_subscription_config_proto_rawDescOnce sync.Once
  184. file_app_subscription_config_proto_rawDescData = file_app_subscription_config_proto_rawDesc
  185. )
  186. func file_app_subscription_config_proto_rawDescGZIP() []byte {
  187. file_app_subscription_config_proto_rawDescOnce.Do(func() {
  188. file_app_subscription_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_subscription_config_proto_rawDescData)
  189. })
  190. return file_app_subscription_config_proto_rawDescData
  191. }
  192. var file_app_subscription_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  193. var file_app_subscription_config_proto_goTypes = []interface{}{
  194. (*ImportSource)(nil), // 0: v2ray.core.app.subscription.ImportSource
  195. (*Config)(nil), // 1: v2ray.core.app.subscription.Config
  196. }
  197. var file_app_subscription_config_proto_depIdxs = []int32{
  198. 0, // 0: v2ray.core.app.subscription.Config.imports:type_name -> v2ray.core.app.subscription.ImportSource
  199. 1, // [1:1] is the sub-list for method output_type
  200. 1, // [1:1] is the sub-list for method input_type
  201. 1, // [1:1] is the sub-list for extension type_name
  202. 1, // [1:1] is the sub-list for extension extendee
  203. 0, // [0:1] is the sub-list for field type_name
  204. }
  205. func init() { file_app_subscription_config_proto_init() }
  206. func file_app_subscription_config_proto_init() {
  207. if File_app_subscription_config_proto != nil {
  208. return
  209. }
  210. if !protoimpl.UnsafeEnabled {
  211. file_app_subscription_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  212. switch v := v.(*ImportSource); i {
  213. case 0:
  214. return &v.state
  215. case 1:
  216. return &v.sizeCache
  217. case 2:
  218. return &v.unknownFields
  219. default:
  220. return nil
  221. }
  222. }
  223. file_app_subscription_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  224. switch v := v.(*Config); i {
  225. case 0:
  226. return &v.state
  227. case 1:
  228. return &v.sizeCache
  229. case 2:
  230. return &v.unknownFields
  231. default:
  232. return nil
  233. }
  234. }
  235. }
  236. type x struct{}
  237. out := protoimpl.TypeBuilder{
  238. File: protoimpl.DescBuilder{
  239. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  240. RawDescriptor: file_app_subscription_config_proto_rawDesc,
  241. NumEnums: 0,
  242. NumMessages: 2,
  243. NumExtensions: 0,
  244. NumServices: 0,
  245. },
  246. GoTypes: file_app_subscription_config_proto_goTypes,
  247. DependencyIndexes: file_app_subscription_config_proto_depIdxs,
  248. MessageInfos: file_app_subscription_config_proto_msgTypes,
  249. }.Build()
  250. File_app_subscription_config_proto = out.File
  251. file_app_subscription_config_proto_rawDesc = nil
  252. file_app_subscription_config_proto_goTypes = nil
  253. file_app_subscription_config_proto_depIdxs = nil
  254. }