Struct google_api_proto::google::cloud::retail::v2::user_event_service_client::UserEventServiceClient
source · pub struct UserEventServiceClient<T> { /* private fields */ }
Expand description
Service for ingesting end user actions on the customer website.
Implementations§
source§impl<T> UserEventServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> UserEventServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> UserEventServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn write_user_event(
&mut self,
request: impl IntoRequest<WriteUserEventRequest>,
) -> Result<Response<UserEvent>, Status>
pub async fn write_user_event( &mut self, request: impl IntoRequest<WriteUserEventRequest>, ) -> Result<Response<UserEvent>, Status>
Writes a single user event.
sourcepub async fn collect_user_event(
&mut self,
request: impl IntoRequest<CollectUserEventRequest>,
) -> Result<Response<HttpBody>, Status>
pub async fn collect_user_event( &mut self, request: impl IntoRequest<CollectUserEventRequest>, ) -> Result<Response<HttpBody>, Status>
Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain.
This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
sourcepub async fn purge_user_events(
&mut self,
request: impl IntoRequest<PurgeUserEventsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn purge_user_events( &mut self, request: impl IntoRequest<PurgeUserEventsRequest>, ) -> Result<Response<Operation>, Status>
Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.
sourcepub async fn import_user_events(
&mut self,
request: impl IntoRequest<ImportUserEventsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn import_user_events( &mut self, request: impl IntoRequest<ImportUserEventsRequest>, ) -> Result<Response<Operation>, Status>
Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events.
Operation.response
is of type ImportResponse
. Note that it is
possible for a subset of the items to be successfully inserted.
Operation.metadata
is of type ImportMetadata
.
sourcepub async fn rejoin_user_events(
&mut self,
request: impl IntoRequest<RejoinUserEventsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn rejoin_user_events( &mut self, request: impl IntoRequest<RejoinUserEventsRequest>, ) -> Result<Response<Operation>, Status>
Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.
Trait Implementations§
source§impl<T: Clone> Clone for UserEventServiceClient<T>
impl<T: Clone> Clone for UserEventServiceClient<T>
source§fn clone(&self) -> UserEventServiceClient<T>
fn clone(&self) -> UserEventServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for UserEventServiceClient<T>
impl<T> RefUnwindSafe for UserEventServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for UserEventServiceClient<T>where
T: Send,
impl<T> Sync for UserEventServiceClient<T>where
T: Sync,
impl<T> Unpin for UserEventServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for UserEventServiceClient<T>where
T: UnwindSafe,
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