# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.1 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.22.0 0.21.1 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.2 0.7.2 0.6.0 Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse.

The response for calculating conversation statistics.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #average_duration

    def average_duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Duration)) --- The average duration of all conversations. The average is calculated using only conversations that have a time duration.

### #average_duration=

    def average_duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Duration)) --- The average duration of all conversations. The average is calculated using only conversations that have a time duration.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Duration)) --- The average duration of all conversations. The average is calculated using only conversations that have a time duration.

### #average_turn_count

    def average_turn_count() -> ::Integer

**Returns**

- (::Integer) --- The average number of turns per conversation.

### #average_turn_count=

    def average_turn_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The average number of turns per conversation.
**Returns**

- (::Integer) --- The average number of turns per conversation.

### #conversation_count

    def conversation_count() -> ::Integer

**Returns**

- (::Integer) --- The total number of conversations.

### #conversation_count=

    def conversation_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The total number of conversations.
**Returns**

- (::Integer) --- The total number of conversations.

### #conversation_count_time_series

    def conversation_count_time_series() -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries

**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-CalculateStatsResponse-TimeSeries)) --- A time series representing the count of conversations created over time that match that requested filter criteria.

### #conversation_count_time_series=

    def conversation_count_time_series=(value) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries

**Parameter**

- **value** ([::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-CalculateStatsResponse-TimeSeries)) --- A time series representing the count of conversations created over time that match that requested filter criteria.
**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-CalculateStatsResponse-TimeSeries)) --- A time series representing the count of conversations created over time that match that requested filter criteria.

### #custom_highlighter_matches

    def custom_highlighter_matches() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.

### #custom_highlighter_matches=

    def custom_highlighter_matches=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.

### #issue_matches

    def issue_matches() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- 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.

### #issue_matches=

    def issue_matches=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- 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.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- 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.

### #issue_matches_stats

    def issue_matches_stats() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}) --- 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>`

### #issue_matches_stats=

    def issue_matches_stats=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}) --- 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>`
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}) --- 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>`

### #smart_highlighter_matches

    def smart_highlighter_matches() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each smart highlighter display name with its respective number of matches in the set of conversations.

### #smart_highlighter_matches=

    def smart_highlighter_matches=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each smart highlighter display name with its respective number of matches in the set of conversations.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- A map associating each smart highlighter display name with its respective number of matches in the set of conversations.