Google Cloud Dialogflow V2 Client - Class Web (2.8.0)

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

A Web chunk is a piece of evidence that comes from a web page. It contains the URI of the web page, the title of the page, and the domain of the page. This is used to provide the user with a link to the source of the information.

Generated from protobuf message google.cloud.dialogflow.v2.GroundingChunk.Web

Namespace

Google \ Cloud \ Dialogflow \ V2 \ GroundingChunk

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ uri string

Output only. The URI of the web page that contains the evidence.

↳ title string

Output only. The title of the web page that contains the evidence.

↳ domain string

Output only. The domain of the web page that contains the evidence. This can be used to filter out low-quality sources.

getUri

Output only. The URI of the web page that contains the evidence.

Returns
Type Description
string

setUri

Output only. The URI of the web page that contains the evidence.

Parameter
Name Description
var string
Returns
Type Description
$this

getTitle

Output only. The title of the web page that contains the evidence.

Returns
Type Description
string

setTitle

Output only. The title of the web page that contains the evidence.

Parameter
Name Description
var string
Returns
Type Description
$this

getDomain

Output only. The domain of the web page that contains the evidence. This can be used to filter out low-quality sources.

Returns
Type Description
string

setDomain

Output only. The domain of the web page that contains the evidence. This can be used to filter out low-quality sources.

Parameter
Name Description
var string
Returns
Type Description
$this