Google Cloud Contact Center Insights V1 Client - Class AnnotationBoundary (1.5.0)

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

A point in a conversation that marks the start or the end of an annotation.

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

Namespace

Google \ Cloud \ ContactCenterInsights \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ word_index int

The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.

↳ transcript_index int

The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.

getWordIndex

The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.

Returns
TypeDescription
int

hasWordIndex

setWordIndex

The word index of this boundary with respect to the first word in the transcript piece. This index starts at zero.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTranscriptIndex

The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.

Returns
TypeDescription
int

setTranscriptIndex

The index in the sequence of transcribed pieces of the conversation where the boundary is located. This index starts at zero.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDetailedBoundary

Returns
TypeDescription
string