Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessage

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

Returns a new instance of GoogleCloudDialogflowV2IntentMessage.



14706
14707
14708
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14706

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

Instance Attribute Details

#basic_cardGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCard

Corresponds to the JSON property basicCard



14634
14635
14636
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14634

def basic_card
  @basic_card
end

Corresponds to the JSON property browseCarouselCard



14639
14640
14641
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14639

def browse_carousel_card
  @browse_carousel_card
end

#cardGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageCard

Corresponds to the JSON property card



14644
14645
14646
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14644

def card
  @card
end

Corresponds to the JSON property carouselSelect



14649
14650
14651
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14649

def carousel_select
  @carousel_select
end

#imageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property image



14654
14655
14656
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14654

def image
  @image
end

Corresponds to the JSON property linkOutSuggestion



14659
14660
14661
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14659

def link_out_suggestion
  @link_out_suggestion
end

#list_selectGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageListSelect

Corresponds to the JSON property listSelect



14664
14665
14666
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14664

def list_select
  @list_select
end

#media_contentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageMediaContent

Corresponds to the JSON property mediaContent



14669
14670
14671
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14669

def media_content
  @media_content
end

#payloadHash<String,Object>

Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


14674
14675
14676
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14674

def payload
  @payload
end

#platformString

Corresponds to the JSON property platform

Returns:

  • (String)


14679
14680
14681
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14679

def platform
  @platform
end

#quick_repliesGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageQuickReplies

Corresponds to the JSON property quickReplies



14684
14685
14686
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14684

def quick_replies
  @quick_replies
end

#simple_responsesGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageSimpleResponses

Corresponds to the JSON property simpleResponses



14689
14690
14691
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14689

def simple_responses
  @simple_responses
end

#suggestionsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageSuggestions

Corresponds to the JSON property suggestions



14694
14695
14696
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14694

def suggestions
  @suggestions
end

#table_cardGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageTableCard

Corresponds to the JSON property tableCard



14699
14700
14701
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14699

def table_card
  @table_card
end

#textGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageText

Corresponds to the JSON property text



14704
14705
14706
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14704

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14711

def update!(**args)
  @basic_card = args[:basic_card] if args.key?(:basic_card)
  @browse_carousel_card = args[:browse_carousel_card] if args.key?(:browse_carousel_card)
  @card = args[:card] if args.key?(:card)
  @carousel_select = args[:carousel_select] if args.key?(:carousel_select)
  @image = args[:image] if args.key?(:image)
  @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion)
  @list_select = args[:list_select] if args.key?(:list_select)
  @media_content = args[:media_content] if args.key?(:media_content)
  @payload = args[:payload] if args.key?(:payload)
  @platform = args[:platform] if args.key?(:platform)
  @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
  @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
  @suggestions = args[:suggestions] if args.key?(:suggestions)
  @table_card = args[:table_card] if args.key?(:table_card)
  @text = args[:text] if args.key?(:text)
end