fakedns.pb.go 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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/dns/fakedns/fakedns.proto
  6. package fakedns
  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 FakeDnsPool struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. IpPool string `protobuf:"bytes,1,opt,name=ip_pool,json=ipPool,proto3" json:"ip_pool,omitempty"` //CIDR of IP pool used as fake DNS IP
  24. LruSize int64 `protobuf:"varint,2,opt,name=lruSize,proto3" json:"lruSize,omitempty"` //Size of Pool for remembering relationship between domain name and IP address
  25. }
  26. func (x *FakeDnsPool) Reset() {
  27. *x = FakeDnsPool{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *FakeDnsPool) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*FakeDnsPool) ProtoMessage() {}
  38. func (x *FakeDnsPool) ProtoReflect() protoreflect.Message {
  39. mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use FakeDnsPool.ProtoReflect.Descriptor instead.
  50. func (*FakeDnsPool) Descriptor() ([]byte, []int) {
  51. return file_app_dns_fakedns_fakedns_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *FakeDnsPool) GetIpPool() string {
  54. if x != nil {
  55. return x.IpPool
  56. }
  57. return ""
  58. }
  59. func (x *FakeDnsPool) GetLruSize() int64 {
  60. if x != nil {
  61. return x.LruSize
  62. }
  63. return 0
  64. }
  65. type FakeDnsPoolMulti struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. Pools []*FakeDnsPool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
  70. }
  71. func (x *FakeDnsPoolMulti) Reset() {
  72. *x = FakeDnsPoolMulti{}
  73. if protoimpl.UnsafeEnabled {
  74. mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[1]
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. ms.StoreMessageInfo(mi)
  77. }
  78. }
  79. func (x *FakeDnsPoolMulti) String() string {
  80. return protoimpl.X.MessageStringOf(x)
  81. }
  82. func (*FakeDnsPoolMulti) ProtoMessage() {}
  83. func (x *FakeDnsPoolMulti) ProtoReflect() protoreflect.Message {
  84. mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[1]
  85. if protoimpl.UnsafeEnabled && x != nil {
  86. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  87. if ms.LoadMessageInfo() == nil {
  88. ms.StoreMessageInfo(mi)
  89. }
  90. return ms
  91. }
  92. return mi.MessageOf(x)
  93. }
  94. // Deprecated: Use FakeDnsPoolMulti.ProtoReflect.Descriptor instead.
  95. func (*FakeDnsPoolMulti) Descriptor() ([]byte, []int) {
  96. return file_app_dns_fakedns_fakedns_proto_rawDescGZIP(), []int{1}
  97. }
  98. func (x *FakeDnsPoolMulti) GetPools() []*FakeDnsPool {
  99. if x != nil {
  100. return x.Pools
  101. }
  102. return nil
  103. }
  104. var File_app_dns_fakedns_fakedns_proto protoreflect.FileDescriptor
  105. var file_app_dns_fakedns_fakedns_proto_rawDesc = []byte{
  106. 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e,
  107. 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  108. 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  109. 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x22, 0x40, 0x0a, 0x0b, 0x46,
  110. 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x70,
  111. 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x50,
  112. 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02,
  113. 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x51, 0x0a,
  114. 0x10, 0x46, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x4d, 0x75, 0x6c, 0x74,
  115. 0x69, 0x12, 0x3d, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  116. 0x32, 0x27, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  117. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61,
  118. 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73,
  119. 0x42, 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  120. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64,
  121. 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  122. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  123. 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b,
  124. 0x65, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  125. 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6b, 0x65, 0x64, 0x6e,
  126. 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  127. }
  128. var (
  129. file_app_dns_fakedns_fakedns_proto_rawDescOnce sync.Once
  130. file_app_dns_fakedns_fakedns_proto_rawDescData = file_app_dns_fakedns_fakedns_proto_rawDesc
  131. )
  132. func file_app_dns_fakedns_fakedns_proto_rawDescGZIP() []byte {
  133. file_app_dns_fakedns_fakedns_proto_rawDescOnce.Do(func() {
  134. file_app_dns_fakedns_fakedns_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_fakedns_fakedns_proto_rawDescData)
  135. })
  136. return file_app_dns_fakedns_fakedns_proto_rawDescData
  137. }
  138. var file_app_dns_fakedns_fakedns_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  139. var file_app_dns_fakedns_fakedns_proto_goTypes = []interface{}{
  140. (*FakeDnsPool)(nil), // 0: v2ray.core.app.dns.fakedns.FakeDnsPool
  141. (*FakeDnsPoolMulti)(nil), // 1: v2ray.core.app.dns.fakedns.FakeDnsPoolMulti
  142. }
  143. var file_app_dns_fakedns_fakedns_proto_depIdxs = []int32{
  144. 0, // 0: v2ray.core.app.dns.fakedns.FakeDnsPoolMulti.pools:type_name -> v2ray.core.app.dns.fakedns.FakeDnsPool
  145. 1, // [1:1] is the sub-list for method output_type
  146. 1, // [1:1] is the sub-list for method input_type
  147. 1, // [1:1] is the sub-list for extension type_name
  148. 1, // [1:1] is the sub-list for extension extendee
  149. 0, // [0:1] is the sub-list for field type_name
  150. }
  151. func init() { file_app_dns_fakedns_fakedns_proto_init() }
  152. func file_app_dns_fakedns_fakedns_proto_init() {
  153. if File_app_dns_fakedns_fakedns_proto != nil {
  154. return
  155. }
  156. if !protoimpl.UnsafeEnabled {
  157. file_app_dns_fakedns_fakedns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  158. switch v := v.(*FakeDnsPool); i {
  159. case 0:
  160. return &v.state
  161. case 1:
  162. return &v.sizeCache
  163. case 2:
  164. return &v.unknownFields
  165. default:
  166. return nil
  167. }
  168. }
  169. file_app_dns_fakedns_fakedns_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  170. switch v := v.(*FakeDnsPoolMulti); i {
  171. case 0:
  172. return &v.state
  173. case 1:
  174. return &v.sizeCache
  175. case 2:
  176. return &v.unknownFields
  177. default:
  178. return nil
  179. }
  180. }
  181. }
  182. type x struct{}
  183. out := protoimpl.TypeBuilder{
  184. File: protoimpl.DescBuilder{
  185. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  186. RawDescriptor: file_app_dns_fakedns_fakedns_proto_rawDesc,
  187. NumEnums: 0,
  188. NumMessages: 2,
  189. NumExtensions: 0,
  190. NumServices: 0,
  191. },
  192. GoTypes: file_app_dns_fakedns_fakedns_proto_goTypes,
  193. DependencyIndexes: file_app_dns_fakedns_fakedns_proto_depIdxs,
  194. MessageInfos: file_app_dns_fakedns_fakedns_proto_msgTypes,
  195. }.Build()
  196. File_app_dns_fakedns_fakedns_proto = out.File
  197. file_app_dns_fakedns_fakedns_proto_rawDesc = nil
  198. file_app_dns_fakedns_fakedns_proto_goTypes = nil
  199. file_app_dns_fakedns_fakedns_proto_depIdxs = nil
  200. }