Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::RecommendResponse::RecommendationResult.
RecommendationResult represents a generic recommendation result with associated metadata.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#document
def document() -> ::Google::Cloud::DiscoveryEngine::V1beta::Document
-
(::Google::Cloud::DiscoveryEngine::V1beta::Document) — Set if
returnDocument
is set to true in RecommendRequest.params.
#document=
def document=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Document
-
value (::Google::Cloud::DiscoveryEngine::V1beta::Document) — Set if
returnDocument
is set to true in RecommendRequest.params.
-
(::Google::Cloud::DiscoveryEngine::V1beta::Document) — Set if
returnDocument
is set to true in RecommendRequest.params.
#id
def id() -> ::String
- (::String) — Resource ID of the recommended Document.
#id=
def id=(value) -> ::String
- value (::String) — Resource ID of the recommended Document.
- (::String) — Resource ID of the recommended Document.
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
-
(::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional Document metadata / annotations.
Possible values:
score
: Recommendation score in double value. Is set ifreturnScore
is set to true in RecommendRequest.params.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
-
value (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional Document metadata / annotations.
Possible values:
score
: Recommendation score in double value. Is set ifreturnScore
is set to true in RecommendRequest.params.
-
(::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional Document metadata / annotations.
Possible values:
score
: Recommendation score in double value. Is set ifreturnScore
is set to true in RecommendRequest.params.