Google Cloud Dialogflow V2 Client - Class OpenUrlAction (1.0.1)

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

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

Generated from protobuf field string url = 1;

Returns
TypeDescription
string

setUrl

Required. URL

Generated from protobuf field string url = 1;

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.

Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

setUrlTypeHint

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

Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var int
Returns
TypeDescription
$this