Discovery Engine v1beta API - Class UserEventService.UserEventServiceClient (1.0.0-beta11)

public class UserEventService.UserEventServiceClient : ClientBase<UserEventService.UserEventServiceClient>

Reference documentation and code samples for the Discovery Engine v1beta API class UserEventService.UserEventServiceClient.

Client for UserEventService

Inheritance

object > ClientBase > ClientBaseUserEventServiceUserEventServiceClient > UserEventService.UserEventServiceClient

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

UserEventServiceClient(ChannelBase)

public UserEventServiceClient(ChannelBase channel)

Creates a new client for UserEventService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

UserEventServiceClient(ClientBaseConfiguration)

protected UserEventServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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 third-party domain.

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Parameters
NameDescription
requestCollectUserEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
HttpBody

The response received from the server.

CollectUserEvent(CollectUserEventRequest, Metadata, DateTime?, CancellationToken)

public virtual HttpBody CollectUserEvent(CollectUserEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain.

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Parameters
NameDescription
requestCollectUserEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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 third-party domain.

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Parameters
NameDescription
requestCollectUserEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallHttpBody

The call object.

CollectUserEventAsync(CollectUserEventRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<HttpBody> CollectUserEventAsync(CollectUserEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain.

This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.

Parameters
NameDescription
requestCollectUserEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallHttpBody

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
TypeDescription
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
OperationsOperationsClient

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
NameDescription
requestImportUserEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

ImportUserEvents(ImportUserEventsRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation ImportUserEvents(ImportUserEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
NameDescription
requestImportUserEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestImportUserEventsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

ImportUserEventsAsync(ImportUserEventsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> ImportUserEventsAsync(ImportUserEventsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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
NameDescription
requestImportUserEventsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

NewInstance(ClientBaseConfiguration)

protected override UserEventService.UserEventServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
UserEventServiceUserEventServiceClient
Overrides

WriteUserEvent(WriteUserEventRequest, CallOptions)

public virtual UserEvent WriteUserEvent(WriteUserEventRequest request, CallOptions options)

Writes a single user event.

Parameters
NameDescription
requestWriteUserEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
UserEvent

The response received from the server.

WriteUserEvent(WriteUserEventRequest, Metadata, DateTime?, CancellationToken)

public virtual UserEvent WriteUserEvent(WriteUserEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Writes a single user event.

Parameters
NameDescription
requestWriteUserEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestWriteUserEventRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallUserEvent

The call object.

WriteUserEventAsync(WriteUserEventRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Writes a single user event.

Parameters
NameDescription
requestWriteUserEventRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallUserEvent

The call object.