Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::RecommendResponse.
Response message for Recommend method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attribution_token
def attribution_token() -> ::String
    Returns
    
  - (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
#attribution_token=
def attribution_token=(value) -> ::String
    Parameter
    
  - value (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
    Returns
    
  - (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
#missing_ids
def missing_ids() -> ::Array<::String>
    Returns
    
  - (::Array<::String>) — IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
#missing_ids=
def missing_ids=(value) -> ::Array<::String>
    Parameter
    
  - value (::Array<::String>) — IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
    Returns
    
  - (::Array<::String>) — IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
#results
def results() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>
    Returns
    
  - (::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>) — A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
#results=
def results=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>
    Parameter
    
  - value (::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>) — A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
    Returns
    
  - (::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>) — A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
#validate_only
def validate_only() -> ::Boolean
    Returns
    
  - (::Boolean) — True if RecommendRequest.validate_only was set.
#validate_only=
def validate_only=(value) -> ::Boolean
    Parameter
    
  - value (::Boolean) — True if RecommendRequest.validate_only was set.
    Returns
    
- (::Boolean) — True if RecommendRequest.validate_only was set.