The alias of the aggregation function that was provided in the aggregation query.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>. For example:
text
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT_UP_TO(4)
OVER (
...
);
```
becomes:
```text
```
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT_UP_TO(4) AS property_2
OVER (
...
);
public QueryResultBatch.Types.MoreResultsType MoreResults { get; }
The condition that caused the query to complete, indicating whether more
results are available beyond the query limit or end cursor, or whether
the data has been exhausted.
[[["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 \u003ccode\u003eAggregationQueryResults\u003c/code\u003e class in the Google Cloud Datastore v1 API is 4.15.0, with documentation and code samples available.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents the result of an \u003ccode\u003eAggregationQuery\u003c/code\u003e, providing access to the outputs of aggregation functions via their assigned aliases.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAggregationQueryResults\u003c/code\u003e offers properties like \u003ccode\u003eMetrics\u003c/code\u003e, for planning and execution details, \u003ccode\u003eMoreResults\u003c/code\u003e, indicating if additional results exist, and \u003ccode\u003eReadTime\u003c/code\u003e, specifying the snapshot read time.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eAggregationQueryResults\u003c/code\u003e allows access to aggregation results through string aliases, using \u003ccode\u003ethis[string alias]\u003c/code\u003e which returns a \u003ccode\u003eValue\u003c/code\u003e object, and the parameter \u003ccode\u003ealias\u003c/code\u003e is the aggregation alias string used to get the result.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eAggregationQueryResults\u003c/code\u003e is part of the namespace \u003ccode\u003eGoogle.Cloud.Datastore.V1\u003c/code\u003e, and it has versions available from 3.2.0 to 4.15.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class AggregationQueryResults (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.AggregationQueryResults)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.AggregationQueryResults)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.AggregationQueryResults) \n\n public sealed class AggregationQueryResults\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class AggregationQueryResults.\n\nRepresents the result of an [AggregationQuery](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.AggregationQuery). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AggregationQueryResults \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\nProperties\n----------\n\n### this\\[string\\]\n\n public Value this[string alias] { get; }\n\nReturns the result of the aggregation function that is assigned to the given alias.\nWill be null if was not specified in the original query.\n\n### Metrics\n\n public ExplainMetrics Metrics { get; }\n\nThe information about planning and execution (if any) of the query. This will\nbe null if no analysis was requested.\n\n### MoreResults\n\n public QueryResultBatch.Types.MoreResultsType MoreResults { get; }\n\nThe condition that caused the query to complete, indicating whether more\nresults are available beyond the query limit or end cursor, or whether\nthe data has been exhausted.\n\n### ReadTime\n\n public Timestamp ReadTime { get; }\n\nThe time at which the snapshot was read. This will be null if the query was only\nplanned, and not executed."]]