Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard

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

The basic card message. Useful for displaying information.

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) ⇒ GoogleCloudDialogflowV2beta1IntentMessageBasicCard

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageBasicCard



3008
3009
3010
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3008

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

Instance Attribute Details

#buttonsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>

Optional. The collection of card buttons. Corresponds to the JSON property buttons



2986
2987
2988
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2986

def buttons
  @buttons
end

#formatted_textString

Required, unless image is present. The body text of the card. Corresponds to the JSON property formattedText

Returns:

  • (String)


2991
2992
2993
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2991

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage

The image response message. Corresponds to the JSON property image



2996
2997
2998
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2996

def image
  @image
end

#subtitleString

Optional. The subtitle of the card. Corresponds to the JSON property subtitle

Returns:

  • (String)


3001
3002
3003
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3001

def subtitle
  @subtitle
end

#titleString

Optional. The title of the card. Corresponds to the JSON property title

Returns:

  • (String)


3006
3007
3008
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3006

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3013
3014
3015
3016
3017
3018
3019
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3013

def update!(**args)
  @buttons = args[:buttons] if args.key?(:buttons)
  @formatted_text = args[:formatted_text] if args.key?(:formatted_text)
  @image = args[:image] if args.key?(:image)
  @subtitle = args[:subtitle] if args.key?(:subtitle)
  @title = args[:title] if args.key?(:title)
end