Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class SearchResult.
Search result.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ SearchSpec \ SearchResultListMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ unstructured_document_info |
SearchResult\UnstructuredDocumentInfo
Unstructured document information. |
↳ chunk_info |
SearchResult\ChunkInfo
Chunk information. |
getUnstructuredDocumentInfo
Unstructured document information.
Returns | |
---|---|
Type | Description |
SearchResult\UnstructuredDocumentInfo|null |
hasUnstructuredDocumentInfo
setUnstructuredDocumentInfo
Unstructured document information.
Parameter | |
---|---|
Name | Description |
var |
SearchResult\UnstructuredDocumentInfo
|
Returns | |
---|---|
Type | Description |
$this |
getChunkInfo
Chunk information.
Returns | |
---|---|
Type | Description |
SearchResult\ChunkInfo|null |
hasChunkInfo
setChunkInfo
Chunk information.
Parameter | |
---|---|
Name | Description |
var |
SearchResult\ChunkInfo
|
Returns | |
---|---|
Type | Description |
$this |
getContent
Returns | |
---|---|
Type | Description |
string |