class Google::Apis::CloudsearchV1::SuggestResult

One suggestion result.

Attributes

people_suggestion[RW]

This field contains information about the person being suggested. Corresponds to the JSON property `peopleSuggestion` @return [Google::Apis::CloudsearchV1::PeopleSuggestion]

query_suggestion[RW]

This field does not contain anything as of now and is just used as an indicator that the suggest result was a phrase completion. Corresponds to the JSON property `querySuggestion` @return [Google::Apis::CloudsearchV1::QuerySuggestion]

source[RW]

Defines sources for the suggest/search APIs. Corresponds to the JSON property `source` @return [Google::Apis::CloudsearchV1::Source]

suggested_query[RW]

The suggested query that will be used for search, when the user clicks on the suggestion Corresponds to the JSON property `suggestedQuery` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4779
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 4784
def update!(**args)
  @people_suggestion = args[:people_suggestion] if args.key?(:people_suggestion)
  @query_suggestion = args[:query_suggestion] if args.key?(:query_suggestion)
  @source = args[:source] if args.key?(:source)
  @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
end