userEvent property

GoogleCloudRetailV2UserEvent? userEvent
getter/setter pair

Context about the user, what they are looking at and what action they took to trigger the predict request.

Note that this user event detail won't be ingested to userEvent logs. Thus, a separate userEvent write request is required for event logging. Don't set UserEvent.visitor_id or UserInfo.user_id to the same fixed ID for different users. If you are trying to receive non-personalized recommendations (not recommended; this can negatively impact model performance), instead set UserEvent.visitor_id to a random unique ID and leave UserInfo.user_id unset.

Required.

Implementation

GoogleCloudRetailV2UserEvent? userEvent;