github.com/metacubex/mihomo@v1.18.5/component/geodata/router/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v3.19.1 5 // source: component/geodata/router/config.proto 6 7 package router 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // Type of domain value. 24 type Domain_Type int32 25 26 const ( 27 // The value is used as is. 28 Domain_Plain Domain_Type = 0 29 // The value is used as a regular expression. 30 Domain_Regex Domain_Type = 1 31 // The value is a root domain. 32 Domain_Domain Domain_Type = 2 33 // The value is a domain. 34 Domain_Full Domain_Type = 3 35 ) 36 37 // Enum value maps for Domain_Type. 38 var ( 39 Domain_Type_name = map[int32]string{ 40 0: "Plain", 41 1: "Regex", 42 2: "Domain", 43 3: "Full", 44 } 45 Domain_Type_value = map[string]int32{ 46 "Plain": 0, 47 "Regex": 1, 48 "Domain": 2, 49 "Full": 3, 50 } 51 ) 52 53 func (x Domain_Type) Enum() *Domain_Type { 54 p := new(Domain_Type) 55 *p = x 56 return p 57 } 58 59 func (x Domain_Type) String() string { 60 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 61 } 62 63 func (Domain_Type) Descriptor() protoreflect.EnumDescriptor { 64 return file_component_geodata_router_config_proto_enumTypes[0].Descriptor() 65 } 66 67 func (Domain_Type) Type() protoreflect.EnumType { 68 return &file_component_geodata_router_config_proto_enumTypes[0] 69 } 70 71 func (x Domain_Type) Number() protoreflect.EnumNumber { 72 return protoreflect.EnumNumber(x) 73 } 74 75 // Deprecated: Use Domain_Type.Descriptor instead. 76 func (Domain_Type) EnumDescriptor() ([]byte, []int) { 77 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{0, 0} 78 } 79 80 // Domain for routing decision. 81 type Domain struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 // Domain matching type. 87 Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=mihomo.component.geodata.router.Domain_Type" json:"type,omitempty"` 88 // Domain value. 89 Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 90 // Attributes of this domain. May be used for filtering. 91 Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"` 92 } 93 94 func (x *Domain) Reset() { 95 *x = Domain{} 96 if protoimpl.UnsafeEnabled { 97 mi := &file_component_geodata_router_config_proto_msgTypes[0] 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 ms.StoreMessageInfo(mi) 100 } 101 } 102 103 func (x *Domain) String() string { 104 return protoimpl.X.MessageStringOf(x) 105 } 106 107 func (*Domain) ProtoMessage() {} 108 109 func (x *Domain) ProtoReflect() protoreflect.Message { 110 mi := &file_component_geodata_router_config_proto_msgTypes[0] 111 if protoimpl.UnsafeEnabled && x != nil { 112 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 113 if ms.LoadMessageInfo() == nil { 114 ms.StoreMessageInfo(mi) 115 } 116 return ms 117 } 118 return mi.MessageOf(x) 119 } 120 121 // Deprecated: Use Domain.ProtoReflect.Descriptor instead. 122 func (*Domain) Descriptor() ([]byte, []int) { 123 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{0} 124 } 125 126 func (x *Domain) GetType() Domain_Type { 127 if x != nil { 128 return x.Type 129 } 130 return Domain_Plain 131 } 132 133 func (x *Domain) GetValue() string { 134 if x != nil { 135 return x.Value 136 } 137 return "" 138 } 139 140 func (x *Domain) GetAttribute() []*Domain_Attribute { 141 if x != nil { 142 return x.Attribute 143 } 144 return nil 145 } 146 147 // IP for routing decision, in CIDR form. 148 type CIDR struct { 149 state protoimpl.MessageState 150 sizeCache protoimpl.SizeCache 151 unknownFields protoimpl.UnknownFields 152 153 // IP address, should be either 4 or 16 bytes. 154 Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` 155 // Number of leading ones in the network mask. 156 Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"` 157 } 158 159 func (x *CIDR) Reset() { 160 *x = CIDR{} 161 if protoimpl.UnsafeEnabled { 162 mi := &file_component_geodata_router_config_proto_msgTypes[1] 163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 164 ms.StoreMessageInfo(mi) 165 } 166 } 167 168 func (x *CIDR) String() string { 169 return protoimpl.X.MessageStringOf(x) 170 } 171 172 func (*CIDR) ProtoMessage() {} 173 174 func (x *CIDR) ProtoReflect() protoreflect.Message { 175 mi := &file_component_geodata_router_config_proto_msgTypes[1] 176 if protoimpl.UnsafeEnabled && x != nil { 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 if ms.LoadMessageInfo() == nil { 179 ms.StoreMessageInfo(mi) 180 } 181 return ms 182 } 183 return mi.MessageOf(x) 184 } 185 186 // Deprecated: Use CIDR.ProtoReflect.Descriptor instead. 187 func (*CIDR) Descriptor() ([]byte, []int) { 188 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{1} 189 } 190 191 func (x *CIDR) GetIp() []byte { 192 if x != nil { 193 return x.Ip 194 } 195 return nil 196 } 197 198 func (x *CIDR) GetPrefix() uint32 { 199 if x != nil { 200 return x.Prefix 201 } 202 return 0 203 } 204 205 type GeoIP struct { 206 state protoimpl.MessageState 207 sizeCache protoimpl.SizeCache 208 unknownFields protoimpl.UnknownFields 209 210 CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` 211 Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"` 212 ReverseMatch bool `protobuf:"varint,3,opt,name=reverse_match,json=reverseMatch,proto3" json:"reverse_match,omitempty"` 213 } 214 215 func (x *GeoIP) Reset() { 216 *x = GeoIP{} 217 if protoimpl.UnsafeEnabled { 218 mi := &file_component_geodata_router_config_proto_msgTypes[2] 219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 220 ms.StoreMessageInfo(mi) 221 } 222 } 223 224 func (x *GeoIP) String() string { 225 return protoimpl.X.MessageStringOf(x) 226 } 227 228 func (*GeoIP) ProtoMessage() {} 229 230 func (x *GeoIP) ProtoReflect() protoreflect.Message { 231 mi := &file_component_geodata_router_config_proto_msgTypes[2] 232 if protoimpl.UnsafeEnabled && x != nil { 233 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 234 if ms.LoadMessageInfo() == nil { 235 ms.StoreMessageInfo(mi) 236 } 237 return ms 238 } 239 return mi.MessageOf(x) 240 } 241 242 // Deprecated: Use GeoIP.ProtoReflect.Descriptor instead. 243 func (*GeoIP) Descriptor() ([]byte, []int) { 244 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{2} 245 } 246 247 func (x *GeoIP) GetCountryCode() string { 248 if x != nil { 249 return x.CountryCode 250 } 251 return "" 252 } 253 254 func (x *GeoIP) GetCidr() []*CIDR { 255 if x != nil { 256 return x.Cidr 257 } 258 return nil 259 } 260 261 func (x *GeoIP) GetReverseMatch() bool { 262 if x != nil { 263 return x.ReverseMatch 264 } 265 return false 266 } 267 268 type GeoIPList struct { 269 state protoimpl.MessageState 270 sizeCache protoimpl.SizeCache 271 unknownFields protoimpl.UnknownFields 272 273 Entry []*GeoIP `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` 274 } 275 276 func (x *GeoIPList) Reset() { 277 *x = GeoIPList{} 278 if protoimpl.UnsafeEnabled { 279 mi := &file_component_geodata_router_config_proto_msgTypes[3] 280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 281 ms.StoreMessageInfo(mi) 282 } 283 } 284 285 func (x *GeoIPList) String() string { 286 return protoimpl.X.MessageStringOf(x) 287 } 288 289 func (*GeoIPList) ProtoMessage() {} 290 291 func (x *GeoIPList) ProtoReflect() protoreflect.Message { 292 mi := &file_component_geodata_router_config_proto_msgTypes[3] 293 if protoimpl.UnsafeEnabled && x != nil { 294 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 295 if ms.LoadMessageInfo() == nil { 296 ms.StoreMessageInfo(mi) 297 } 298 return ms 299 } 300 return mi.MessageOf(x) 301 } 302 303 // Deprecated: Use GeoIPList.ProtoReflect.Descriptor instead. 304 func (*GeoIPList) Descriptor() ([]byte, []int) { 305 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{3} 306 } 307 308 func (x *GeoIPList) GetEntry() []*GeoIP { 309 if x != nil { 310 return x.Entry 311 } 312 return nil 313 } 314 315 type GeoSite struct { 316 state protoimpl.MessageState 317 sizeCache protoimpl.SizeCache 318 unknownFields protoimpl.UnknownFields 319 320 CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"` 321 Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"` 322 } 323 324 func (x *GeoSite) Reset() { 325 *x = GeoSite{} 326 if protoimpl.UnsafeEnabled { 327 mi := &file_component_geodata_router_config_proto_msgTypes[4] 328 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 329 ms.StoreMessageInfo(mi) 330 } 331 } 332 333 func (x *GeoSite) String() string { 334 return protoimpl.X.MessageStringOf(x) 335 } 336 337 func (*GeoSite) ProtoMessage() {} 338 339 func (x *GeoSite) ProtoReflect() protoreflect.Message { 340 mi := &file_component_geodata_router_config_proto_msgTypes[4] 341 if protoimpl.UnsafeEnabled && x != nil { 342 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 343 if ms.LoadMessageInfo() == nil { 344 ms.StoreMessageInfo(mi) 345 } 346 return ms 347 } 348 return mi.MessageOf(x) 349 } 350 351 // Deprecated: Use GeoSite.ProtoReflect.Descriptor instead. 352 func (*GeoSite) Descriptor() ([]byte, []int) { 353 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{4} 354 } 355 356 func (x *GeoSite) GetCountryCode() string { 357 if x != nil { 358 return x.CountryCode 359 } 360 return "" 361 } 362 363 func (x *GeoSite) GetDomain() []*Domain { 364 if x != nil { 365 return x.Domain 366 } 367 return nil 368 } 369 370 type GeoSiteList struct { 371 state protoimpl.MessageState 372 sizeCache protoimpl.SizeCache 373 unknownFields protoimpl.UnknownFields 374 375 Entry []*GeoSite `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` 376 } 377 378 func (x *GeoSiteList) Reset() { 379 *x = GeoSiteList{} 380 if protoimpl.UnsafeEnabled { 381 mi := &file_component_geodata_router_config_proto_msgTypes[5] 382 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 383 ms.StoreMessageInfo(mi) 384 } 385 } 386 387 func (x *GeoSiteList) String() string { 388 return protoimpl.X.MessageStringOf(x) 389 } 390 391 func (*GeoSiteList) ProtoMessage() {} 392 393 func (x *GeoSiteList) ProtoReflect() protoreflect.Message { 394 mi := &file_component_geodata_router_config_proto_msgTypes[5] 395 if protoimpl.UnsafeEnabled && x != nil { 396 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 397 if ms.LoadMessageInfo() == nil { 398 ms.StoreMessageInfo(mi) 399 } 400 return ms 401 } 402 return mi.MessageOf(x) 403 } 404 405 // Deprecated: Use GeoSiteList.ProtoReflect.Descriptor instead. 406 func (*GeoSiteList) Descriptor() ([]byte, []int) { 407 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{5} 408 } 409 410 func (x *GeoSiteList) GetEntry() []*GeoSite { 411 if x != nil { 412 return x.Entry 413 } 414 return nil 415 } 416 417 type Domain_Attribute struct { 418 state protoimpl.MessageState 419 sizeCache protoimpl.SizeCache 420 unknownFields protoimpl.UnknownFields 421 422 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 423 // Types that are assignable to TypedValue: 424 // *Domain_Attribute_BoolValue 425 // *Domain_Attribute_IntValue 426 TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"` 427 } 428 429 func (x *Domain_Attribute) Reset() { 430 *x = Domain_Attribute{} 431 if protoimpl.UnsafeEnabled { 432 mi := &file_component_geodata_router_config_proto_msgTypes[6] 433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 434 ms.StoreMessageInfo(mi) 435 } 436 } 437 438 func (x *Domain_Attribute) String() string { 439 return protoimpl.X.MessageStringOf(x) 440 } 441 442 func (*Domain_Attribute) ProtoMessage() {} 443 444 func (x *Domain_Attribute) ProtoReflect() protoreflect.Message { 445 mi := &file_component_geodata_router_config_proto_msgTypes[6] 446 if protoimpl.UnsafeEnabled && x != nil { 447 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 448 if ms.LoadMessageInfo() == nil { 449 ms.StoreMessageInfo(mi) 450 } 451 return ms 452 } 453 return mi.MessageOf(x) 454 } 455 456 // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead. 457 func (*Domain_Attribute) Descriptor() ([]byte, []int) { 458 return file_component_geodata_router_config_proto_rawDescGZIP(), []int{0, 0} 459 } 460 461 func (x *Domain_Attribute) GetKey() string { 462 if x != nil { 463 return x.Key 464 } 465 return "" 466 } 467 468 func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue { 469 if m != nil { 470 return m.TypedValue 471 } 472 return nil 473 } 474 475 func (x *Domain_Attribute) GetBoolValue() bool { 476 if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok { 477 return x.BoolValue 478 } 479 return false 480 } 481 482 func (x *Domain_Attribute) GetIntValue() int64 { 483 if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok { 484 return x.IntValue 485 } 486 return 0 487 } 488 489 type isDomain_Attribute_TypedValue interface { 490 isDomain_Attribute_TypedValue() 491 } 492 493 type Domain_Attribute_BoolValue struct { 494 BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"` 495 } 496 497 type Domain_Attribute_IntValue struct { 498 IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"` 499 } 500 501 func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {} 502 503 func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {} 504 505 var File_component_geodata_router_config_proto protoreflect.FileDescriptor 506 507 var file_component_geodata_router_config_proto_rawDesc = []byte{ 508 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x67, 0x65, 0x6f, 0x64, 509 0x61, 0x74, 0x61, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 510 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 511 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 512 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x22, 0xd1, 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 513 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 514 0x32, 0x2b, 0x2e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 515 0x6e, 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 516 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 517 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 518 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4e, 0x0a, 0x09, 0x61, 0x74, 0x74, 519 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 520 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x67, 521 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 522 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 523 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x1a, 0x6c, 0x0a, 0x09, 0x41, 0x74, 0x74, 524 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 525 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 526 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 527 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 528 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 529 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 530 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 531 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 532 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 533 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 534 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 535 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 536 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x89, 0x01, 0x0a, 0x05, 537 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 538 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 539 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x38, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 540 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 541 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 542 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 543 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 544 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 545 0x73, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x48, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 546 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 547 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 548 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 549 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 550 0x79, 0x22, 0x6c, 0x0a, 0x07, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 551 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 552 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 553 0x3e, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 554 0x26, 0x2e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 555 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 556 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 557 0x4c, 0x0a, 0x0b, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, 558 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 559 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 560 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 561 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x7c, 0x0a, 562 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6c, 0x61, 0x73, 0x68, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 563 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x65, 0x6f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x72, 0x6f, 0x75, 564 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 565 0x6d, 0x2f, 0x44, 0x72, 0x65, 0x61, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x2f, 0x63, 0x6c, 0x61, 0x73, 566 0x68, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2f, 0x67, 0x65, 0x6f, 0x64, 567 0x61, 0x74, 0x61, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x1e, 0x43, 0x6c, 0x61, 568 0x73, 0x68, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x2e, 0x47, 0x65, 0x6f, 569 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 570 0x74, 0x6f, 0x33, 571 } 572 573 var ( 574 file_component_geodata_router_config_proto_rawDescOnce sync.Once 575 file_component_geodata_router_config_proto_rawDescData = file_component_geodata_router_config_proto_rawDesc 576 ) 577 578 func file_component_geodata_router_config_proto_rawDescGZIP() []byte { 579 file_component_geodata_router_config_proto_rawDescOnce.Do(func() { 580 file_component_geodata_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_component_geodata_router_config_proto_rawDescData) 581 }) 582 return file_component_geodata_router_config_proto_rawDescData 583 } 584 585 var file_component_geodata_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 586 var file_component_geodata_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 7) 587 var file_component_geodata_router_config_proto_goTypes = []interface{}{ 588 (Domain_Type)(0), // 0: mihomo.component.geodata.router.Domain.Type 589 (*Domain)(nil), // 1: mihomo.component.geodata.router.Domain 590 (*CIDR)(nil), // 2: mihomo.component.geodata.router.CIDR 591 (*GeoIP)(nil), // 3: mihomo.component.geodata.router.GeoIP 592 (*GeoIPList)(nil), // 4: mihomo.component.geodata.router.GeoIPList 593 (*GeoSite)(nil), // 5: mihomo.component.geodata.router.GeoSite 594 (*GeoSiteList)(nil), // 6: mihomo.component.geodata.router.GeoSiteList 595 (*Domain_Attribute)(nil), // 7: mihomo.component.geodata.router.Domain.Attribute 596 } 597 var file_component_geodata_router_config_proto_depIdxs = []int32{ 598 0, // 0: mihomo.component.geodata.router.Domain.type:type_name -> mihomo.component.geodata.router.Domain.Type 599 7, // 1: mihomo.component.geodata.router.Domain.attribute:type_name -> mihomo.component.geodata.router.Domain.Attribute 600 2, // 2: mihomo.component.geodata.router.GeoIP.cidr:type_name -> mihomo.component.geodata.router.CIDR 601 3, // 3: mihomo.component.geodata.router.GeoIPList.entry:type_name -> mihomo.component.geodata.router.GeoIP 602 1, // 4: mihomo.component.geodata.router.GeoSite.domain:type_name -> mihomo.component.geodata.router.Domain 603 5, // 5: mihomo.component.geodata.router.GeoSiteList.entry:type_name -> mihomo.component.geodata.router.GeoSite 604 6, // [6:6] is the sub-list for method output_type 605 6, // [6:6] is the sub-list for method input_type 606 6, // [6:6] is the sub-list for extension type_name 607 6, // [6:6] is the sub-list for extension extendee 608 0, // [0:6] is the sub-list for field type_name 609 } 610 611 func init() { file_component_geodata_router_config_proto_init() } 612 func file_component_geodata_router_config_proto_init() { 613 if File_component_geodata_router_config_proto != nil { 614 return 615 } 616 if !protoimpl.UnsafeEnabled { 617 file_component_geodata_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 618 switch v := v.(*Domain); i { 619 case 0: 620 return &v.state 621 case 1: 622 return &v.sizeCache 623 case 2: 624 return &v.unknownFields 625 default: 626 return nil 627 } 628 } 629 file_component_geodata_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 630 switch v := v.(*CIDR); i { 631 case 0: 632 return &v.state 633 case 1: 634 return &v.sizeCache 635 case 2: 636 return &v.unknownFields 637 default: 638 return nil 639 } 640 } 641 file_component_geodata_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 642 switch v := v.(*GeoIP); i { 643 case 0: 644 return &v.state 645 case 1: 646 return &v.sizeCache 647 case 2: 648 return &v.unknownFields 649 default: 650 return nil 651 } 652 } 653 file_component_geodata_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 654 switch v := v.(*GeoIPList); i { 655 case 0: 656 return &v.state 657 case 1: 658 return &v.sizeCache 659 case 2: 660 return &v.unknownFields 661 default: 662 return nil 663 } 664 } 665 file_component_geodata_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 666 switch v := v.(*GeoSite); i { 667 case 0: 668 return &v.state 669 case 1: 670 return &v.sizeCache 671 case 2: 672 return &v.unknownFields 673 default: 674 return nil 675 } 676 } 677 file_component_geodata_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 678 switch v := v.(*GeoSiteList); i { 679 case 0: 680 return &v.state 681 case 1: 682 return &v.sizeCache 683 case 2: 684 return &v.unknownFields 685 default: 686 return nil 687 } 688 } 689 file_component_geodata_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 690 switch v := v.(*Domain_Attribute); i { 691 case 0: 692 return &v.state 693 case 1: 694 return &v.sizeCache 695 case 2: 696 return &v.unknownFields 697 default: 698 return nil 699 } 700 } 701 } 702 file_component_geodata_router_config_proto_msgTypes[6].OneofWrappers = []interface{}{ 703 (*Domain_Attribute_BoolValue)(nil), 704 (*Domain_Attribute_IntValue)(nil), 705 } 706 type x struct{} 707 out := protoimpl.TypeBuilder{ 708 File: protoimpl.DescBuilder{ 709 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 710 RawDescriptor: file_component_geodata_router_config_proto_rawDesc, 711 NumEnums: 1, 712 NumMessages: 7, 713 NumExtensions: 0, 714 NumServices: 0, 715 }, 716 GoTypes: file_component_geodata_router_config_proto_goTypes, 717 DependencyIndexes: file_component_geodata_router_config_proto_depIdxs, 718 EnumInfos: file_component_geodata_router_config_proto_enumTypes, 719 MessageInfos: file_component_geodata_router_config_proto_msgTypes, 720 }.Build() 721 File_component_geodata_router_config_proto = out.File 722 file_component_geodata_router_config_proto_rawDesc = nil 723 file_component_geodata_router_config_proto_goTypes = nil 724 file_component_geodata_router_config_proto_depIdxs = nil 725 }