Google Cloud Dialogflow V2 Client - Class OpenUrlAction (1.12.3)

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

Actions on Google action to open a given url.

Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message \ BrowseCarouselCard \ BrowseCarouselCardItem

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ url string

Required. URL

↳ url_type_hint int

Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.

getUrl

Required. URL

Returns
Type Description
string

setUrl

Required. URL

Parameter
Name Description
var string
Returns
Type Description
$this

getUrlTypeHint

Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.

Returns
Type Description
int

setUrlTypeHint

Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser.

Parameter
Name Description
var int
Returns
Type Description
$this