Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1mainRuntimeAnnotationUserInput

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

Explicit input used for generating the answer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1mainRuntimeAnnotationUserInput

Returns a new instance of GoogleCloudContactcenterinsightsV1mainRuntimeAnnotationUserInput.



21248
21249
21250
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 21248

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

Instance Attribute Details

#generator_nameString

The resource name of associated generator. Format: projects//locations// generators/ Corresponds to the JSON property generatorName

Returns:

  • (String)


21235
21236
21237
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 21235

def generator_name
  @generator_name
end

#queryString

Query text. Article Search uses this to store the input query used to generate the search results. Corresponds to the JSON property query

Returns:

  • (String)


21241
21242
21243
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 21241

def query
  @query
end

#query_sourceString

Query source for the answer. Corresponds to the JSON property querySource

Returns:

  • (String)


21246
21247
21248
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 21246

def query_source
  @query_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21253
21254
21255
21256
21257
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 21253

def update!(**args)
  @generator_name = args[:generator_name] if args.key?(:generator_name)
  @query = args[:query] if args.key?(:query)
  @query_source = args[:query_source] if args.key?(:query_source)
end