Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessageBasicCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageBasicCard

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageBasicCard.



18587
18588
18589
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18587

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

Instance Attribute Details

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

Corresponds to the JSON property buttons



18565
18566
18567
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18565

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


18570
18571
18572
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18570

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessageImage

Corresponds to the JSON property image



18575
18576
18577
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18575

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


18580
18581
18582
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18580

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


18585
18586
18587
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18585

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18592
18593
18594
18595
18596
18597
18598
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18592

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