public sealed class RunQueryResponse : IMessage<RunQueryResponse>, IEquatable<RunQueryResponse>, IDeepCloneable<RunQueryResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class RunQueryResponse.
The response for
[Datastore.RunQuery][google.datastore.v1.Datastore.RunQuery].
public ExplainMetrics ExplainMetrics { get; set; }
Query explain metrics. This is only present when the
[RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options]
is provided, and it is sent only once with the last response in the stream.
The identifier of the transaction that was started as part of this
RunQuery request.
Set only when
[ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction]
was set in
[RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options].
[[["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-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eRunQueryResponse\u003c/code\u003e class in the Google Cloud Datastore v1 API is version 4.15.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRunQueryResponse\u003c/code\u003e is a class used in response to \u003ccode\u003eDatastore.RunQuery\u003c/code\u003e and implements interfaces like \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\u003eIt contains properties such as \u003ccode\u003eBatch\u003c/code\u003e (a batch of query results), \u003ccode\u003eExplainMetrics\u003c/code\u003e (query explain metrics), \u003ccode\u003eQuery\u003c/code\u003e (parsed form of the GqlQuery), and \u003ccode\u003eTransaction\u003c/code\u003e (transaction identifier).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRunQueryResponse\u003c/code\u003e class includes constructors for creating a new instance or copying an existing \u003ccode\u003eRunQueryResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class is a part of the \u003ccode\u003eGoogle.Cloud.Datastore.V1\u003c/code\u003e namespace and is located in the \u003ccode\u003eGoogle.Cloud.Datastore.V1.dll\u003c/code\u003e assembly, offering different versions of the class ranging from 3.2.0 to 4.15.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class RunQueryResponse (4.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.RunQueryResponse)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.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 Google Cloud Datastore v1 API class RunQueryResponse.\n\nThe response for\n\\[Datastore.RunQuery\\]\\[google.datastore.v1.Datastore.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.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RunQueryResponse](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.RunQueryResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RunQueryResponse](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.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.Datastore.V1](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.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### Batch\n\n public QueryResultBatch Batch { get; set; }\n\nA batch of query results (always present).\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.datastore.v1.RunQueryRequest.explain_options\\]\nis provided, and it is sent only once with the last response in the stream.\n\n### Query\n\n public Query Query { get; set; }\n\nThe parsed form of the `GqlQuery` from the request, if it was set.\n\n### Transaction\n\n public ByteString Transaction { get; set; }\n\nThe identifier of the transaction that was started as part of this\nRunQuery request.\n\nSet only when\n\\[ReadOptions.new_transaction\\]\\[google.datastore.v1.ReadOptions.new_transaction\\]\nwas set in\n\\[RunQueryRequest.read_options\\]\\[google.datastore.v1.RunQueryRequest.read_options\\]."]]