public sealed class UserEventServiceClientImpl : UserEventServiceClient
UserEventService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Remarks
Service for ingesting end user actions on the customer website.
Constructors
UserEventServiceClientImpl(UserEventService.UserEventServiceClient, UserEventServiceSettings)
public UserEventServiceClientImpl(UserEventService.UserEventServiceClient grpcClient, UserEventServiceSettings settings)
Constructs a client wrapper for the UserEventService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | UserEventService.UserEventServiceClient The underlying gRPC client. |
settings | UserEventServiceSettings The base UserEventServiceSettings used within this client. |
Properties
GrpcClient
public override UserEventService.UserEventServiceClient GrpcClient { get; }
The underlying gRPC UserEventService client
Property Value | |
---|---|
Type | Description |
UserEventService.UserEventServiceClient |
ImportUserEventsOperationsClient
public override OperationsClient ImportUserEventsOperationsClient { get; }
The long-running operations client for ImportUserEvents
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PurgeUserEventsOperationsClient
public override OperationsClient PurgeUserEventsOperationsClient { get; }
The long-running operations client for PurgeUserEvents
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
RejoinUserEventsOperationsClient
public override OperationsClient RejoinUserEventsOperationsClient { get; }
The long-running operations client for RejoinUserEvents
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CollectUserEvent(CollectUserEventRequest, CallSettings)
public override HttpBody CollectUserEvent(CollectUserEventRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | CollectUserEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HttpBody | The RPC response. |
CollectUserEventAsync(CollectUserEventRequest, CallSettings)
public override Task<HttpBody> CollectUserEventAsync(CollectUserEventRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | CollectUserEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<HttpBody> | A Task containing the RPC response. |
ImportUserEvents(ImportUserEventsRequest, CallSettings)
public override Operation<ImportUserEventsResponse, ImportMetadata> ImportUserEvents(ImportUserEventsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | ImportUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ImportUserEventsResponse, ImportMetadata> | The RPC response. |
ImportUserEventsAsync(ImportUserEventsRequest, CallSettings)
public override Task<Operation<ImportUserEventsResponse, ImportMetadata>> ImportUserEventsAsync(ImportUserEventsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | ImportUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ImportUserEventsResponse, ImportMetadata>> | A Task containing the RPC response. |
PurgeUserEvents(PurgeUserEventsRequest, CallSettings)
public override Operation<PurgeUserEventsResponse, PurgeMetadata> PurgeUserEvents(PurgeUserEventsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | PurgeUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<PurgeUserEventsResponse, PurgeMetadata> | The RPC response. |
PurgeUserEventsAsync(PurgeUserEventsRequest, CallSettings)
public override Task<Operation<PurgeUserEventsResponse, PurgeMetadata>> PurgeUserEventsAsync(PurgeUserEventsRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | PurgeUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<PurgeUserEventsResponse, PurgeMetadata>> | A Task containing the RPC response. |
RejoinUserEvents(RejoinUserEventsRequest, CallSettings)
public override Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata> RejoinUserEvents(RejoinUserEventsRequest request, CallSettings callSettings = null)
Triggers a user event rejoin operation with latest product catalog. Events will not be annotated with detailed product information if product is missing from the catalog at the time the user event is ingested, and these events are stored as unjoined events with a limited usage on training and serving. This API can be used to trigger a 'join' operation on specified events with latest version of product catalog. It can also be used to correct events joined with wrong product catalog.
Parameters | |
---|---|
Name | Description |
request | RejoinUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata> | The RPC response. |
RejoinUserEventsAsync(RejoinUserEventsRequest, CallSettings)
public override Task<Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> RejoinUserEventsAsync(RejoinUserEventsRequest request, CallSettings callSettings = null)
Triggers a user event rejoin operation with latest product catalog. Events will not be annotated with detailed product information if product is missing from the catalog at the time the user event is ingested, and these events are stored as unjoined events with a limited usage on training and serving. This API can be used to trigger a 'join' operation on specified events with latest version of product catalog. It can also be used to correct events joined with wrong product catalog.
Parameters | |
---|---|
Name | Description |
request | RejoinUserEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> | A Task containing the RPC response. |
WriteUserEvent(WriteUserEventRequest, CallSettings)
public override UserEvent WriteUserEvent(WriteUserEventRequest request, CallSettings callSettings = null)
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
UserEvent | The RPC response. |
WriteUserEventAsync(WriteUserEventRequest, CallSettings)
public override Task<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, CallSettings callSettings = null)
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<UserEvent> | A Task containing the RPC response. |