Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentJustification

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

Justification of why we are reporting the document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocumentJustification

Returns a new instance of EnterpriseTopazSidekickCommonDocumentJustification.



2012
2013
2014
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2012

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

Instance Attribute Details

#justificationString

A locale aware message that explains why this document was selected. Corresponds to the JSON property justification

Returns:

  • (String)


2005
2006
2007
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2005

def justification
  @justification
end

#reasonString

Reason on why the document is selected. Populate for trending documents. Corresponds to the JSON property reason

Returns:

  • (String)


2010
2011
2012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2010

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2017
2018
2019
2020
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2017

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