common.pb.go 27 KB

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