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

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
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ search_resultsarray<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
TypeDescription
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
NameDescription
vararray<Observation\SearchResult>
Returns
TypeDescription
$this