Google Cloud Ai Platform V1 Client - Class Segment (1.8.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Segment.

Segment of the content.

Generated from protobuf message google.cloud.aiplatform.v1.Segment

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ part_index int

Output only. The index of a Part object within its parent Content object.

↳ start_index int

Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

↳ end_index int

Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

↳ text string

Output only. The text corresponding to the segment from the response.

getPartIndex

Output only. The index of a Part object within its parent Content object.

Returns
Type Description
int

setPartIndex

Output only. The index of a Part object within its parent Content object.

Parameter
Name Description
var int
Returns
Type Description
$this

getStartIndex

Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

Returns
Type Description
int

setStartIndex

Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

Parameter
Name Description
var int
Returns
Type Description
$this

getEndIndex

Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

Returns
Type Description
int

setEndIndex

Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

Parameter
Name Description
var int
Returns
Type Description
$this

getText

Output only. The text corresponding to the segment from the response.

Returns
Type Description
string

setText

Output only. The text corresponding to the segment from the response.

Parameter
Name Description
var string
Returns
Type Description
$this