public sealed class Target.Types.QueryTarget : IMessage<Target.Types.QueryTarget>, IEquatable<Target.Types.QueryTarget>, IDeepCloneable<Target.Types.QueryTarget>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class Target.Types.QueryTarget.
The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents or
projects/{project_id}/databases/{database_id}/documents/{document_path}.
For example:
projects/my-project/databases/my-database/documents or
projects/my-project/databases/my-database/documents/chatrooms/my-chatroom
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eTarget.Types.QueryTarget\u003c/code\u003e class in the Firestore v1 API is version 3.10.0, with several previous versions available for reference, ranging down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTarget.Types.QueryTarget\u003c/code\u003e is a class within the Google Cloud Firestore v1 API, used to specify a target via a query and implements several interfaces such as \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 class \u003ccode\u003eTarget.Types.QueryTarget\u003c/code\u003e includes properties such as \u003ccode\u003eParent\u003c/code\u003e, which represents the resource name, and \u003ccode\u003eStructuredQuery\u003c/code\u003e, which allows for structured queries.\u003c/p\u003e\n"],["\u003cp\u003eThe class also contains the property \u003ccode\u003eQueryTypeCase\u003c/code\u003e of type \u003ccode\u003eTarget.Types.QueryTarget.QueryTypeOneofCase\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eTarget.Types.QueryTarget\u003c/code\u003e has two constructors, \u003ccode\u003eQueryTarget()\u003c/code\u003e, and \u003ccode\u003eQueryTarget(Target.Types.QueryTarget other)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class Target.Types.QueryTarget (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.Target.Types.QueryTarget) \n\n public sealed class Target.Types.QueryTarget : IMessage\u003cTarget.Types.QueryTarget\u003e, IEquatable\u003cTarget.Types.QueryTarget\u003e, IDeepCloneable\u003cTarget.Types.QueryTarget\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class Target.Types.QueryTarget.\n\nA target specified by a query. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Target.Types.QueryTarget \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Target](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types)[QueryTarget](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types.QueryTarget), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Target](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types)[QueryTarget](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types.QueryTarget), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Target](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target)[Types](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types)[QueryTarget](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.Target.Types.QueryTarget), [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.Firestore.V1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Firestore.V1.dll\n\nConstructors\n------------\n\n### QueryTarget()\n\n public QueryTarget()\n\n### QueryTarget(QueryTarget)\n\n public QueryTarget(Target.Types.QueryTarget other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nThe parent resource name. In the format:\n`projects/{project_id}/databases/{database_id}/documents` or\n`projects/{project_id}/databases/{database_id}/documents/{document_path}`.\nFor example:\n`projects/my-project/databases/my-database/documents` or\n`projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`\n\n### QueryTypeCase\n\n public Target.Types.QueryTarget.QueryTypeOneofCase QueryTypeCase { get; }\n\n### StructuredQuery\n\n public StructuredQuery StructuredQuery { get; set; }\n\nA structured query."]]