Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard

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 card for a single person.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard

Returns a new instance of EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard.



2690
2691
2692
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2690

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

Instance Attribute Details

#answerArray<Google::Apis::CloudsearchV1::SafeHtmlProto>

List of answers. Corresponds to the JSON property answer



2657
2658
2659
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2657

def answer
  @answer
end

#answer_textGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickAnswerAnswerList

A list of answers represented as free text. Corresponds to the JSON property answerText



2662
2663
2664
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2662

def answer_text
  @answer_text
end

#disambiguation_infoGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo

Metadata for disambiguation. Corresponds to the JSON property disambiguationInfo



2667
2668
2669
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2667

def disambiguation_info
  @disambiguation_info
end

#headerGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader

Recommended header to display for the card. Corresponds to the JSON property header



2672
2673
2674
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2672

def header
  @header
end

#response_statusString

The response status. Corresponds to the JSON property responseStatus

Returns:

  • (String)


2677
2678
2679
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2677

def response_status
  @response_status
end

#status_messageString

Localized user friendly message to display to the user in the case of missing data or an error. Corresponds to the JSON property statusMessage

Returns:

  • (String)


2683
2684
2685
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2683

def status_message
  @status_message
end

#subjectGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonPerson

Common representation of a person. Corresponds to the JSON property subject



2688
2689
2690
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2688

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2695
2696
2697
2698
2699
2700
2701
2702
2703
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2695

def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @answer_text = args[:answer_text] if args.key?(:answer_text)
  @disambiguation_info = args[:disambiguation_info] if args.key?(:disambiguation_info)
  @header = args[:header] if args.key?(:header)
  @response_status = args[:response_status] if args.key?(:response_status)
  @status_message = args[:status_message] if args.key?(:status_message)
  @subject = args[:subject] if args.key?(:subject)
end