config.pb.go 11 KB

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