Google Cloud Contact Center Insights V1 Client - Class WordInfo (1.7.1)

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

Word-level info for words in a transcript.

Generated from protobuf message google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo

Namespace

Google \ Cloud \ ContactCenterInsights \ V1 \ Conversation \ Transcript \ TranscriptSegment

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_offset Google\Protobuf\Duration

Time offset of the start of this word relative to the beginning of the total conversation.

↳ end_offset Google\Protobuf\Duration

Time offset of the end of this word relative to the beginning of the total conversation.

↳ word string

The word itself. Includes punctuation marks that surround the word.

↳ confidence float

A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.

getStartOffset

Time offset of the start of this word relative to the beginning of the total conversation.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasStartOffset

clearStartOffset

setStartOffset

Time offset of the start of this word relative to the beginning of the total conversation.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getEndOffset

Time offset of the end of this word relative to the beginning of the total conversation.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasEndOffset

clearEndOffset

setEndOffset

Time offset of the end of this word relative to the beginning of the total conversation.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getWord

The word itself. Includes punctuation marks that surround the word.

Returns
TypeDescription
string

setWord

The word itself. Includes punctuation marks that surround the word.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConfidence

A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.

Returns
TypeDescription
float

setConfidence

A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A default value of 0.0 indicates that the value is unset.

Parameter
NameDescription
var float
Returns
TypeDescription
$this