Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Specification of each suggestion type.
Instance Attribute Summary collapse
-
#max_suggestions ⇒ Fixnum
Optional.
-
#suggestion_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec
Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec.
17771 17772 17773 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17771 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_suggestions ⇒ Fixnum
Optional. Maximum number of suggestions to return for each suggestion type.
Corresponds to the JSON property maxSuggestions
17764 17765 17766 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17764 def max_suggestions @max_suggestions end |
#suggestion_type ⇒ String
Optional. Suggestion type.
Corresponds to the JSON property suggestionType
17769 17770 17771 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17769 def suggestion_type @suggestion_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17776 17777 17778 17779 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17776 def update!(**args) @max_suggestions = args[:max_suggestions] if args.key?(:max_suggestions) @suggestion_type = args[:suggestion_type] if args.key?(:suggestion_type) end |