Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion

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

Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion.



6415
6416
6417
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6415

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


6408
6409
6410
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6408

def labels
  @labels
end

#responseString

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

Returns:

  • (String)


6413
6414
6415
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6413

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6420
6421
6422
6423
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6420

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