Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedJustification

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

Data for rendering a justification for a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedJustification

Returns a new instance of AppsDynamiteSharedJustification.



2655
2656
2657
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2655

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

Instance Attribute Details

#action_timeString

Time the action took place. Corresponds to the JSON property actionTime

Returns:

  • (String)


2636
2637
2638
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2636

def action_time
  @action_time
end

#action_typeString

Type of action performed on the document. Corresponds to the JSON property actionType

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2641

def action_type
  @action_type
end

#document_ownerGoogle::Apis::CloudsearchV1::AppsDynamiteSharedJustificationPerson

Data for rendering a person associated with a document. Corresponds to the JSON property documentOwner



2646
2647
2648
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2646

def document_owner
  @document_owner
end

#topicsArray<String>

Words or phrases from the user's query that describes the document content. ( Ex: Users query is "Can you share the document about Bullseye?" the extracted topic would be "Bullseye"). Corresponds to the JSON property topics

Returns:

  • (Array<String>)


2653
2654
2655
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2653

def topics
  @topics
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @action_time = args[:action_time] if args.key?(:action_time)
  @action_type = args[:action_type] if args.key?(:action_type)
  @document_owner = args[:document_owner] if args.key?(:document_owner)
  @topics = args[:topics] if args.key?(:topics)
end