Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

Rich Business Messaging (RBM) Card content

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent.



4936
4937
4938
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4936

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Optional. Description of the card (at most 2000 bytes). At least one of the title, description or media must be set. Corresponds to the JSON property description

Returns:

  • (String)


4905
4906
4907
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4905

def description
  @description
end

#mediaGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia

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 Corresponds to the JSON property media



4923
4924
4925
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4923

def media
  @media
end

#suggestionsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion>

Optional. List of suggestions to include in the card. Corresponds to the JSON property suggestions



4928
4929
4930
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4928

def suggestions
  @suggestions
end

#titleString

Optional. Title of the card (at most 200 bytes). At least one of the title, description or media must be set. Corresponds to the JSON property title

Returns:

  • (String)


4934
4935
4936
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4934

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4941
4942
4943
4944
4945
4946
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 4941

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @media = args[:media] if args.key?(:media)
  @suggestions = args[:suggestions] if args.key?(:suggestions)
  @title = args[:title] if args.key?(:title)
end