fakedns.pb.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.1
  4. // protoc v5.27.0
  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. 0x14, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61,
  109. 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x22, 0x40, 0x0a, 0x0b, 0x46, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73,
  110. 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18,
  111. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a,
  112. 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
  113. 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x10, 0x46, 0x61, 0x6b, 0x65, 0x44,
  114. 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x12, 0x37, 0x0a, 0x05, 0x70,
  115. 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61,
  116. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e,
  117. 0x73, 0x2e, 0x46, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x70,
  118. 0x6f, 0x6f, 0x6c, 0x73, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79,
  119. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73,
  120. 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78,
  121. 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70,
  122. 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x14,
  123. 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6b,
  124. 0x65, 0x64, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  125. }
  126. var (
  127. file_app_dns_fakedns_fakedns_proto_rawDescOnce sync.Once
  128. file_app_dns_fakedns_fakedns_proto_rawDescData = file_app_dns_fakedns_fakedns_proto_rawDesc
  129. )
  130. func file_app_dns_fakedns_fakedns_proto_rawDescGZIP() []byte {
  131. file_app_dns_fakedns_fakedns_proto_rawDescOnce.Do(func() {
  132. file_app_dns_fakedns_fakedns_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_fakedns_fakedns_proto_rawDescData)
  133. })
  134. return file_app_dns_fakedns_fakedns_proto_rawDescData
  135. }
  136. var file_app_dns_fakedns_fakedns_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  137. var file_app_dns_fakedns_fakedns_proto_goTypes = []interface{}{
  138. (*FakeDnsPool)(nil), // 0: xray.app.dns.fakedns.FakeDnsPool
  139. (*FakeDnsPoolMulti)(nil), // 1: xray.app.dns.fakedns.FakeDnsPoolMulti
  140. }
  141. var file_app_dns_fakedns_fakedns_proto_depIdxs = []int32{
  142. 0, // 0: xray.app.dns.fakedns.FakeDnsPoolMulti.pools:type_name -> xray.app.dns.fakedns.FakeDnsPool
  143. 1, // [1:1] is the sub-list for method output_type
  144. 1, // [1:1] is the sub-list for method input_type
  145. 1, // [1:1] is the sub-list for extension type_name
  146. 1, // [1:1] is the sub-list for extension extendee
  147. 0, // [0:1] is the sub-list for field type_name
  148. }
  149. func init() { file_app_dns_fakedns_fakedns_proto_init() }
  150. func file_app_dns_fakedns_fakedns_proto_init() {
  151. if File_app_dns_fakedns_fakedns_proto != nil {
  152. return
  153. }
  154. if !protoimpl.UnsafeEnabled {
  155. file_app_dns_fakedns_fakedns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  156. switch v := v.(*FakeDnsPool); i {
  157. case 0:
  158. return &v.state
  159. case 1:
  160. return &v.sizeCache
  161. case 2:
  162. return &v.unknownFields
  163. default:
  164. return nil
  165. }
  166. }
  167. file_app_dns_fakedns_fakedns_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  168. switch v := v.(*FakeDnsPoolMulti); i {
  169. case 0:
  170. return &v.state
  171. case 1:
  172. return &v.sizeCache
  173. case 2:
  174. return &v.unknownFields
  175. default:
  176. return nil
  177. }
  178. }
  179. }
  180. type x struct{}
  181. out := protoimpl.TypeBuilder{
  182. File: protoimpl.DescBuilder{
  183. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  184. RawDescriptor: file_app_dns_fakedns_fakedns_proto_rawDesc,
  185. NumEnums: 0,
  186. NumMessages: 2,
  187. NumExtensions: 0,
  188. NumServices: 0,
  189. },
  190. GoTypes: file_app_dns_fakedns_fakedns_proto_goTypes,
  191. DependencyIndexes: file_app_dns_fakedns_fakedns_proto_depIdxs,
  192. MessageInfos: file_app_dns_fakedns_fakedns_proto_msgTypes,
  193. }.Build()
  194. File_app_dns_fakedns_fakedns_proto = out.File
  195. file_app_dns_fakedns_fakedns_proto_rawDesc = nil
  196. file_app_dns_fakedns_fakedns_proto_goTypes = nil
  197. file_app_dns_fakedns_fakedns_proto_depIdxs = nil
  198. }