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.



18482
18483
18484
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18482

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

Instance Attribute Details

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

Corresponds to the JSON property buttons



18460
18461
18462
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18460

def buttons
  @buttons
end

#formatted_textString

Corresponds to the JSON property formattedText

Returns:

  • (String)


18465
18466
18467
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18465

def formatted_text
  @formatted_text
end

#imageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentMessageImage

Corresponds to the JSON property image



18470
18471
18472
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18470

def image
  @image
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


18475
18476
18477
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18475

def subtitle
  @subtitle
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


18480
18481
18482
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18480

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18487
18488
18489
18490
18491
18492
18493
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 18487

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