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