Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedFindDocumentSuggestion

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 a FindDocument suggestion type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedFindDocumentSuggestion

Returns a new instance of AppsDynamiteSharedFindDocumentSuggestion.



1608
1609
1610
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1608

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

Instance Attribute Details

#document_suggestionsArray<Google::Apis::CloudsearchV1::AppsDynamiteSharedDocument>

List of documents to render as suggestions. Corresponds to the JSON property documentSuggestions



1600
1601
1602
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1600

def document_suggestions
  @document_suggestions
end

#show_action_buttonsBoolean Also known as: show_action_buttons?

Whether to show the action buttons in the card for the suggestions. Corresponds to the JSON property showActionButtons

Returns:

  • (Boolean)


1605
1606
1607
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1605

def show_action_buttons
  @show_action_buttons
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1613
1614
1615
1616
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1613

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