[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eStructuredAggregationQuery\u003c/code\u003e class within the Google Cloud Firestore v1 API, specifically for .NET development, including its constructors, properties, and implemented interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStructuredAggregationQuery\u003c/code\u003e class is designed for running aggregations over a \u003ccode\u003eStructuredQuery\u003c/code\u003e in Firestore, allowing developers to apply one or more aggregations to query results.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, providing functionalities for message handling, equality comparison, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAggregations\u003c/code\u003e property allows users to define a series of aggregations to apply to the query, and the \u003ccode\u003eStructuredQuery\u003c/code\u003e property allows them to set a nested structured query.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eStructuredAggregationQuery\u003c/code\u003e listed, ranging from the latest version 3.10.0 back to version 2.3.0, allowing users to see the class documentation for different releases.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class StructuredAggregationQuery (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.StructuredAggregationQuery)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.StructuredAggregationQuery) \n\n public sealed class StructuredAggregationQuery : IMessage\u003cStructuredAggregationQuery\u003e, IEquatable\u003cStructuredAggregationQuery\u003e, IDeepCloneable\u003cStructuredAggregationQuery\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class StructuredAggregationQuery.\n\nFirestore query for running an aggregation over a\n\\[StructuredQuery\\]\\[google.firestore.v1.StructuredQuery\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StructuredAggregationQuery \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StructuredAggregationQuery](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.StructuredAggregationQuery), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StructuredAggregationQuery](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.StructuredAggregationQuery), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StructuredAggregationQuery](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.StructuredAggregationQuery), [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### StructuredAggregationQuery()\n\n public StructuredAggregationQuery()\n\n### StructuredAggregationQuery(StructuredAggregationQuery)\n\n public StructuredAggregationQuery(StructuredAggregationQuery other)\n\nProperties\n----------\n\n### Aggregations\n\n public RepeatedField\u003cStructuredAggregationQuery.Types.Aggregation\u003e Aggregations { get; }\n\nOptional. Series of aggregations to apply over the results of the\n`structured_query`.\n\nRequires:\n\n- A minimum of one and maximum of five aggregations per query.\n\n### QueryTypeCase\n\n public StructuredAggregationQuery.QueryTypeOneofCase QueryTypeCase { get; }\n\n### StructuredQuery\n\n public StructuredQuery StructuredQuery { get; set; }\n\nNested structured query."]]