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

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
Boolean

ItemsMissingInCatalog

public RepeatedField<string> ItemsMissingInCatalog { get; }

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

Property Value
TypeDescription
RepeatedField<String>

Metadata

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

Additional domain specific prediction response metadata.

Property Value
TypeDescription
MapField<String, Value>

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
RepeatedField<PredictResponse.Types.PredictionResult>

Methods

GetEnumerator()

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

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

Returns
TypeDescription
IEnumerator<PredictResponse.Types.PredictionResult>

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()
Returns
TypeDescription
IEnumerator