Struct google_api_proto::google::cloud::recommendationengine::v1beta1::EventDetail
source · pub struct EventDetail {
pub uri: String,
pub referrer_uri: String,
pub page_view_id: String,
pub experiment_ids: Vec<String>,
pub recommendation_token: String,
pub event_attributes: Option<FeatureMap>,
}
Expand description
User event details shared by all recommendation types.
Fields§
§uri: String
Optional. Complete url (window.location.href) of the user’s current page. When using the JavaScript pixel, this value is filled in automatically. Maximum length 5KB.
referrer_uri: String
Optional. The referrer url of the current page. When using the JavaScript pixel, this value is filled in automatically.
page_view_id: String
Optional. A unique id of a web page view.
This should be kept the same for all user events triggered from the same
pageview. For example, an item detail page view could trigger multiple
events as the user is browsing the page.
The pageViewId
property should be kept the same for all these events so
that they can be grouped together properly. This pageViewId
will be
automatically generated if using the JavaScript pixel.
experiment_ids: Vec<String>
Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).
recommendation_token: String
Optional. Recommendation token included in the recommendation prediction response.
This field enables accurate attribution of recommendation model performance.
This token enables us to accurately attribute page view or purchase back to
the event and the particular predict response containing this
clicked/purchased item. If user clicks on product K in the recommendation
results, pass the PredictResponse.recommendationToken
property as a url
parameter to product K’s page. When recording events on product K’s page,
log the PredictResponse.recommendation_token to this field.
Optional, but highly encouraged for user events that are the result of a recommendation prediction query.
event_attributes: Option<FeatureMap>
Optional. Extra user event features to include in the recommendation model.
For product recommendation, an example of extra user information is traffic_channel, i.e. how user arrives at the site. Users can arrive at the site by coming to the site directly, or coming through Google search, and etc.
Trait Implementations§
source§impl Clone for EventDetail
impl Clone for EventDetail
source§fn clone(&self) -> EventDetail
fn clone(&self) -> EventDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventDetail
impl Debug for EventDetail
source§impl Default for EventDetail
impl Default for EventDetail
source§impl Message for EventDetail
impl Message for EventDetail
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for EventDetail
impl PartialEq for EventDetail
source§fn eq(&self, other: &EventDetail) -> bool
fn eq(&self, other: &EventDetail) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventDetail
Auto Trait Implementations§
impl Freeze for EventDetail
impl RefUnwindSafe for EventDetail
impl Send for EventDetail
impl Sync for EventDetail
impl Unpin for EventDetail
impl UnwindSafe for EventDetail
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request