Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Suggestions as search queries.
Instance Attribute Summary collapse
-
#completable_field_paths ⇒ Array<String>
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.
-
#suggestion ⇒ String
The suggestion for the query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
constructor
A new instance of GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
Returns a new instance of GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion.
2543 2544 2545 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#completable_field_paths ⇒ Array<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
2536 2537 2538 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2536 def completable_field_paths @completable_field_paths end |
#suggestion ⇒ String
The suggestion for the query.
Corresponds to the JSON property suggestion
2541 2542 2543 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2541 def suggestion @suggestion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2548 2549 2550 2551 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2548 def update!(**args) @completable_field_paths = args[:completable_field_paths] if args.key?(:completable_field_paths) @suggestion = args[:suggestion] if args.key?(:suggestion) end |