public abstract class UserEventServiceClient
UserEventService client wrapper, for convenient use.
Inheritance
System.Object > UserEventServiceClientNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Remarks
Service for ingesting end user actions on the customer website.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the UserEventService service, which is a host of "retail.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
System.String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default UserEventService scopes.
Property Value | |
---|---|
Type | Description |
System.Collections.Generic.IReadOnlyList<System.String> |
The default UserEventService scopes are:
GrpcClient
public virtual UserEventService.UserEventServiceClient GrpcClient { get; }
The underlying gRPC UserEventService client
Property Value | |
---|---|
Type | Description |
UserEventService.UserEventServiceClient |
ImportUserEventsOperationsClient
public virtual OperationsClient ImportUserEventsOperationsClient { get; }
The long-running operations client for ImportUserEvents
.
Property Value | |
---|---|
Type | Description |
Google.LongRunning.OperationsClient |
PurgeUserEventsOperationsClient
public virtual OperationsClient PurgeUserEventsOperationsClient { get; }
The long-running operations client for PurgeUserEvents
.
Property Value | |
---|---|
Type | Description |
Google.LongRunning.OperationsClient |
RejoinUserEventsOperationsClient
public virtual OperationsClient RejoinUserEventsOperationsClient { get; }
The long-running operations client for RejoinUserEvents
.
Property Value | |
---|---|
Type | Description |
Google.LongRunning.OperationsClient |
Methods
CollectUserEvent(CollectUserEventRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.Api.HttpBody | The RPC response. |
CollectUserEventAsync(CollectUserEventRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.Api.HttpBody> | A Task containing the RPC response. |
CollectUserEventAsync(CollectUserEventRequest, CancellationToken)
public virtual Task<HttpBody> CollectUserEventAsync(CollectUserEventRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | System.Threading.CancellationToken A System.Threading.CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.Api.HttpBody> | A Task containing the RPC response. |
Create()
public static UserEventServiceClient Create()
Synchronously creates a UserEventServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use UserEventServiceClientBuilder.
Returns | |
---|---|
Type | Description |
UserEventServiceClient | The created UserEventServiceClient. |
CreateAsync(CancellationToken)
public static Task<UserEventServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a UserEventServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use UserEventServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | System.Threading.CancellationToken The System.Threading.CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<UserEventServiceClient> | The task representing the created UserEventServiceClient. |
ImportUserEvents(ImportUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<ImportUserEventsResponse, ImportMetadata> | The RPC response. |
ImportUserEventsAsync(ImportUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<ImportUserEventsResponse, ImportMetadata>> | A Task containing the RPC response. |
ImportUserEventsAsync(ImportUserEventsRequest, CancellationToken)
public virtual Task<Operation<ImportUserEventsResponse, ImportMetadata>> ImportUserEventsAsync(ImportUserEventsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | System.Threading.CancellationToken A System.Threading.CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<ImportUserEventsResponse, ImportMetadata>> | A Task containing the RPC response. |
PollOnceImportUserEvents(String, CallSettings)
public virtual Operation<ImportUserEventsResponse, ImportMetadata> PollOnceImportUserEvents(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ImportUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<ImportUserEventsResponse, ImportMetadata> | The result of polling the operation. |
PollOnceImportUserEventsAsync(String, CallSettings)
public virtual Task<Operation<ImportUserEventsResponse, ImportMetadata>> PollOnceImportUserEventsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ImportUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<ImportUserEventsResponse, ImportMetadata>> | A task representing the result of polling the operation. |
PollOncePurgeUserEvents(String, CallSettings)
public virtual Operation<PurgeUserEventsResponse, PurgeMetadata> PollOncePurgeUserEvents(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of PurgeUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<PurgeUserEventsResponse, PurgeMetadata> | The result of polling the operation. |
PollOncePurgeUserEventsAsync(String, CallSettings)
public virtual Task<Operation<PurgeUserEventsResponse, PurgeMetadata>> PollOncePurgeUserEventsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
PurgeUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<PurgeUserEventsResponse, PurgeMetadata>> | A task representing the result of polling the operation. |
PollOnceRejoinUserEvents(String, CallSettings)
public virtual Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata> PollOnceRejoinUserEvents(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of RejoinUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata> | The result of polling the operation. |
PollOnceRejoinUserEventsAsync(String, CallSettings)
public virtual Task<Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> PollOnceRejoinUserEventsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
RejoinUserEvents
.
Parameters | |
---|---|
Name | Description |
operationName | System.String The name of a previously invoked operation. Must not be |
callSettings | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> | A task representing the result of polling the operation. |
PurgeUserEvents(PurgeUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<PurgeUserEventsResponse, PurgeMetadata> | The RPC response. |
PurgeUserEventsAsync(PurgeUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<PurgeUserEventsResponse, PurgeMetadata>> | A Task containing the RPC response. |
PurgeUserEventsAsync(PurgeUserEventsRequest, CancellationToken)
public virtual Task<Operation<PurgeUserEventsResponse, PurgeMetadata>> PurgeUserEventsAsync(PurgeUserEventsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | System.Threading.CancellationToken A System.Threading.CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<PurgeUserEventsResponse, PurgeMetadata>> | A Task containing the RPC response. |
RejoinUserEvents(RejoinUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata> | The RPC response. |
RejoinUserEventsAsync(RejoinUserEventsRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> | A Task containing the RPC response. |
RejoinUserEventsAsync(RejoinUserEventsRequest, CancellationToken)
public virtual Task<Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> RejoinUserEventsAsync(RejoinUserEventsRequest request, CancellationToken cancellationToken)
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. |
cancellationToken | System.Threading.CancellationToken A System.Threading.CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<Google.LongRunning.Operation<RejoinUserEventsResponse, RejoinUserEventsMetadata>> | A Task containing the RPC response. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
WriteUserEvent(WriteUserEventRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
UserEvent | The RPC response. |
WriteUserEventAsync(WriteUserEventRequest, CallSettings)
public virtual 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 | Google.Api.Gax.Grpc.CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<UserEvent> | A Task containing the RPC response. |
WriteUserEventAsync(WriteUserEventRequest, CancellationToken)
public virtual Task<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, CancellationToken cancellationToken)
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request object containing all of the parameters for the API call. |
cancellationToken | System.Threading.CancellationToken A System.Threading.CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
System.Threading.Tasks.Task<UserEvent> | A Task containing the RPC response. |