# Class PredictResponse (0.13.1)

0.13.1 (latest) 0.13.0 0.12.0 0.11.0 0.10.18 0.9.0 0.8.2 0.7.1 0.6.2 0.5.1 0.4.0 0.3.3 0.2.2 0.1.0

    PredictResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for predict method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `results` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/recommendationengine/latest/google.cloud.recommendationengine_v1beta1.types.PredictResponse.PredictionResult]` A list of recommended items. The order represents the ranking (from the most relevant item to the least). |
| `recommendation_token` | `str` 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. |
| `items_missing_in_catalog` | `MutableSequence[str]` IDs of items in the request that were missing from the catalog. |
| `dry_run` | `bool` True if the dryRun property was set in the request. |
| `metadata` | `MutableMapping[str, google.protobuf.struct_pb2.Value]` Additional domain specific prediction response metadata. |
| `next_page_token` | `str` If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token. |

## Classes

### MetadataEntry

    MetadataEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### PredictionResult

    PredictionResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PredictionResult represents the recommendation prediction
results.