[[["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-09-04 UTC."],[],[],null,["# Interface AggregationResultOrBuilder (2.31.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.31.2 (latest)](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.31.1](/java/docs/reference/google-cloud-datastore/2.31.1/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.30.0](/java/docs/reference/google-cloud-datastore/2.30.0/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.29.1](/java/docs/reference/google-cloud-datastore/2.29.1/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.28.2](/java/docs/reference/google-cloud-datastore/2.28.2/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.27.1](/java/docs/reference/google-cloud-datastore/2.27.1/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.26.4](/java/docs/reference/google-cloud-datastore/2.26.4/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.25.2](/java/docs/reference/google-cloud-datastore/2.25.2/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.24.3](/java/docs/reference/google-cloud-datastore/2.24.3/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.23.0](/java/docs/reference/google-cloud-datastore/2.23.0/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.22.0](/java/docs/reference/google-cloud-datastore/2.22.0/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.21.3](/java/docs/reference/google-cloud-datastore/2.21.3/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.20.2](/java/docs/reference/google-cloud-datastore/2.20.2/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.19.2](/java/docs/reference/google-cloud-datastore/2.19.2/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.18.5](/java/docs/reference/google-cloud-datastore/2.18.5/com.google.datastore.v1.AggregationResultOrBuilder)\n- [2.17.6](/java/docs/reference/google-cloud-datastore/2.17.6/com.google.datastore.v1.AggregationResultOrBuilder) \n\n public interface AggregationResultOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsAggregateProperties(String key)\n\n public abstract boolean containsAggregateProperties(String key)\n\nThe result of the aggregation functions, ex: `COUNT(*) AS total_entities`.\n\nThe key is the\nalias assigned to\nthe aggregation function on input and the size of this map equals the\nnumber of aggregation functions in the query.\n\n`map\u003cstring, .google.datastore.v1.Value\u003e aggregate_properties = 2;`\n\n### getAggregateProperties() (deprecated)\n\n public abstract Map\u003cString,Value\u003e getAggregateProperties()\n\nUse [#getAggregatePropertiesMap()](/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.AggregationResultOrBuilder#com_google_datastore_v1_AggregationResultOrBuilder_getAggregatePropertiesMap__) instead.\n\n### getAggregatePropertiesCount()\n\n public abstract int getAggregatePropertiesCount()\n\nThe result of the aggregation functions, ex: `COUNT(*) AS total_entities`.\n\nThe key is the\nalias assigned to\nthe aggregation function on input and the size of this map equals the\nnumber of aggregation functions in the query.\n\n`map\u003cstring, .google.datastore.v1.Value\u003e aggregate_properties = 2;`\n\n### getAggregatePropertiesMap()\n\n public abstract Map\u003cString,Value\u003e getAggregatePropertiesMap()\n\nThe result of the aggregation functions, ex: `COUNT(*) AS total_entities`.\n\nThe key is the\nalias assigned to\nthe aggregation function on input and the size of this map equals the\nnumber of aggregation functions in the query.\n\n`map\u003cstring, .google.datastore.v1.Value\u003e aggregate_properties = 2;`\n\n### getAggregatePropertiesOrDefault(String key, Value defaultValue)\n\n public abstract Value getAggregatePropertiesOrDefault(String key, Value defaultValue)\n\nThe result of the aggregation functions, ex: `COUNT(*) AS total_entities`.\n\nThe key is the\nalias assigned to\nthe aggregation function on input and the size of this map equals the\nnumber of aggregation functions in the query.\n\n`map\u003cstring, .google.datastore.v1.Value\u003e aggregate_properties = 2;`\n\n### getAggregatePropertiesOrThrow(String key)\n\n public abstract Value getAggregatePropertiesOrThrow(String key)\n\nThe result of the aggregation functions, ex: `COUNT(*) AS total_entities`.\n\nThe key is the\nalias assigned to\nthe aggregation function on input and the size of this map equals the\nnumber of aggregation functions in the query.\n\n`map\u003cstring, .google.datastore.v1.Value\u003e aggregate_properties = 2;`"]]