public sealed class CalculateStatsResponse : IMessage<CalculateStatsResponse>, IEquatable<CalculateStatsResponse>, IDeepCloneable<CalculateStatsResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Contact Center AI Insights v1 API class CalculateStatsResponse.
The response for calculating conversation statistics.
A map associating each issue resource name with its respective number of
matches in the set of conversations. Key has the format:
projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>
Deprecated, use issue_matches_stats field instead.
public MapField<string, IssueModelLabelStats.Types.IssueStats> IssueMatchesStats { get; }
A map associating each issue resource name with its respective number of
matches in the set of conversations. Key has the format:
projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>
[[["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\u003eCalculateStatsResponse\u003c/code\u003e class within the Google Cloud Contact Center Insights v1 API, which is used for calculating and returning statistics about conversations.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API class available is 2.19.0, with a list of all versions available that range from 1.0.0 all the way to the current release.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCalculateStatsResponse\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple 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\u003eKey properties of the \u003ccode\u003eCalculateStatsResponse\u003c/code\u003e class include \u003ccode\u003eAverageDuration\u003c/code\u003e, \u003ccode\u003eAverageTurnCount\u003c/code\u003e, \u003ccode\u003eConversationCount\u003c/code\u003e, and \u003ccode\u003eConversationCountTimeSeries\u003c/code\u003e, which provide data on the average conversation length, turn count, total number of conversations, and a time series of conversation creation over time, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class also contains properties like \u003ccode\u003eCustomHighlighterMatches\u003c/code\u003e, \u003ccode\u003eIssueMatches\u003c/code\u003e, \u003ccode\u003eIssueMatchesStats\u003c/code\u003e, and \u003ccode\u003eSmartHighlighterMatches\u003c/code\u003e, which give data on the frequency of matches for custom highlighters, issues, and smart highlighters within conversations.\u003c/p\u003e\n"]]],[],null,["# Contact Center AI Insights v1 API - Class CalculateStatsResponse (2.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.18.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.17.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.16.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.15.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.14.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.13.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.12.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.11.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.10.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.9.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.8.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.7.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.6.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.5.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.4.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.3.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.2.1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.2.1/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.1.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.0.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.3.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.2.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.1.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.0.0/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse) \n\n public sealed class CalculateStatsResponse : IMessage\u003cCalculateStatsResponse\u003e, IEquatable\u003cCalculateStatsResponse\u003e, IDeepCloneable\u003cCalculateStatsResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Contact Center AI Insights v1 API class CalculateStatsResponse.\n\nThe response for calculating conversation statistics. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CalculateStatsResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CalculateStatsResponse](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CalculateStatsResponse](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CalculateStatsResponse](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.CalculateStatsResponse), [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.ContactCenterInsights.V1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ContactCenterInsights.V1.dll\n\nConstructors\n------------\n\n### CalculateStatsResponse()\n\n public CalculateStatsResponse()\n\n### CalculateStatsResponse(CalculateStatsResponse)\n\n public CalculateStatsResponse(CalculateStatsResponse other)\n\nProperties\n----------\n\n### AverageDuration\n\n public Duration AverageDuration { get; set; }\n\nThe average duration of all conversations. The average is calculated using\nonly conversations that have a time duration.\n\n### AverageTurnCount\n\n public int AverageTurnCount { get; set; }\n\nThe average number of turns per conversation.\n\n### ConversationCount\n\n public int ConversationCount { get; set; }\n\nThe total number of conversations.\n\n### ConversationCountTimeSeries\n\n public CalculateStatsResponse.Types.TimeSeries ConversationCountTimeSeries { get; set; }\n\nA time series representing the count of conversations created over time\nthat match that requested filter criteria.\n\n### CustomHighlighterMatches\n\n public MapField\u003cstring, int\u003e CustomHighlighterMatches { get; }\n\nA map associating each custom highlighter resource name with its respective\nnumber of matches in the set of conversations.\n\n### IssueMatches\n\n [Obsolete]\n public MapField\u003cstring, int\u003e IssueMatches { get; }\n\nA map associating each issue resource name with its respective number of\nmatches in the set of conversations. Key has the format:\n`projects/\u003cProject-ID\u003e/locations/\u003cLocation-ID\u003e/issueModels/\u003cIssue-Model-ID\u003e/issues/\u003cIssue-ID\u003e`\nDeprecated, use `issue_matches_stats` field instead.\n\n### IssueMatchesStats\n\n public MapField\u003cstring, IssueModelLabelStats.Types.IssueStats\u003e IssueMatchesStats { get; }\n\nA map associating each issue resource name with its respective number of\nmatches in the set of conversations. Key has the format:\n`projects/\u003cProject-ID\u003e/locations/\u003cLocation-ID\u003e/issueModels/\u003cIssue-Model-ID\u003e/issues/\u003cIssue-ID\u003e`\n\n### SmartHighlighterMatches\n\n public MapField\u003cstring, int\u003e SmartHighlighterMatches { get; }\n\nA map associating each smart highlighter display name with its respective\nnumber of matches in the set of conversations."]]