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.



1496
1497
1498
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1496

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



1489
1490
1491
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1489

def labeled_answer
  @labeled_answer
end

#typeString

Answer type. Corresponds to the JSON property type

Returns:

  • (String)


1494
1495
1496
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1494

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1501
1502
1503
1504
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1501

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