Google Cloud Discovery Engine V1 Client - Class Observation (1.3.1)

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

Observation.

Generated from protobuf message google.cloud.discoveryengine.v1.Answer.Step.Action.Observation

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Answer \ Step \ Action

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ search_results array<Observation\SearchResult>

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

getSearchResults

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSearchResults

Search results observed by the search action, it can be snippets info or chunk info, depending on the citation type set by the user.

Parameter
Name Description
var array<Observation\SearchResult>
Returns
Type Description
$this