common.pb.go 27 KB

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