Google Cloud Dialogflow V2 Client - Class OpenUrlAction (1.7.2)

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
NameDescription
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
TypeDescription
string

setUrl

Required. URL

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUrlTypeHint

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

Returns
TypeDescription
int

setUrlTypeHint

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this