Google Cloud Dialogflow V2 Client - Class ResponseMediaObject (1.17.1)

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

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message \ MediaContent

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.

Returns
Type Description
string

setName

Required. Name of media card.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Optional. Description of media card.

Returns
Type Description
string

setDescription

Optional. Description of media card.

Parameter
Name Description
var string
Returns
Type Description
$this

getLargeImage

Optional. Image to display above media content.

Returns
Type Description
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null

hasLargeImage

setLargeImage

Optional. Image to display above media content.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
Type Description
$this

getIcon

Optional. Icon to display above media content.

Returns
Type Description
Google\Cloud\Dialogflow\V2\Intent\Message\Image|null

hasIcon

setIcon

Optional. Icon to display above media content.

Parameter
Name Description
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
Type Description
$this

getContentUrl

Required. Url where the media is stored.

Returns
Type Description
string

setContentUrl

Required. Url where the media is stored.

Parameter
Name Description
var string
Returns
Type Description
$this

getImage

Returns
Type Description
string