Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestSuggestionTypeSpec.



17975
17976
17977
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17975

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_suggestionsFixnum

Optional. Maximum number of suggestions to return for each suggestion type. Corresponds to the JSON property maxSuggestions

Returns:

  • (Fixnum)


17968
17969
17970
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17968

def max_suggestions
  @max_suggestions
end

#suggestion_typeString

Optional. Suggestion type. Corresponds to the JSON property suggestionType

Returns:

  • (String)


17973
17974
17975
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17973

def suggestion_type
  @suggestion_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17980
17981
17982
17983
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 17980

def update!(**args)
  @max_suggestions = args[:max_suggestions] if args.key?(:max_suggestions)
  @suggestion_type = args[:suggestion_type] if args.key?(:suggestion_type)
end