Google Cloud Dialogflow V2 Client - Class ResponseMediaObject (1.0.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

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.

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

Required. Name of media card.

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. Description of media card.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
string

setDescription

Optional. Description of media card.

Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Dialogflow\V2\Intent\Message\Image
Returns
TypeDescription
$this

getContentUrl

Required. Url where the media is stored.

Generated from protobuf field string content_url = 5;

Returns
TypeDescription
string

setContentUrl

Required. Url where the media is stored.

Generated from protobuf field string content_url = 5;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImage

Returns
TypeDescription
string