public sealed class SampleQuery.Types.QueryEntry.Types.Target : IMessage<SampleQuery.Types.QueryEntry.Types.Target>, IEquatable<SampleQuery.Types.QueryEntry.Types.Target>, IDeepCloneable<SampleQuery.Types.QueryEntry.Types.Target>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class SampleQuery.Types.QueryEntry.Types.Target.
Defines the parameters of the query's expected outcome.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eSampleQuery.Types.QueryEntry.Types.Target\u003c/code\u003e class in the Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTarget\u003c/code\u003e class defines the expected outcome parameters of a query, including the relevance score, expected URI, and page numbers.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e1.0.0-beta18\u003c/code\u003e, with \u003ccode\u003e1.0.0-beta17\u003c/code\u003e being an earlier version.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eHasScore\u003c/code\u003e, \u003ccode\u003ePageNumbers\u003c/code\u003e, \u003ccode\u003eScore\u003c/code\u003e, and \u003ccode\u003eUri\u003c/code\u003e, each with specific data types and descriptions.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class SampleQuery.Types.QueryEntry.Types.Target (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types.Target)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types.Target) \n\n public sealed class SampleQuery.Types.QueryEntry.Types.Target : IMessage\u003cSampleQuery.Types.QueryEntry.Types.Target\u003e, IEquatable\u003cSampleQuery.Types.QueryEntry.Types.Target\u003e, IDeepCloneable\u003cSampleQuery.Types.QueryEntry.Types.Target\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class SampleQuery.Types.QueryEntry.Types.Target.\n\nDefines the parameters of the query's expected outcome. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SampleQuery.Types.QueryEntry.Types.Target \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SampleQuery](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types)[QueryEntry](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types)[Target](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types.Target), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SampleQuery](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types)[QueryEntry](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types)[Target](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types.Target), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SampleQuery](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types)[QueryEntry](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types)[Target](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SampleQuery.Types.QueryEntry.Types.Target), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### Target()\n\n public Target()\n\n### Target(Target)\n\n public Target(SampleQuery.Types.QueryEntry.Types.Target other)\n\nProperties\n----------\n\n### HasScore\n\n public bool HasScore { get; }\n\nGets whether the \"score\" field is set\n\n### PageNumbers\n\n public RepeatedField\u003cint\u003e PageNumbers { get; }\n\nExpected page numbers of the target.\n\nEach page number must be non negative.\n\n### Score\n\n public double Score { get; set; }\n\nRelevance score of the target.\n\n### Uri\n\n public string Uri { get; set; }\n\nExpected uri of the target.\n\nThis field must be a UTF-8 encoded string with a length limit of 2048\ncharacters.\n\nExample of valid uris: `https://example.com/abc`,\n`gcs://example/example.pdf`."]]