class Google::Apis::CloudsearchV1::SuggestRequest
Request of suggest API.
Attributes
The sources to use for suggestions. If not specified, the data sources are taken from the current search application. NOTE: Suggestions are only supported for the following sources: * Third-party data sources * PredefinedSource.PERSON * PredefinedSource.GOOGLE_DRIVE Corresponds to the JSON property `dataSourceRestrictions` @return [Array<Google::Apis::CloudsearchV1::DataSourceRestriction>]
Partial query for which autocomplete suggestions will be shown. For example, if the query is “sea”, then the server might return “season”, “search”, “ seagull” and so on. Corresponds to the JSON property `query` @return [String]
Shared request options for all RPC methods. Corresponds to the JSON property `requestOptions` @return [Google::Apis::CloudsearchV1::RequestOptions]
Public Class Methods
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4722 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudsearch_v1/classes.rb, line 4727 def update!(**args) @data_source_restrictions = args[:data_source_restrictions] if args.key?(:data_source_restrictions) @query = args[:query] if args.key?(:query) @request_options = args[:request_options] if args.key?(:request_options) end