Google Cloud Contact Center Insights V1 Client - Class SmartComposeSuggestionData (1.3.0)

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

Agent Assist Smart Compose suggestion data.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ suggestion string

The content of the suggestion.

↳ confidence_score float

The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

↳ metadata array|Google\Protobuf\Internal\MapField

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

↳ query_record string

The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}

getSuggestion

The content of the suggestion.

Returns
TypeDescription
string

setSuggestion

The content of the suggestion.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfidenceScore

The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

Returns
TypeDescription
float

setConfidenceScore

The system's confidence score that this suggestion is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMetadata

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setMetadata

Map that contains metadata about the Smart Compose suggestion and the document from which it originates.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getQueryRecord

The name of the answer record.

Format: projects/{project}/locations/{location}/answerRecords/{answer_record}

Returns
TypeDescription
string

setQueryRecord

The name of the answer record.

Format: projects/{project}/locations/{location}/answerRecords/{answer_record}

Parameter
NameDescription
var string
Returns
TypeDescription
$this