Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class DocumentContext.
Document context.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ SearchSpec \ SearchResultList \ SearchResult \ UnstructuredDocumentInfoMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ page_identifier |
string
Page identifier. |
↳ content |
string
Document content to be used for answer generation. |
getPageIdentifier
Page identifier.
Returns | |
---|---|
Type | Description |
string |
setPageIdentifier
Page identifier.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getContent
Document content to be used for answer generation.
Returns | |
---|---|
Type | Description |
string |
setContent
Document content to be used for answer generation.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |