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
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<Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent\ResponseMediaObject>
Required. List of media objects. |
getMediaType
Optional. What type of media is the content (ie "audio").
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
setMediaType
Optional. What type of media is the content (ie "audio").
Generated from protobuf field .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getMediaObjects
Required. List of media objects.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setMediaObjects
Required. List of media objects.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\Intent\Message\MediaContent\ResponseMediaObject>
|
Returns | |
---|---|
Type | Description |
$this |