fakedns.pb.go 8.5 KB

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