Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion

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

Suggestions as search queries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion

Returns a new instance of GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion.



3708
3709
3710
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3708

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

Instance Attribute Details

#completable_field_pathsArray<String>

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model. Corresponds to the JSON property completableFieldPaths

Returns:

  • (Array<String>)


3701
3702
3703
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3701

def completable_field_paths
  @completable_field_paths
end

#suggestionString

The suggestion for the query. Corresponds to the JSON property suggestion

Returns:

  • (String)


3706
3707
3708
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3706

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3713
3714
3715
3716
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 3713

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