Recommendations AI v1beta1 API - Class PredictResponse (2.0.0-beta04)

public sealed class PredictResponse : IMessage<PredictResponse>, IEquatable<PredictResponse>, IDeepCloneable<PredictResponse>, IBufferMessage, IMessage, IPageResponse<PredictResponse.Types.PredictionResult>, IEnumerable<PredictResponse.Types.PredictionResult>, IEnumerable

Reference documentation and code samples for the Recommendations AI v1beta1 API class PredictResponse.

Response message for predict method.

Inheritance

object > PredictResponse

Namespace

Google.Cloud.RecommendationEngine.V1Beta1

Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

Constructors

PredictResponse()

public PredictResponse()

PredictResponse(PredictResponse)

public PredictResponse(PredictResponse other)
Parameter
NameDescription
otherPredictResponse

Properties

DryRun

public bool DryRun { get; set; }

True if the dryRun property was set in the request.

Property Value
TypeDescription
bool

ItemsMissingInCatalog

public RepeatedField<string> ItemsMissingInCatalog { get; }

IDs of items in the request that were missing from the catalog.

Property Value
TypeDescription
RepeatedFieldstring

Metadata

public MapField<string, Value> Metadata { get; }

Additional domain specific prediction response metadata.

Property Value
TypeDescription
MapFieldstringValue

NextPageToken

public string NextPageToken { get; set; }

If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.

Property Value
TypeDescription
string

RecommendationToken

public string RecommendationToken { get; set; }

A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

Property Value
TypeDescription
string

Results

public RepeatedField<PredictResponse.Types.PredictionResult> Results { get; }

A list of recommended items. The order represents the ranking (from the most relevant item to the least).

Property Value
TypeDescription
RepeatedFieldPredictResponseTypesPredictionResult

Methods

GetEnumerator()

public IEnumerator<PredictResponse.Types.PredictionResult> GetEnumerator()

Returns an enumerator that iterates through the resources in this response.

Returns
TypeDescription
IEnumeratorPredictResponseTypesPredictionResult