github.com/EagleQL/Xray-core@v1.4.3/proxy/dns/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.14.0 5 // source: proxy/dns/config.proto 6 7 package dns 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 net "github.com/xtls/xray-core/common/net" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type Config struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // Server is the DNS server address. If specified, this address overrides the 35 // original one. 36 Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` 37 } 38 39 func (x *Config) Reset() { 40 *x = Config{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_proxy_dns_config_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46 } 47 48 func (x *Config) String() string { 49 return protoimpl.X.MessageStringOf(x) 50 } 51 52 func (*Config) ProtoMessage() {} 53 54 func (x *Config) ProtoReflect() protoreflect.Message { 55 mi := &file_proxy_dns_config_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64 } 65 66 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 67 func (*Config) Descriptor() ([]byte, []int) { 68 return file_proxy_dns_config_proto_rawDescGZIP(), []int{0} 69 } 70 71 func (x *Config) GetServer() *net.Endpoint { 72 if x != nil { 73 return x.Server 74 } 75 return nil 76 } 77 78 var File_proxy_dns_config_proto protoreflect.FileDescriptor 79 80 var file_proxy_dns_config_proto_rawDesc = []byte{ 81 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 82 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 83 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 84 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 85 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 86 0x12, 0x31, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 87 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 88 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 89 0x76, 0x65, 0x72, 0x42, 0x4c, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 90 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 91 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 92 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 93 0xaa, 0x02, 0x0e, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 94 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 95 } 96 97 var ( 98 file_proxy_dns_config_proto_rawDescOnce sync.Once 99 file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc 100 ) 101 102 func file_proxy_dns_config_proto_rawDescGZIP() []byte { 103 file_proxy_dns_config_proto_rawDescOnce.Do(func() { 104 file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData) 105 }) 106 return file_proxy_dns_config_proto_rawDescData 107 } 108 109 var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 110 var file_proxy_dns_config_proto_goTypes = []interface{}{ 111 (*Config)(nil), // 0: xray.proxy.dns.Config 112 (*net.Endpoint)(nil), // 1: xray.common.net.Endpoint 113 } 114 var file_proxy_dns_config_proto_depIdxs = []int32{ 115 1, // 0: xray.proxy.dns.Config.server:type_name -> xray.common.net.Endpoint 116 1, // [1:1] is the sub-list for method output_type 117 1, // [1:1] is the sub-list for method input_type 118 1, // [1:1] is the sub-list for extension type_name 119 1, // [1:1] is the sub-list for extension extendee 120 0, // [0:1] is the sub-list for field type_name 121 } 122 123 func init() { file_proxy_dns_config_proto_init() } 124 func file_proxy_dns_config_proto_init() { 125 if File_proxy_dns_config_proto != nil { 126 return 127 } 128 if !protoimpl.UnsafeEnabled { 129 file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 130 switch v := v.(*Config); i { 131 case 0: 132 return &v.state 133 case 1: 134 return &v.sizeCache 135 case 2: 136 return &v.unknownFields 137 default: 138 return nil 139 } 140 } 141 } 142 type x struct{} 143 out := protoimpl.TypeBuilder{ 144 File: protoimpl.DescBuilder{ 145 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 146 RawDescriptor: file_proxy_dns_config_proto_rawDesc, 147 NumEnums: 0, 148 NumMessages: 1, 149 NumExtensions: 0, 150 NumServices: 0, 151 }, 152 GoTypes: file_proxy_dns_config_proto_goTypes, 153 DependencyIndexes: file_proxy_dns_config_proto_depIdxs, 154 MessageInfos: file_proxy_dns_config_proto_msgTypes, 155 }.Build() 156 File_proxy_dns_config_proto = out.File 157 file_proxy_dns_config_proto_rawDesc = nil 158 file_proxy_dns_config_proto_goTypes = nil 159 file_proxy_dns_config_proto_depIdxs = nil 160 }