Google Cloud Dialogflow V2 Client - Class MediaContent (2.1.2)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class MediaContent.

The media content card for Actions on Google.

Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.MediaContent

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ media_type
int

Optional. What type of media is the content (ie "audio").

↳ media_objects
array< MediaContent\ResponseMediaObject >

Required. List of media objects.

getMediaType

Optional. What type of media is the content (ie "audio").

Returns
Type
Description
int
Enum of type ResponseMediaType .

setMediaType

Optional. What type of media is the content (ie "audio").

Parameter
Name
Description
var
int

Enum of type ResponseMediaType .

Returns
Type
Description
$this

getMediaObjects

Required. List of media objects.

Returns
Type
Description

setMediaObjects

Required. List of media objects.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: