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.



1428
1429
1430
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1428

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

Instance Attribute Details

#completable_field_pathArray<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 completableFieldPath

Returns:

  • (Array<String>)


1421
1422
1423
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1421

def completable_field_path
  @completable_field_path
end

#suggestionString

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

Returns:

  • (String)


1426
1427
1428
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1426

def suggestion
  @suggestion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1433
1434
1435
1436
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1433

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