github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/app/dns/fakedns/fakedns.pb.go (about)

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