public sealed class QueryResultBatch : IMessage<QueryResultBatch>, IEquatable<QueryResultBatch>, IDeepCloneable<QueryResultBatch>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class QueryResultBatch.
Read timestamp this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater timestamp. Each batch's read timestamp
is valid for all preceding batches.
This value will not be set for eventually consistent queries in Cloud
Datastore.
The version number of the snapshot this batch was returned from.
This applies to the range of results from the query's start_cursor (or
the beginning of the query if no cursor was given) to this batch's
end_cursor (not the query's end_cursor).
In a single transaction, subsequent query result batches for the same query
can have a greater snapshot version number. Each batch's snapshot version
is valid for all preceding batches.
The value will be zero for eventually consistent queries.
[[["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 latest version of the Google Cloud Datastore v1 API class \u003ccode\u003eQueryResultBatch\u003c/code\u003e is 4.15.0, with documentation available for versions back to 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryResultBatch\u003c/code\u003e class is a sealed class that represents a batch of results produced by a query, implementing 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\u003eThe \u003ccode\u003eQueryResultBatch\u003c/code\u003e class has constructors for creating a new instance and copying an existing one, with properties that store relevant query data such as the \u003ccode\u003eEndCursor\u003c/code\u003e, \u003ccode\u003eEntityResultType\u003c/code\u003e, and \u003ccode\u003eEntityResults\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryResultBatch\u003c/code\u003e class includes properties such as \u003ccode\u003eMoreResults\u003c/code\u003e, \u003ccode\u003eReadTime\u003c/code\u003e, \u003ccode\u003eSkippedCursor\u003c/code\u003e, \u003ccode\u003eSkippedResults\u003c/code\u003e, and \u003ccode\u003eSnapshotVersion\u003c/code\u003e, to provide information about the state of the query and the results within the batch.\u003c/p\u003e\n"],["\u003cp\u003eThis API is in the namespace \u003ccode\u003eGoogle.Cloud.Datastore.V1\u003c/code\u003e and resides within the \u003ccode\u003eGoogle.Cloud.Datastore.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class QueryResultBatch (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.QueryResultBatch)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.QueryResultBatch)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.QueryResultBatch) \n\n public sealed class QueryResultBatch : IMessage\u003cQueryResultBatch\u003e, IEquatable\u003cQueryResultBatch\u003e, IDeepCloneable\u003cQueryResultBatch\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class QueryResultBatch.\n\nA batch of results produced by a query. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QueryResultBatch \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QueryResultBatch](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.QueryResultBatch), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryResultBatch](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.QueryResultBatch), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QueryResultBatch](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.QueryResultBatch), [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### QueryResultBatch()\n\n public QueryResultBatch()\n\n### QueryResultBatch(QueryResultBatch)\n\n public QueryResultBatch(QueryResultBatch other)\n\nProperties\n----------\n\n### EndCursor\n\n public ByteString EndCursor { get; set; }\n\nA cursor that points to the position after the last result in the batch.\n\n### EntityResultType\n\n public EntityResult.Types.ResultType EntityResultType { get; set; }\n\nThe result type for every entity in `entity_results`.\n\n### EntityResults\n\n public RepeatedField\u003cEntityResult\u003e EntityResults { get; }\n\nThe results for this batch.\n\n### MoreResults\n\n public QueryResultBatch.Types.MoreResultsType MoreResults { get; set; }\n\nThe state of the query after the current batch.\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nRead timestamp this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater timestamp. Each batch's read timestamp\nis valid for all preceding batches.\nThis value will not be set for eventually consistent queries in Cloud\nDatastore.\n\n### SkippedCursor\n\n public ByteString SkippedCursor { get; set; }\n\nA cursor that points to the position after the last skipped result.\nWill be set when `skipped_results` != 0.\n\n### SkippedResults\n\n public int SkippedResults { get; set; }\n\nThe number of results skipped, typically because of an offset.\n\n### SnapshotVersion\n\n public long SnapshotVersion { get; set; }\n\nThe version number of the snapshot this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater snapshot version number. Each batch's snapshot version\nis valid for all preceding batches.\nThe value will be zero for eventually consistent queries."]]