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 | |
|---|---|
| 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
Generated from protobuf field string url = 1;
| Returns | |
|---|---|
| Type | Description |
string |
|
setUrl
Required. URL
Generated from protobuf field string url = 1;
| 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.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint url_type_hint = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|