Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerList

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

Overview

A list of answers represented as free text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerAnswerList

Returns a new instance of EnterpriseTopazSidekickAnswerAnswerList.



1463
1464
1465
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1463

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

Instance Attribute Details

#labeled_answerArray<Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer>

Answers that have a corresponding label. Corresponds to the JSON property labeledAnswer



1456
1457
1458
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1456

def labeled_answer
  @labeled_answer
end

#typeString

Answer type. Corresponds to the JSON property type

Returns:

  • (String)


1461
1462
1463
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1461

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1468
1469
1470
1471
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1468

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