Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer

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

An answer with a corresponding label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer

Returns a new instance of EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer.



1521
1522
1523
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1521

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

Instance Attribute Details

#answerString

The free text answer. Corresponds to the JSON property answer

Returns:

  • (String)


1514
1515
1516
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1514

def answer
  @answer
end

#labelString

A localized label for the answer (e.g. "Cell phone" vs "Desk phone"). Corresponds to the JSON property label

Returns:

  • (String)


1519
1520
1521
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1519

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1526
1527
1528
1529
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1526

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