Google Cloud Dialogflow V2 Client - Class AnswerSource (1.17.2)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerSource.

The sources of the answers.

Generated from protobuf message google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource

Namespace

Google \ Cloud \ Dialogflow \ V2 \ SearchKnowledgeAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ title string

The title of the article.

↳ uri string

The URI of the article.

↳ snippet string

The relevant snippet of the article.

↳ metadata Google\Protobuf\Struct

Metadata associated with the article.

getTitle

The title of the article.

Returns
Type Description
string

setTitle

The title of the article.

Parameter
Name Description
var string
Returns
Type Description
$this

getUri

The URI of the article.

Returns
Type Description
string

setUri

The URI of the article.

Parameter
Name Description
var string
Returns
Type Description
$this

getSnippet

The relevant snippet of the article.

Returns
Type Description
string

setSnippet

The relevant snippet of the article.

Parameter
Name Description
var string
Returns
Type Description
$this

getMetadata

Metadata associated with the article.

Returns
Type Description
Google\Protobuf\Struct|null

hasMetadata

clearMetadata

setMetadata

Metadata associated with the article.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this