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