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

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
Name Description
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
Type Description
Google\Protobuf\Duration|null

hasStartOffset

clearStartOffset

setStartOffset

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

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

getEndOffset

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

Returns
Type Description
Google\Protobuf\Duration|null

hasEndOffset

clearEndOffset

setEndOffset

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

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

getWord

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

Returns
Type Description
string

setWord

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var float
Returns
Type Description
$this