Struct google_api_proto::google::cloud::retail::v2::CollectUserEventRequest
source · pub struct CollectUserEventRequest {
pub parent: String,
pub user_event: String,
pub uri: String,
pub ets: i64,
pub raw_json: String,
pub conversion_rule: Option<ConversionRule>,
}
Expand description
Request message for CollectUserEvent method.
Fields§
§parent: String
Required. The parent catalog name, such as
projects/1234/locations/global/catalogs/default_catalog
.
user_event: String
Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters.
uri: String
The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for 3rd party requests.
ets: i64
The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes.
raw_json: String
An arbitrary serialized JSON string that contains necessary information that can comprise a user event. When this field is specified, the user_event field will be ignored. Note: line-delimited JSON is not supported, a single JSON only.
conversion_rule: Option<ConversionRule>
The rule that can convert the raw_json to a user event. It is needed only when the raw_json is set.
Trait Implementations§
source§impl Clone for CollectUserEventRequest
impl Clone for CollectUserEventRequest
source§fn clone(&self) -> CollectUserEventRequest
fn clone(&self) -> CollectUserEventRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CollectUserEventRequest
impl Debug for CollectUserEventRequest
source§impl Default for CollectUserEventRequest
impl Default for CollectUserEventRequest
source§impl Message for CollectUserEventRequest
impl Message for CollectUserEventRequest
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 CollectUserEventRequest
impl PartialEq for CollectUserEventRequest
source§fn eq(&self, other: &CollectUserEventRequest) -> bool
fn eq(&self, other: &CollectUserEventRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CollectUserEventRequest
Auto Trait Implementations§
impl Freeze for CollectUserEventRequest
impl RefUnwindSafe for CollectUserEventRequest
impl Send for CollectUserEventRequest
impl Sync for CollectUserEventRequest
impl Unpin for CollectUserEventRequest
impl UnwindSafe for CollectUserEventRequest
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