fakedns.pb.go 8.3 KB

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