common.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. package routercommon
  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 of domain value.
  17. type Domain_Type int32
  18. const (
  19. // The value is used as is.
  20. Domain_Plain Domain_Type = 0
  21. // The value is used as a regular expression.
  22. Domain_Regex Domain_Type = 1
  23. // The value is a root domain.
  24. Domain_RootDomain Domain_Type = 2
  25. // The value is a domain.
  26. Domain_Full Domain_Type = 3
  27. )
  28. // Enum value maps for Domain_Type.
  29. var (
  30. Domain_Type_name = map[int32]string{
  31. 0: "Plain",
  32. 1: "Regex",
  33. 2: "RootDomain",
  34. 3: "Full",
  35. }
  36. Domain_Type_value = map[string]int32{
  37. "Plain": 0,
  38. "Regex": 1,
  39. "RootDomain": 2,
  40. "Full": 3,
  41. }
  42. )
  43. func (x Domain_Type) Enum() *Domain_Type {
  44. p := new(Domain_Type)
  45. *p = x
  46. return p
  47. }
  48. func (x Domain_Type) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (Domain_Type) Descriptor() protoreflect.EnumDescriptor {
  52. return file_app_router_routercommon_common_proto_enumTypes[0].Descriptor()
  53. }
  54. func (Domain_Type) Type() protoreflect.EnumType {
  55. return &file_app_router_routercommon_common_proto_enumTypes[0]
  56. }
  57. func (x Domain_Type) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use Domain_Type.Descriptor instead.
  61. func (Domain_Type) EnumDescriptor() ([]byte, []int) {
  62. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{0, 0}
  63. }
  64. // Domain for routing decision.
  65. type Domain struct {
  66. state protoimpl.MessageState `protogen:"open.v1"`
  67. // Domain matching type.
  68. Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.router.routercommon.Domain_Type" json:"type,omitempty"`
  69. // Domain value.
  70. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  71. // Attributes of this domain. May be used for filtering.
  72. Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"`
  73. unknownFields protoimpl.UnknownFields
  74. sizeCache protoimpl.SizeCache
  75. }
  76. func (x *Domain) Reset() {
  77. *x = Domain{}
  78. mi := &file_app_router_routercommon_common_proto_msgTypes[0]
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. ms.StoreMessageInfo(mi)
  81. }
  82. func (x *Domain) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*Domain) ProtoMessage() {}
  86. func (x *Domain) ProtoReflect() protoreflect.Message {
  87. mi := &file_app_router_routercommon_common_proto_msgTypes[0]
  88. if x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use Domain.ProtoReflect.Descriptor instead.
  98. func (*Domain) Descriptor() ([]byte, []int) {
  99. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{0}
  100. }
  101. func (x *Domain) GetType() Domain_Type {
  102. if x != nil {
  103. return x.Type
  104. }
  105. return Domain_Plain
  106. }
  107. func (x *Domain) GetValue() string {
  108. if x != nil {
  109. return x.Value
  110. }
  111. return ""
  112. }
  113. func (x *Domain) GetAttribute() []*Domain_Attribute {
  114. if x != nil {
  115. return x.Attribute
  116. }
  117. return nil
  118. }
  119. // IP for routing decision, in CIDR form.
  120. type CIDR struct {
  121. state protoimpl.MessageState `protogen:"open.v1"`
  122. // IP address, should be either 4 or 16 bytes.
  123. Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  124. // Number of leading ones in the network mask.
  125. Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
  126. IpAddr string `protobuf:"bytes,68000,opt,name=ip_addr,json=ipAddr,proto3" json:"ip_addr,omitempty"`
  127. unknownFields protoimpl.UnknownFields
  128. sizeCache protoimpl.SizeCache
  129. }
  130. func (x *CIDR) Reset() {
  131. *x = CIDR{}
  132. mi := &file_app_router_routercommon_common_proto_msgTypes[1]
  133. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  134. ms.StoreMessageInfo(mi)
  135. }
  136. func (x *CIDR) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*CIDR) ProtoMessage() {}
  140. func (x *CIDR) ProtoReflect() protoreflect.Message {
  141. mi := &file_app_router_routercommon_common_proto_msgTypes[1]
  142. if x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use CIDR.ProtoReflect.Descriptor instead.
  152. func (*CIDR) Descriptor() ([]byte, []int) {
  153. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{1}
  154. }
  155. func (x *CIDR) GetIp() []byte {
  156. if x != nil {
  157. return x.Ip
  158. }
  159. return nil
  160. }
  161. func (x *CIDR) GetPrefix() uint32 {
  162. if x != nil {
  163. return x.Prefix
  164. }
  165. return 0
  166. }
  167. func (x *CIDR) GetIpAddr() string {
  168. if x != nil {
  169. return x.IpAddr
  170. }
  171. return ""
  172. }
  173. type GeoIP struct {
  174. state protoimpl.MessageState `protogen:"open.v1"`
  175. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  176. Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"`
  177. InverseMatch bool `protobuf:"varint,3,opt,name=inverse_match,json=inverseMatch,proto3" json:"inverse_match,omitempty"`
  178. // resource_hash instruct simplified config converter to load domain from geo file.
  179. ResourceHash []byte `protobuf:"bytes,4,opt,name=resource_hash,json=resourceHash,proto3" json:"resource_hash,omitempty"`
  180. Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
  181. FilePath string `protobuf:"bytes,68000,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
  182. unknownFields protoimpl.UnknownFields
  183. sizeCache protoimpl.SizeCache
  184. }
  185. func (x *GeoIP) Reset() {
  186. *x = GeoIP{}
  187. mi := &file_app_router_routercommon_common_proto_msgTypes[2]
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. ms.StoreMessageInfo(mi)
  190. }
  191. func (x *GeoIP) String() string {
  192. return protoimpl.X.MessageStringOf(x)
  193. }
  194. func (*GeoIP) ProtoMessage() {}
  195. func (x *GeoIP) ProtoReflect() protoreflect.Message {
  196. mi := &file_app_router_routercommon_common_proto_msgTypes[2]
  197. if x != nil {
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. if ms.LoadMessageInfo() == nil {
  200. ms.StoreMessageInfo(mi)
  201. }
  202. return ms
  203. }
  204. return mi.MessageOf(x)
  205. }
  206. // Deprecated: Use GeoIP.ProtoReflect.Descriptor instead.
  207. func (*GeoIP) Descriptor() ([]byte, []int) {
  208. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{2}
  209. }
  210. func (x *GeoIP) GetCountryCode() string {
  211. if x != nil {
  212. return x.CountryCode
  213. }
  214. return ""
  215. }
  216. func (x *GeoIP) GetCidr() []*CIDR {
  217. if x != nil {
  218. return x.Cidr
  219. }
  220. return nil
  221. }
  222. func (x *GeoIP) GetInverseMatch() bool {
  223. if x != nil {
  224. return x.InverseMatch
  225. }
  226. return false
  227. }
  228. func (x *GeoIP) GetResourceHash() []byte {
  229. if x != nil {
  230. return x.ResourceHash
  231. }
  232. return nil
  233. }
  234. func (x *GeoIP) GetCode() string {
  235. if x != nil {
  236. return x.Code
  237. }
  238. return ""
  239. }
  240. func (x *GeoIP) GetFilePath() string {
  241. if x != nil {
  242. return x.FilePath
  243. }
  244. return ""
  245. }
  246. type GeoIPList struct {
  247. state protoimpl.MessageState `protogen:"open.v1"`
  248. Entry []*GeoIP `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  249. unknownFields protoimpl.UnknownFields
  250. sizeCache protoimpl.SizeCache
  251. }
  252. func (x *GeoIPList) Reset() {
  253. *x = GeoIPList{}
  254. mi := &file_app_router_routercommon_common_proto_msgTypes[3]
  255. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  256. ms.StoreMessageInfo(mi)
  257. }
  258. func (x *GeoIPList) String() string {
  259. return protoimpl.X.MessageStringOf(x)
  260. }
  261. func (*GeoIPList) ProtoMessage() {}
  262. func (x *GeoIPList) ProtoReflect() protoreflect.Message {
  263. mi := &file_app_router_routercommon_common_proto_msgTypes[3]
  264. if x != nil {
  265. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  266. if ms.LoadMessageInfo() == nil {
  267. ms.StoreMessageInfo(mi)
  268. }
  269. return ms
  270. }
  271. return mi.MessageOf(x)
  272. }
  273. // Deprecated: Use GeoIPList.ProtoReflect.Descriptor instead.
  274. func (*GeoIPList) Descriptor() ([]byte, []int) {
  275. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{3}
  276. }
  277. func (x *GeoIPList) GetEntry() []*GeoIP {
  278. if x != nil {
  279. return x.Entry
  280. }
  281. return nil
  282. }
  283. type GeoSite struct {
  284. state protoimpl.MessageState `protogen:"open.v1"`
  285. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  286. Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  287. // resource_hash instruct simplified config converter to load domain from geo file.
  288. ResourceHash []byte `protobuf:"bytes,3,opt,name=resource_hash,json=resourceHash,proto3" json:"resource_hash,omitempty"`
  289. Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
  290. FilePath string `protobuf:"bytes,68000,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
  291. unknownFields protoimpl.UnknownFields
  292. sizeCache protoimpl.SizeCache
  293. }
  294. func (x *GeoSite) Reset() {
  295. *x = GeoSite{}
  296. mi := &file_app_router_routercommon_common_proto_msgTypes[4]
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. ms.StoreMessageInfo(mi)
  299. }
  300. func (x *GeoSite) String() string {
  301. return protoimpl.X.MessageStringOf(x)
  302. }
  303. func (*GeoSite) ProtoMessage() {}
  304. func (x *GeoSite) ProtoReflect() protoreflect.Message {
  305. mi := &file_app_router_routercommon_common_proto_msgTypes[4]
  306. if x != nil {
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. if ms.LoadMessageInfo() == nil {
  309. ms.StoreMessageInfo(mi)
  310. }
  311. return ms
  312. }
  313. return mi.MessageOf(x)
  314. }
  315. // Deprecated: Use GeoSite.ProtoReflect.Descriptor instead.
  316. func (*GeoSite) Descriptor() ([]byte, []int) {
  317. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{4}
  318. }
  319. func (x *GeoSite) GetCountryCode() string {
  320. if x != nil {
  321. return x.CountryCode
  322. }
  323. return ""
  324. }
  325. func (x *GeoSite) GetDomain() []*Domain {
  326. if x != nil {
  327. return x.Domain
  328. }
  329. return nil
  330. }
  331. func (x *GeoSite) GetResourceHash() []byte {
  332. if x != nil {
  333. return x.ResourceHash
  334. }
  335. return nil
  336. }
  337. func (x *GeoSite) GetCode() string {
  338. if x != nil {
  339. return x.Code
  340. }
  341. return ""
  342. }
  343. func (x *GeoSite) GetFilePath() string {
  344. if x != nil {
  345. return x.FilePath
  346. }
  347. return ""
  348. }
  349. type GeoSiteList struct {
  350. state protoimpl.MessageState `protogen:"open.v1"`
  351. Entry []*GeoSite `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  352. unknownFields protoimpl.UnknownFields
  353. sizeCache protoimpl.SizeCache
  354. }
  355. func (x *GeoSiteList) Reset() {
  356. *x = GeoSiteList{}
  357. mi := &file_app_router_routercommon_common_proto_msgTypes[5]
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. ms.StoreMessageInfo(mi)
  360. }
  361. func (x *GeoSiteList) String() string {
  362. return protoimpl.X.MessageStringOf(x)
  363. }
  364. func (*GeoSiteList) ProtoMessage() {}
  365. func (x *GeoSiteList) ProtoReflect() protoreflect.Message {
  366. mi := &file_app_router_routercommon_common_proto_msgTypes[5]
  367. if x != nil {
  368. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  369. if ms.LoadMessageInfo() == nil {
  370. ms.StoreMessageInfo(mi)
  371. }
  372. return ms
  373. }
  374. return mi.MessageOf(x)
  375. }
  376. // Deprecated: Use GeoSiteList.ProtoReflect.Descriptor instead.
  377. func (*GeoSiteList) Descriptor() ([]byte, []int) {
  378. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{5}
  379. }
  380. func (x *GeoSiteList) GetEntry() []*GeoSite {
  381. if x != nil {
  382. return x.Entry
  383. }
  384. return nil
  385. }
  386. type Domain_Attribute struct {
  387. state protoimpl.MessageState `protogen:"open.v1"`
  388. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  389. // Types that are valid to be assigned to TypedValue:
  390. //
  391. // *Domain_Attribute_BoolValue
  392. // *Domain_Attribute_IntValue
  393. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  394. unknownFields protoimpl.UnknownFields
  395. sizeCache protoimpl.SizeCache
  396. }
  397. func (x *Domain_Attribute) Reset() {
  398. *x = Domain_Attribute{}
  399. mi := &file_app_router_routercommon_common_proto_msgTypes[6]
  400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  401. ms.StoreMessageInfo(mi)
  402. }
  403. func (x *Domain_Attribute) String() string {
  404. return protoimpl.X.MessageStringOf(x)
  405. }
  406. func (*Domain_Attribute) ProtoMessage() {}
  407. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  408. mi := &file_app_router_routercommon_common_proto_msgTypes[6]
  409. if x != nil {
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. if ms.LoadMessageInfo() == nil {
  412. ms.StoreMessageInfo(mi)
  413. }
  414. return ms
  415. }
  416. return mi.MessageOf(x)
  417. }
  418. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  419. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  420. return file_app_router_routercommon_common_proto_rawDescGZIP(), []int{0, 0}
  421. }
  422. func (x *Domain_Attribute) GetKey() string {
  423. if x != nil {
  424. return x.Key
  425. }
  426. return ""
  427. }
  428. func (x *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  429. if x != nil {
  430. return x.TypedValue
  431. }
  432. return nil
  433. }
  434. func (x *Domain_Attribute) GetBoolValue() bool {
  435. if x != nil {
  436. if x, ok := x.TypedValue.(*Domain_Attribute_BoolValue); ok {
  437. return x.BoolValue
  438. }
  439. }
  440. return false
  441. }
  442. func (x *Domain_Attribute) GetIntValue() int64 {
  443. if x != nil {
  444. if x, ok := x.TypedValue.(*Domain_Attribute_IntValue); ok {
  445. return x.IntValue
  446. }
  447. }
  448. return 0
  449. }
  450. type isDomain_Attribute_TypedValue interface {
  451. isDomain_Attribute_TypedValue()
  452. }
  453. type Domain_Attribute_BoolValue struct {
  454. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  455. }
  456. type Domain_Attribute_IntValue struct {
  457. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  458. }
  459. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  460. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  461. var File_app_router_routercommon_common_proto protoreflect.FileDescriptor
  462. var file_app_router_routercommon_common_proto_rawDesc = string([]byte{
  463. 0x0a, 0x24, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75,
  464. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  465. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  466. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  467. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  468. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  469. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x02, 0x0a,
  470. 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x43, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  471. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  472. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  473. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  474. 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
  475. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,
  476. 0x75, 0x65, 0x12, 0x52, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18,
  477. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  478. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  479. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  480. 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74,
  481. 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x1a, 0x6c, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
  482. 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  483. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61,
  484. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f,
  485. 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61,
  486. 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74,
  487. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76,
  488. 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05,
  489. 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78,
  490. 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x6f, 0x6f, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  491. 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x03, 0x22, 0x53, 0x0a, 0x04,
  492. 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
  493. 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02,
  494. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x23, 0x0a, 0x07,
  495. 0x69, 0x70, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0xa0, 0x93, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42,
  496. 0x08, 0x82, 0xb5, 0x18, 0x04, 0x3a, 0x02, 0x69, 0x70, 0x52, 0x06, 0x69, 0x70, 0x41, 0x64, 0x64,
  497. 0x72, 0x22, 0xfa, 0x01, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a, 0x0c, 0x63,
  498. 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  499. 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x3c,
  500. 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76,
  501. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  502. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  503. 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d,
  504. 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20,
  505. 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x74, 0x63,
  506. 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61,
  507. 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  508. 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05,
  509. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x66, 0x69,
  510. 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa0, 0x93, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42,
  511. 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x32, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
  512. 0x68, 0x61, 0x73, 0x68, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x4c,
  513. 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x05, 0x65,
  514. 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72,
  515. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  516. 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  517. 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0xdd, 0x01, 0x0a,
  518. 0x07, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e,
  519. 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  520. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x42, 0x0a, 0x06, 0x64,
  521. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32,
  522. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  523. 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  524. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
  525. 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68,
  526. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  527. 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01,
  528. 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65,
  529. 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa0, 0x93, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0x82,
  530. 0xb5, 0x18, 0x0f, 0x32, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61,
  531. 0x73, 0x68, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x50, 0x0a, 0x0b,
  532. 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x05, 0x65,
  533. 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72,
  534. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  535. 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  536. 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x87,
  537. 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  538. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  539. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x36, 0x67, 0x69, 0x74,
  540. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  541. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f,
  542. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d,
  543. 0x6d, 0x6f, 0x6e, 0xaa, 0x02, 0x22, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  544. 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x75, 0x74,
  545. 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  546. })
  547. var (
  548. file_app_router_routercommon_common_proto_rawDescOnce sync.Once
  549. file_app_router_routercommon_common_proto_rawDescData []byte
  550. )
  551. func file_app_router_routercommon_common_proto_rawDescGZIP() []byte {
  552. file_app_router_routercommon_common_proto_rawDescOnce.Do(func() {
  553. file_app_router_routercommon_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_router_routercommon_common_proto_rawDesc), len(file_app_router_routercommon_common_proto_rawDesc)))
  554. })
  555. return file_app_router_routercommon_common_proto_rawDescData
  556. }
  557. var file_app_router_routercommon_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  558. var file_app_router_routercommon_common_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  559. var file_app_router_routercommon_common_proto_goTypes = []any{
  560. (Domain_Type)(0), // 0: v2ray.core.app.router.routercommon.Domain.Type
  561. (*Domain)(nil), // 1: v2ray.core.app.router.routercommon.Domain
  562. (*CIDR)(nil), // 2: v2ray.core.app.router.routercommon.CIDR
  563. (*GeoIP)(nil), // 3: v2ray.core.app.router.routercommon.GeoIP
  564. (*GeoIPList)(nil), // 4: v2ray.core.app.router.routercommon.GeoIPList
  565. (*GeoSite)(nil), // 5: v2ray.core.app.router.routercommon.GeoSite
  566. (*GeoSiteList)(nil), // 6: v2ray.core.app.router.routercommon.GeoSiteList
  567. (*Domain_Attribute)(nil), // 7: v2ray.core.app.router.routercommon.Domain.Attribute
  568. }
  569. var file_app_router_routercommon_common_proto_depIdxs = []int32{
  570. 0, // 0: v2ray.core.app.router.routercommon.Domain.type:type_name -> v2ray.core.app.router.routercommon.Domain.Type
  571. 7, // 1: v2ray.core.app.router.routercommon.Domain.attribute:type_name -> v2ray.core.app.router.routercommon.Domain.Attribute
  572. 2, // 2: v2ray.core.app.router.routercommon.GeoIP.cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  573. 3, // 3: v2ray.core.app.router.routercommon.GeoIPList.entry:type_name -> v2ray.core.app.router.routercommon.GeoIP
  574. 1, // 4: v2ray.core.app.router.routercommon.GeoSite.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  575. 5, // 5: v2ray.core.app.router.routercommon.GeoSiteList.entry:type_name -> v2ray.core.app.router.routercommon.GeoSite
  576. 6, // [6:6] is the sub-list for method output_type
  577. 6, // [6:6] is the sub-list for method input_type
  578. 6, // [6:6] is the sub-list for extension type_name
  579. 6, // [6:6] is the sub-list for extension extendee
  580. 0, // [0:6] is the sub-list for field type_name
  581. }
  582. func init() { file_app_router_routercommon_common_proto_init() }
  583. func file_app_router_routercommon_common_proto_init() {
  584. if File_app_router_routercommon_common_proto != nil {
  585. return
  586. }
  587. file_app_router_routercommon_common_proto_msgTypes[6].OneofWrappers = []any{
  588. (*Domain_Attribute_BoolValue)(nil),
  589. (*Domain_Attribute_IntValue)(nil),
  590. }
  591. type x struct{}
  592. out := protoimpl.TypeBuilder{
  593. File: protoimpl.DescBuilder{
  594. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  595. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_router_routercommon_common_proto_rawDesc), len(file_app_router_routercommon_common_proto_rawDesc)),
  596. NumEnums: 1,
  597. NumMessages: 7,
  598. NumExtensions: 0,
  599. NumServices: 0,
  600. },
  601. GoTypes: file_app_router_routercommon_common_proto_goTypes,
  602. DependencyIndexes: file_app_router_routercommon_common_proto_depIdxs,
  603. EnumInfos: file_app_router_routercommon_common_proto_enumTypes,
  604. MessageInfos: file_app_router_routercommon_common_proto_msgTypes,
  605. }.Build()
  606. File_app_router_routercommon_common_proto = out.File
  607. file_app_router_routercommon_common_proto_goTypes = nil
  608. file_app_router_routercommon_common_proto_depIdxs = nil
  609. }