Class: Google::Apis::CloudsearchV1::SuggestRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SuggestRequest
- 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
Request of suggest API.
Instance Attribute Summary collapse
-
#data_source_restrictions ⇒ Array<Google::Apis::CloudsearchV1::DataSourceRestriction>
The sources to use for suggestions.
-
#query ⇒ String
Partial query for which autocomplete suggestions will be shown.
-
#request_options ⇒ Google::Apis::CloudsearchV1::RequestOptions
Shared request options for all RPC methods.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SuggestRequest
constructor
A new instance of SuggestRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SuggestRequest
Returns a new instance of SuggestRequest.
19574 19575 19576 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_restrictions ⇒ Array<Google::Apis::CloudsearchV1::DataSourceRestriction>
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
19560 19561 19562 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19560 def data_source_restrictions @data_source_restrictions end |
#query ⇒ String
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
19567 19568 19569 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19567 def query @query end |
#request_options ⇒ Google::Apis::CloudsearchV1::RequestOptions
Shared request options for all RPC methods.
Corresponds to the JSON property requestOptions
19572 19573 19574 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19572 def @request_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19579 19580 19581 19582 19583 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19579 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 |