Class: Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/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

Instance Attribute Details

#media_objects::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent::ResponseMediaObject>

Returns Required. List of media objects.

Returns:



606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 606

class MediaContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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.
  #
  #     Note: The following fields are mutually exclusive: `large_image`, `icon`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] icon
  #   @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image]
  #     Optional. Icon to display above media content.
  #
  #     Note: The following fields are mutually exclusive: `icon`, `large_image`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] content_url
  #   @return [::String]
  #     Required. Url where the media is stored.
  class ResponseMediaObject
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  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").

Returns:



606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'proto_docs/google/cloud/dialogflow/v2/intent.rb', line 606

class MediaContent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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.
  #
  #     Note: The following fields are mutually exclusive: `large_image`, `icon`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] icon
  #   @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image]
  #     Optional. Icon to display above media content.
  #
  #     Note: The following fields are mutually exclusive: `icon`, `large_image`. If a field in that set is populated, all other fields in the set will automatically be cleared.
  # @!attribute [rw] content_url
  #   @return [::String]
  #     Required. Url where the media is stored.
  class ResponseMediaObject
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Format of response media type.
  module ResponseMediaType
    # Unspecified.
    RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0

    # Response media type is audio.
    AUDIO = 1
  end
end