Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage

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

Overview

The image response message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessageImage

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessageImage.



10835
10836
10837
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10835

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

Instance Attribute Details

#accessibility_textString

A text description of the image to be used for accessibility, e.g., screen readers. Required if image_uri is set for CarouselSelect. Corresponds to the JSON property accessibilityText

Returns:

  • (String)


10828
10829
10830
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10828

def accessibility_text
  @accessibility_text
end

#image_uriString

Optional. The public URI to an image file. Corresponds to the JSON property imageUri

Returns:

  • (String)


10833
10834
10835
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10833

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10840
10841
10842
10843
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10840

def update!(**args)
  @accessibility_text = args[:accessibility_text] if args.key?(:accessibility_text)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
end