Google Cloud Contact Center Insights V1 Client - Class CalculateStatsResponse (1.9.5)

Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class CalculateStatsResponse.

The response for calculating conversation statistics.

Generated from protobuf message google.cloud.contactcenterinsights.v1.CalculateStatsResponse

Namespace

Google \ Cloud \ ContactCenterInsights \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ average_duration Google\Protobuf\Duration

The average duration of all conversations. The average is calculated using only conversations that have a time duration.

↳ average_turn_count int

The average number of turns per conversation.

↳ conversation_count int

The total number of conversations.

↳ smart_highlighter_matches array|Google\Protobuf\Internal\MapField

A map associating each smart highlighter display name with its respective number of matches in the set of conversations.

↳ custom_highlighter_matches array|Google\Protobuf\Internal\MapField

A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.

↳ issue_matches array|Google\Protobuf\Internal\MapField

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 array|Google\Protobuf\Internal\MapField

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>

↳ conversation_count_time_series Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries

A time series representing the count of conversations created over time that match that requested filter criteria.

getAverageDuration

The average duration of all conversations. The average is calculated using only conversations that have a time duration.

Returns
Type Description
Google\Protobuf\Duration|null

hasAverageDuration

clearAverageDuration

setAverageDuration

The average duration of all conversations. The average is calculated using only conversations that have a time duration.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getAverageTurnCount

The average number of turns per conversation.

Returns
Type Description
int

setAverageTurnCount

The average number of turns per conversation.

Parameter
Name Description
var int
Returns
Type Description
$this

getConversationCount

The total number of conversations.

Returns
Type Description
int

setConversationCount

The total number of conversations.

Parameter
Name Description
var int
Returns
Type Description
$this

getSmartHighlighterMatches

A map associating each smart highlighter display name with its respective number of matches in the set of conversations.

Returns
Type Description
Google\Protobuf\Internal\MapField

setSmartHighlighterMatches

A map associating each smart highlighter display name with its respective number of matches in the set of conversations.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getCustomHighlighterMatches

A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.

Returns
Type Description
Google\Protobuf\Internal\MapField

setCustomHighlighterMatches

A map associating each custom highlighter resource name with its respective number of matches in the set of conversations.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getIssueMatches

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
Type Description
Google\Protobuf\Internal\MapField

setIssueMatches

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.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getIssueMatchesStats

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
Type Description
Google\Protobuf\Internal\MapField

setIssueMatchesStats

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>

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getConversationCountTimeSeries

A time series representing the count of conversations created over time that match that requested filter criteria.

Returns
Type Description
Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries|null

hasConversationCountTimeSeries

clearConversationCountTimeSeries

setConversationCountTimeSeries

A time series representing the count of conversations created over time that match that requested filter criteria.

Parameter
Name Description
var Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries
Returns
Type Description
$this