Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents or
projects/{project_id}/databases/{database_id}/documents/{document_path}.
For example:
projects/my-project/databases/my-database/documents or
projects/my-project/databases/my-database/documents/chatrooms/my-chatroom
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
[[["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 information for the \u003ccode\u003eRunAggregationQueryRequest\u003c/code\u003e class within the Firestore v1 API, including its constructors, properties, and the versions available, with the latest being 3.10.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRunAggregationQueryRequest\u003c/code\u003e class is used to send a request for running an aggregation query within Firestore and 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.\u003c/p\u003e\n"],["\u003cp\u003eThe class's properties such as \u003ccode\u003eConsistencySelectorCase\u003c/code\u003e, \u003ccode\u003eExplainOptions\u003c/code\u003e, \u003ccode\u003eQueryTypeCase\u003c/code\u003e, and \u003ccode\u003eReadTime\u003c/code\u003e allow for defining the specific behavior and context of the aggregation query.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRunAggregationQueryRequest\u003c/code\u003e can handle both new and existing transactions, as indicated by the \u003ccode\u003eNewTransaction\u003c/code\u003e and \u003ccode\u003eTransaction\u003c/code\u003e properties respectively, and the \u003ccode\u003eParent\u003c/code\u003e property is required for setting the document path for the query.\u003c/p\u003e\n"],["\u003cp\u003eThe class also includes methods related to inheritance as well as the definition of a constructor, allowing users to instantiate and customize a request when invoking aggregation.\u003c/p\u003e\n"]]],[],null,["# Firestore v1 API - Class RunAggregationQueryRequest (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.RunAggregationQueryRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.9.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.8.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.7.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.6.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.5.1](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.5.1/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.4.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.3.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.2.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.1.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/3.0.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.5.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.4.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Firestore.V1/2.3.0/Google.Cloud.Firestore.V1.RunAggregationQueryRequest) \n\n public sealed class RunAggregationQueryRequest : IMessage\u003cRunAggregationQueryRequest\u003e, IEquatable\u003cRunAggregationQueryRequest\u003e, IDeepCloneable\u003cRunAggregationQueryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Firestore v1 API class RunAggregationQueryRequest.\n\nThe request for\n\\[Firestore.RunAggregationQuery\\]\\[google.firestore.v1.Firestore.RunAggregationQuery\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RunAggregationQueryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RunAggregationQueryRequest](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunAggregationQueryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RunAggregationQueryRequest](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunAggregationQueryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RunAggregationQueryRequest](/dotnet/docs/reference/Google.Cloud.Firestore.V1/latest/Google.Cloud.Firestore.V1.RunAggregationQueryRequest), [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### RunAggregationQueryRequest()\n\n public RunAggregationQueryRequest()\n\n### RunAggregationQueryRequest(RunAggregationQueryRequest)\n\n public RunAggregationQueryRequest(RunAggregationQueryRequest other)\n\nProperties\n----------\n\n### ConsistencySelectorCase\n\n public RunAggregationQueryRequest.ConsistencySelectorOneofCase ConsistencySelectorCase { get; }\n\n### ExplainOptions\n\n public ExplainOptions ExplainOptions { get; set; }\n\nOptional. Explain options for the query. If set, additional query\nstatistics will be returned. If not, only query results will be returned.\n\n### HasTransaction\n\n public bool HasTransaction { get; }\n\nGets whether the \"transaction\" field is set\n\n### NewTransaction\n\n public TransactionOptions NewTransaction { get; set; }\n\nStarts a new transaction as part of the query, defaulting to read-only.\n\nThe new transaction ID will be returned as the first response in the\nstream.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource name. In the format:\n`projects/{project_id}/databases/{database_id}/documents` or\n`projects/{project_id}/databases/{database_id}/documents/{document_path}`.\nFor example:\n`projects/my-project/databases/my-database/documents` or\n`projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`\n\n### QueryTypeCase\n\n public RunAggregationQueryRequest.QueryTypeOneofCase QueryTypeCase { get; }\n\n### ReadTime\n\n public Timestamp ReadTime { get; set; }\n\nExecutes the query at the given timestamp.\n\nThis must be a microsecond precision timestamp within the past one hour,\nor if Point-in-Time Recovery is enabled, can additionally be a whole\nminute timestamp within the past 7 days.\n\n### StructuredAggregationQuery\n\n public StructuredAggregationQuery StructuredAggregationQuery { get; set; }\n\nAn aggregation query.\n\n### Transaction\n\n public ByteString Transaction { get; set; }\n\nRun the aggregation within an already active transaction.\n\nThe value here is the opaque transaction ID to execute the query in."]]