Class: Google::Apis::CloudsearchV1::SuggestRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SuggestRequest
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/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 the completion suggestion.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SuggestRequest
Returns a new instance of SuggestRequest
4458 4459 4460 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4458 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, all data sources
from the current search application are used.
Corresponds to the JSON property dataSourceRestrictions
4446 4447 4448 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4446 def data_source_restrictions @data_source_restrictions end |
#query ⇒ String
Partial query for the completion suggestion.
Corresponds to the JSON property query
4451 4452 4453 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4451 def query @query end |
#request_options ⇒ Google::Apis::CloudsearchV1::RequestOptions
Shared request options for all RPC methods.
Corresponds to the JSON property requestOptions
4456 4457 4458 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4456 def @request_options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4463 4464 4465 4466 4467 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4463 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 |