config.pb.go 24 KB

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