Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
Returns a new instance of GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion.
4587 4588 4589 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4587 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
4580 4581 4582 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4580 def completable_field_paths @completable_field_paths end |
#suggestion ⇒ String
The suggestion for the query.
Corresponds to the JSON property suggestion
4585 4586 4587 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4585 def suggestion @suggestion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4592 4593 4594 4595 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4592 def update!(**args) @completable_field_paths = args[:completable_field_paths] if args.key?(:completable_field_paths) @suggestion = args[:suggestion] if args.key?(:suggestion) end |