public class UserEventServiceClient : ClientBase<UserEventService.UserEventServiceClient>
Client for UserEventService
Inheritance
System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<UserEventService.UserEventServiceClient> > UserEventService.UserEventServiceClientNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
UserEventServiceClient()
protected UserEventServiceClient()
Protected parameterless constructor to allow creation of test doubles.
UserEventServiceClient(CallInvoker)
public UserEventServiceClient(CallInvoker callInvoker)
Creates a new client for UserEventService that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | Grpc.Core.CallInvoker The callInvoker to use to make remote calls. |
UserEventServiceClient(ChannelBase)
public UserEventServiceClient(ChannelBase channel)
Creates a new client for UserEventService
Parameter | |
---|---|
Name | Description |
channel | Grpc.Core.ChannelBase The channel to use to make remote calls. |
UserEventServiceClient(ClientBase.ClientBaseConfiguration)
protected UserEventServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | Grpc.Core.ClientBase.ClientBaseConfiguration The client configuration. |
Methods
CollectUserEvent(CollectUserEventRequest, CallOptions)
public virtual HttpBody CollectUserEvent(CollectUserEventRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Google.Api.HttpBody | The response received from the server. |
CollectUserEvent(CollectUserEventRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual HttpBody CollectUserEvent(CollectUserEventRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Google.Api.HttpBody | The response received from the server. |
CollectUserEventAsync(CollectUserEventRequest, CallOptions)
public virtual AsyncUnaryCall<HttpBody> CollectUserEventAsync(CollectUserEventRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Api.HttpBody> | The call object. |
CollectUserEventAsync(CollectUserEventRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<HttpBody> CollectUserEventAsync(CollectUserEventRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.Api.HttpBody> | The call object. |
CreateOperationsClient()
public virtual Operations.OperationsClient CreateOperationsClient()
Creates a new instance of Google.LongRunning.Operations.OperationsClient using the same call invoker as this client.
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operations.OperationsClient | A new Operations client for the same target as this client. |
ImportUserEvents(ImportUserEventsRequest, CallOptions)
public virtual Operation ImportUserEvents(ImportUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
ImportUserEvents(ImportUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation ImportUserEvents(ImportUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
ImportUserEventsAsync(ImportUserEventsRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> ImportUserEventsAsync(ImportUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
ImportUserEventsAsync(ImportUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> ImportUserEventsAsync(ImportUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override UserEventService.UserEventServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | Grpc.Core.ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
UserEventService.UserEventServiceClient |
PurgeUserEvents(PurgeUserEventsRequest, CallOptions)
public virtual Operation PurgeUserEvents(PurgeUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
PurgeUserEvents(PurgeUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation PurgeUserEvents(PurgeUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
PurgeUserEventsAsync(PurgeUserEventsRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> PurgeUserEventsAsync(PurgeUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
PurgeUserEventsAsync(PurgeUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> PurgeUserEventsAsync(PurgeUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
RejoinUserEvents(RejoinUserEventsRequest, CallOptions)
public virtual Operation RejoinUserEvents(RejoinUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
RejoinUserEvents(RejoinUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation RejoinUserEvents(RejoinUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Google.LongRunning.Operation | The response received from the server. |
RejoinUserEventsAsync(RejoinUserEventsRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> RejoinUserEventsAsync(RejoinUserEventsRequest request, CallOptions options)
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 to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
RejoinUserEventsAsync(RejoinUserEventsRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> RejoinUserEventsAsync(RejoinUserEventsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(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 to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<Google.LongRunning.Operation> | The call object. |
WriteUserEvent(WriteUserEventRequest, CallOptions)
public virtual UserEvent WriteUserEvent(WriteUserEventRequest request, CallOptions options)
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
UserEvent | The response received from the server. |
WriteUserEvent(WriteUserEventRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual UserEvent WriteUserEvent(WriteUserEventRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
UserEvent | The response received from the server. |
WriteUserEventAsync(WriteUserEventRequest, CallOptions)
public virtual AsyncUnaryCall<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, CallOptions options)
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request to send to the server. |
options | Grpc.Core.CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<UserEvent> | The call object. |
WriteUserEventAsync(WriteUserEventRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Writes a single user event.
Parameters | |
---|---|
Name | Description |
request | WriteUserEventRequest The request to send to the server. |
headers | Grpc.Core.Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | System.Nullable<System.DateTime> An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken | System.Threading.CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Grpc.Core.AsyncUnaryCall<UserEvent> | The call object. |