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.



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

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

Instance Attribute Details

#answerString

The free text answer. Corresponds to the JSON property answer

Returns:

  • (String)


1481
1482
1483
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1481

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)


1486
1487
1488
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1486

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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