Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported:
Image Types
image/jpeg image/jpg' image/gif image/png
Video Types
video/h263 video/m4v video/mp4 video/mpeg video/mpeg4 video/webm
Instance Attribute Summary collapse
-
#file_uri ⇒ String
Required.
-
#height ⇒ String
Required for cards with vertical orientation.
-
#thumbnail_uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
constructor
A new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia.
4435 4436 4437 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_uri ⇒ String
Required. Publicly reachable URI of the file. The RBM platform
determines the MIME type of the file from the content-type field in
the HTTP headers when the platform fetches the file. The content-type
field must be present and accurate in the HTTP response from the URL.
Corresponds to the JSON property fileUri
4416 4417 4418 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4416 def file_uri @file_uri end |
#height ⇒ String
Required for cards with vertical orientation. The height of the media
within a rich card with a vertical layout. (https://goo.gl/NeFCjz).
For a standalone card with horizontal layout, height is not
customizable, and this field is ignored.
Corresponds to the JSON property height
4424 4425 4426 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4424 def height @height end |
#thumbnail_uri ⇒ String
Optional. Publicly reachable URI of the thumbnail.If you don't
provide a thumbnail URI, the RBM platform displays a blank
placeholder thumbnail until the user's device downloads the file.
Depending on the user's setting, the file may not download
automatically and may require the user to tap a download button.
Corresponds to the JSON property thumbnailUri
4433 4434 4435 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4433 def thumbnail_uri @thumbnail_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4440 4441 4442 4443 4444 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4440 def update!(**args) @file_uri = args[:file_uri] if args.key?(:file_uri) @height = args[:height] if args.key?(:height) @thumbnail_uri = args[:thumbnail_uri] if args.key?(:thumbnail_uri) end |