Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject

Returns a new instance of GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject.



12640
12641
12642
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12640

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

Instance Attribute Details

#content_urlString

Corresponds to the JSON property contentUrl

Returns:

  • (String)


12618
12619
12620
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12618

def content_url
  @content_url
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


12623
12624
12625
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12623

def description
  @description
end

#iconGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property icon



12628
12629
12630
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12628

def icon
  @icon
end

#large_imageGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageImage

Corresponds to the JSON property largeImage



12633
12634
12635
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12633

def large_image
  @large_image
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12638
12639
12640
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12638

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12645
12646
12647
12648
12649
12650
12651
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12645

def update!(**args)
  @content_url = args[:content_url] if args.key?(:content_url)
  @description = args[:description] if args.key?(:description)
  @icon = args[:icon] if args.key?(:icon)
  @large_image = args[:large_image] if args.key?(:large_image)
  @name = args[:name] if args.key?(:name)
end