Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FreeFormSuggestion

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

Overview

Suggestion generated using free form generator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1FreeFormSuggestion

Returns a new instance of GoogleCloudContactcenterinsightsV1FreeFormSuggestion.



2252
2253
2254
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2252

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

Instance Attribute Details

#labelsArray<String>

Optional. Labels for the generator. Corresponds to the JSON property labels

Returns:

  • (Array<String>)


2245
2246
2247
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2245

def labels
  @labels
end

#responseString

Required. Free form suggestion. Corresponds to the JSON property response

Returns:

  • (String)


2250
2251
2252
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2250

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2257
2258
2259
2260
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2257

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