Class: Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent
- Defined in:
- lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb
Overview
The media content card for Actions on Google.
Defined Under Namespace
Modules: ResponseMediaType Classes: ResponseMediaObject
Instance Attribute Summary collapse
-
#media_objects ⇒ Array<Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>
Required.
-
#media_type ⇒ Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType
Optional.
Instance Attribute Details
#media_objects ⇒ Array<Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>
Returns Required. List of media objects.
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 476 class MediaContent # Response media object for media content card. # @!attribute [rw] name # @return [String] # Required. Name of media card. # @!attribute [rw] description # @return [String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [String] # Required. Url where the media is stored. class ResponseMediaObject; end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end |
#media_type ⇒ Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaType
Returns Optional. What type of media is the content (ie "audio").
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb', line 476 class MediaContent # Response media object for media content card. # @!attribute [rw] name # @return [String] # Required. Name of media card. # @!attribute [rw] description # @return [String] # Optional. Description of media card. # @!attribute [rw] large_image # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Image to display above media content. # @!attribute [rw] icon # @return [Google::Cloud::Dialogflow::V2::Intent::Message::Image] # Optional. Icon to display above media content. # @!attribute [rw] content_url # @return [String] # Required. Url where the media is stored. class ResponseMediaObject; end # Format of response media type. module ResponseMediaType # Unspecified. RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0 # Response media type is audio. AUDIO = 1 end end |