common.pb.go 27 KB

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