Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ResponseMediaObject.
Response media object for media content card.
Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. Name of media card. |
↳ description |
string
Optional. Description of media card. |
↳ large_image |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
Optional. Image to display above media content. |
↳ icon |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
Optional. Icon to display above media content. |
↳ content_url |
string
Required. Url where the media is stored. |
getName
Required. Name of media card.
Generated from protobuf field string name = 1;
Returns | |
---|---|
Type | Description |
string |
setName
Required. Name of media card.
Generated from protobuf field string name = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
Optional. Description of media card.
Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
string |
setDescription
Optional. Description of media card.
Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLargeImage
Optional. Image to display above media content.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null |
hasLargeImage
setLargeImage
Optional. Image to display above media content.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image large_image = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
|
Returns | |
---|---|
Type | Description |
$this |
getIcon
Optional. Icon to display above media content.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null |
hasIcon
setIcon
Optional. Icon to display above media content.
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.Image icon = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\Intent\Message\Image
|
Returns | |
---|---|
Type | Description |
$this |
getContentUrl
Required. Url where the media is stored.
Generated from protobuf field string content_url = 5;
Returns | |
---|---|
Type | Description |
string |
setContentUrl
Required. Url where the media is stored.
Generated from protobuf field string content_url = 5;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getImage
Returns | |
---|---|
Type | Description |
string |