Google Cloud Discovery Engine V1 Client - Class ExtractiveSegment (1.3.2)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ExtractiveSegment.

Extractive segment.

Guide Answer generation will only use it if document_contexts is empty. This is supposed to be shorter snippets.

Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ SearchSpec \ SearchResultList \ SearchResult \ UnstructuredDocumentInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ page_identifier string

Page identifier.

↳ content string

Extractive segment content.

getPageIdentifier

Page identifier.

Returns
Type Description
string

setPageIdentifier

Page identifier.

Parameter
Name Description
var string
Returns
Type Description
$this

getContent

Extractive segment content.

Returns
Type Description
string

setContent

Extractive segment content.

Parameter
Name Description
var string
Returns
Type Description
$this