Google Cloud Dialogflow V2 Client - Class Segment (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Segment.

A segment of the content.

Generated from protobuf message google.cloud.dialogflow.v2.Segment

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_index int

Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.

↳ end_index int

Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.

↳ text string

Output only. The text of the segment.

getStartIndex

Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.

Returns
Type Description
int

setStartIndex

Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.

Parameter
Name Description
var int
Returns
Type Description
$this

getEndIndex

Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.

Returns
Type Description
int

setEndIndex

Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.

Parameter
Name Description
var int
Returns
Type Description
$this

getText

Output only. The text of the segment.

Returns
Type Description
string

setText

Output only. The text of the segment.

Parameter
Name Description
var string
Returns
Type Description
$this