Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentJustification
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentJustification
- 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
-
#justification ⇒ String
A locale aware message that explains why this document was selected.
-
#reason ⇒ String
Reason on why the document is selected.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocumentJustification
constructor
A new instance of EnterpriseTopazSidekickCommonDocumentJustification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocumentJustification
Returns a new instance of EnterpriseTopazSidekickCommonDocumentJustification.
1979 1980 1981 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1979 def initialize(**args) update!(**args) end |
Instance Attribute Details
#justification ⇒ String
A locale aware message that explains why this document was selected.
Corresponds to the JSON property justification
1972 1973 1974 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1972 def justification @justification end |
#reason ⇒ String
Reason on why the document is selected. Populate for trending documents.
Corresponds to the JSON property reason
1977 1978 1979 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1977 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1984 1985 1986 1987 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1984 def update!(**args) @justification = args[:justification] if args.key?(:justification) @reason = args[:reason] if args.key?(:reason) end |