Google Cloud Dialogflow V2 Client - Class AnswerSource (1.9.0)

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

getTitle

The title of the article.

Returns
TypeDescription
string

setTitle

The title of the article.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUri

The URI of the article.

Returns
TypeDescription
string

setUri

The URI of the article.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnippet

The relevant snippet of the article.

Returns
TypeDescription
string

setSnippet

The relevant snippet of the article.

Parameter
NameDescription
var string
Returns
TypeDescription
$this