Class: Google::Cloud::DiscoveryEngine::V1::CompletionSuggestion
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1::CompletionSuggestion
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1/completion.rb
Overview
Autocomplete suggestions that are imported from Customer.
Instance Attribute Summary collapse
-
#alternative_phrases ⇒ ::Array<::String>
Alternative matching phrases for this suggestion.
-
#frequency ⇒ ::Integer
Frequency of this suggestion.
-
#global_score ⇒ ::Float
Global score of this suggestion.
-
#group_id ⇒ ::String
If two suggestions have the same groupId, they will not be returned together.
-
#group_score ⇒ ::Float
The score of this suggestion within its group.
-
#language_code ⇒ ::String
BCP-47 language code of this suggestion.
-
#suggestion ⇒ ::String
Required.
Instance Attribute Details
#alternative_phrases ⇒ ::Array<::String>
Returns Alternative matching phrases for this suggestion.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#frequency ⇒ ::Integer
Returns Frequency of this suggestion. Will be used to rank suggestions when score is not available.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#global_score ⇒ ::Float
Returns Global score of this suggestion. Control how this suggestion would be scored / ranked.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#group_id ⇒ ::String
If two suggestions have the same groupId, they will not be returned together. Instead the one ranked higher will be returned. This can be used to deduplicate semantically identical suggestions.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#group_score ⇒ ::Float
Returns The score of this suggestion within its group.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_code ⇒ ::String
Returns BCP-47 language code of this suggestion.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#suggestion ⇒ ::String
Returns Required. The suggestion text.
77 78 79 80 |
# File 'proto_docs/google/cloud/discoveryengine/v1/completion.rb', line 77 class CompletionSuggestion include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |