Google Cloud Dialogflow V2 Client - Class ArticleAnswer (1.9.0)

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

Represents article answer.

Generated from protobuf message google.cloud.dialogflow.v2.ArticleAnswer

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ title string

The article title.

↳ uri string

The article URI.

↳ snippets array

Article snippets.

↳ confidence float

Article match confidence. The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

↳ metadata array|Google\Protobuf\Internal\MapField

A map that contains metadata about the answer and the document from which it originates.

↳ answer_record string

The name of answer record, in the format of "projects/

getTitle

The article title.

Returns
TypeDescription
string

setTitle

The article title.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUri

The article URI.

Returns
TypeDescription
string

setUri

The article URI.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSnippets

Article snippets.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSnippets

Article snippets.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getConfidence

Article match confidence.

The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

Returns
TypeDescription
float

setConfidence

Article match confidence.

The system's confidence score that this article is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain).

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMetadata

A map that contains metadata about the answer and the document from which it originates.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setMetadata

A map that contains metadata about the answer and the document from which it originates.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getAnswerRecord

The name of answer record, in the format of "projects/

Returns
TypeDescription
string

setAnswerRecord

The name of answer record, in the format of "projects/

Parameter
NameDescription
var string
Returns
TypeDescription
$this