Google Cloud Dialogflow V2 Client - Class ResponseMediaObject (1.3.2)

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
NameDescription
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.

Returns
TypeDescription
string

setName

Required. Name of media card.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. Description of media card.

Returns
TypeDescription
string

setDescription

Optional. Description of media card.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLargeImage

Optional. Image to display above media content.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null

hasLargeImage

setLargeImage

Optional. Image to display above media content.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
TypeDescription
$this

getIcon

Optional. Icon to display above media content.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null

hasIcon

setIcon

Optional. Icon to display above media content.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
TypeDescription
$this

getContentUrl

Required. Url where the media is stored.

Returns
TypeDescription
string

setContentUrl

Required. Url where the media is stored.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImage

Returns
TypeDescription
string