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. 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. unknownFields protoimpl.UnknownFields
  88. sizeCache protoimpl.SizeCache
  89. }
  90. func (x *Config) Reset() {
  91. *x = Config{}
  92. mi := &file_app_subscription_config_proto_msgTypes[1]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. func (x *Config) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*Config) ProtoMessage() {}
  100. func (x *Config) ProtoReflect() protoreflect.Message {
  101. mi := &file_app_subscription_config_proto_msgTypes[1]
  102. if x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  112. func (*Config) Descriptor() ([]byte, []int) {
  113. return file_app_subscription_config_proto_rawDescGZIP(), []int{1}
  114. }
  115. func (x *Config) GetImports() []*ImportSource {
  116. if x != nil {
  117. return x.Imports
  118. }
  119. return nil
  120. }
  121. func (x *Config) GetNonnativeConverterOverlay() []byte {
  122. if x != nil {
  123. return x.NonnativeConverterOverlay
  124. }
  125. return nil
  126. }
  127. func (x *Config) GetNonnativeConverterOverlayFile() string {
  128. if x != nil {
  129. return x.NonnativeConverterOverlayFile
  130. }
  131. return ""
  132. }
  133. var File_app_subscription_config_proto protoreflect.FileDescriptor
  134. var file_app_subscription_config_proto_rawDesc = string([]byte{
  135. 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  136. 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  137. 0x1b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  138. 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x20, 0x63, 0x6f,
  139. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  140. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3,
  141. 0x01, 0x0a, 0x0c, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
  142. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  143. 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  144. 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x70, 0x72, 0x65,
  145. 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x67, 0x50, 0x72,
  146. 0x65, 0x66, 0x69, 0x78, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x75,
  147. 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
  148. 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x55, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x34,
  149. 0x0a, 0x16, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65,
  150. 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x14,
  151. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x53, 0x65, 0x63,
  152. 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x98, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  153. 0x43, 0x0a, 0x07, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  154. 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  155. 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49,
  156. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x69, 0x6d, 0x70,
  157. 0x6f, 0x72, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76,
  158. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72,
  159. 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x19, 0x6e, 0x6f, 0x6e, 0x6e, 0x61,
  160. 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x4f, 0x76, 0x65,
  161. 0x72, 0x6c, 0x61, 0x79, 0x12, 0x6c, 0x0a, 0x20, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76,
  162. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x76, 0x65, 0x72,
  163. 0x6c, 0x61, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x82, 0xee, 0x05, 0x20, 0x01, 0x28, 0x09,
  164. 0x42, 0x21, 0x82, 0xb5, 0x18, 0x1d, 0x22, 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, 0x52, 0x1d, 0x6e, 0x6f, 0x6e, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f,
  167. 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x72, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x61, 0x79, 0x46, 0x69,
  168. 0x6c, 0x65, 0x3a, 0x1b, 0x82, 0xb5, 0x18, 0x17, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  169. 0x65, 0x12, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42,
  170. 0x72, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  171. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
  172. 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  173. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  174. 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69,
  175. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0xaa, 0x02, 0x1b, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  176. 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
  177. 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  178. })
  179. var (
  180. file_app_subscription_config_proto_rawDescOnce sync.Once
  181. file_app_subscription_config_proto_rawDescData []byte
  182. )
  183. func file_app_subscription_config_proto_rawDescGZIP() []byte {
  184. file_app_subscription_config_proto_rawDescOnce.Do(func() {
  185. 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)))
  186. })
  187. return file_app_subscription_config_proto_rawDescData
  188. }
  189. var file_app_subscription_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  190. var file_app_subscription_config_proto_goTypes = []any{
  191. (*ImportSource)(nil), // 0: v2ray.core.app.subscription.ImportSource
  192. (*Config)(nil), // 1: v2ray.core.app.subscription.Config
  193. }
  194. var file_app_subscription_config_proto_depIdxs = []int32{
  195. 0, // 0: v2ray.core.app.subscription.Config.imports:type_name -> v2ray.core.app.subscription.ImportSource
  196. 1, // [1:1] is the sub-list for method output_type
  197. 1, // [1:1] is the sub-list for method input_type
  198. 1, // [1:1] is the sub-list for extension type_name
  199. 1, // [1:1] is the sub-list for extension extendee
  200. 0, // [0:1] is the sub-list for field type_name
  201. }
  202. func init() { file_app_subscription_config_proto_init() }
  203. func file_app_subscription_config_proto_init() {
  204. if File_app_subscription_config_proto != nil {
  205. return
  206. }
  207. type x struct{}
  208. out := protoimpl.TypeBuilder{
  209. File: protoimpl.DescBuilder{
  210. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  211. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_subscription_config_proto_rawDesc), len(file_app_subscription_config_proto_rawDesc)),
  212. NumEnums: 0,
  213. NumMessages: 2,
  214. NumExtensions: 0,
  215. NumServices: 0,
  216. },
  217. GoTypes: file_app_subscription_config_proto_goTypes,
  218. DependencyIndexes: file_app_subscription_config_proto_depIdxs,
  219. MessageInfos: file_app_subscription_config_proto_msgTypes,
  220. }.Build()
  221. File_app_subscription_config_proto = out.File
  222. file_app_subscription_config_proto_goTypes = nil
  223. file_app_subscription_config_proto_depIdxs = nil
  224. }