public sealed class RunQueryResponse : IMessage<RunQueryResponse>, IEquatable<RunQueryResponse>, IDeepCloneable<RunQueryResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class RunQueryResponse.
The response for
[Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery].
public ExplainMetrics ExplainMetrics { get; set; }
Query explain metrics. This is only present when the
[RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
is provided, and it is sent only once with the last response in the stream.
The time at which the document was read. This may be monotonically
increasing; in this case, the previous documents in the result stream are
guaranteed not to have changed between their read_time and this one.
If the query returns no results, a response with read_time and no
document will be sent, and this represents the time at which the query
was run.
The transaction that was started as part of this request.
Can only be set in the first response, and only if
[RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
was set in the request. If set, no other fields will be set in this
response.
[[["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\u003eThe \u003ccode\u003eRunQueryResponse\u003c/code\u003e class is part of the Google Cloud Firestore v1 API, specifically designed for handling responses from Firestore queries.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, allowing for various operations like message handling, equality comparison, and deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties like \u003ccode\u003eDocument\u003c/code\u003e, \u003ccode\u003eDone\u003c/code\u003e, \u003ccode\u003eExplainMetrics\u003c/code\u003e, \u003ccode\u003eReadTime\u003c/code\u003e, \u003ccode\u003eSkippedResults\u003c/code\u003e, and \u003ccode\u003eTransaction\u003c/code\u003e, providing information about query results, progress, and associated metadata.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API available, ranging from version 2.3.0 to the latest 3.10.0, with each version potentially introducing updates or changes to the \u003ccode\u003eRunQueryResponse\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class RunQueryResponse (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.RunQueryResponse)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.RunQueryResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.RunQueryResponse) \n\n public sealed class RunQueryResponse : IMessage\u003cRunQueryResponse\u003e, IEquatable\u003cRunQueryResponse\u003e, IDeepCloneable\u003cRunQueryResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class RunQueryResponse.\n\nThe response for\n\\[Firestore.RunQuery\\]\\[google.firestore.v1.Firestore.RunQuery\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RunQueryResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RunQueryResponse](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunQueryResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RunQueryResponse](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunQueryResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RunQueryResponse](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunQueryResponse), [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### RunQueryResponse()\n\n public RunQueryResponse()\n\n### RunQueryResponse(RunQueryResponse)\n\n public RunQueryResponse(RunQueryResponse other)\n\nProperties\n----------\n\n### ContinuationSelectorCase\n\n public RunQueryResponse.ContinuationSelectorOneofCase ContinuationSelectorCase { get; }\n\n### Document\n\n public Document Document { get; set; }\n\nA query result, not set when reporting partial progress.\n\n### Done\n\n public bool Done { get; set; }\n\nIf present, Firestore has completely finished the request and no more\ndocuments will be returned.\n\n### ExplainMetrics\n\n public ExplainMetrics ExplainMetrics { get; set; }\n\nQuery explain metrics. This is only present when the\n\\[RunQueryRequest.explain_options\\]\\[google.firestore.v1.RunQueryRequest.explain_options\\]\nis provided, and it is sent only once with the last response in the stream.\n\n### HasDone\n\n public bool HasDone { get; }\n\nGets whether the \"done\" field is set\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nThe time at which the document was read. This may be monotonically\nincreasing; in this case, the previous documents in the result stream are\nguaranteed not to have changed between their `read_time` and this one.\n\nIf the query returns no results, a response with `read_time` and no\n`document` will be sent, and this represents the time at which the query\nwas run.\n\n### SkippedResults\n\n public int SkippedResults { get; set; }\n\nThe number of results that have been skipped due to an offset between\nthe last response and the current response.\n\n### Transaction\n\n public ByteString Transaction { get; set; }\n\nThe transaction that was started as part of this request.\nCan only be set in the first response, and only if\n\\[RunQueryRequest.new_transaction\\]\\[google.firestore.v1.RunQueryRequest.new_transaction\\]\nwas set in the request. If set, no other fields will be set in this\nresponse."]]