config.pb.go 11 KB

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