Class: Google::Cloud::DiscoveryEngine::V1::CompletionSuggestion

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#alternative_phrases::Array<::String>

Returns Alternative matching phrases for this suggestion.

Returns:

  • (::Array<::String>)

    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.

Returns:

  • (::Integer)

    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.

Returns:

  • (::Float)

    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.

Returns:

  • (::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.

Returns:

  • (::Float)

    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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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