Google Cloud Ai Platform V1 Client - Class PageSpan (1.31.0)

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

Represents where the chunk starts and ends in the document.

Generated from protobuf message google.cloud.aiplatform.v1.RagChunk.PageSpan

Namespace

Google \ Cloud \ AIPlatform \ V1 \ RagChunk

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ first_page
int

Page where chunk starts in the document. Inclusive. 1-indexed.

↳ last_page
int

Page where chunk ends in the document. Inclusive. 1-indexed.

getFirstPage

Page where chunk starts in the document. Inclusive. 1-indexed.

Returns
Type
Description
int

setFirstPage

Page where chunk starts in the document. Inclusive. 1-indexed.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getLastPage

Page where chunk ends in the document. Inclusive. 1-indexed.

Returns
Type
Description
int

setLastPage

Page where chunk ends in the document. Inclusive. 1-indexed.

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: