Discovery Engine v1beta API - Class UserEventServiceClientImpl (1.0.0-beta11)

public sealed class UserEventServiceClientImpl : UserEventServiceClient

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

UserEventService client wrapper implementation, for convenient use.

Inheritance

object > UserEventServiceClient > UserEventServiceClientImpl

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Remarks

Service for ingesting end user actions on a website to Discovery Engine API.

Constructors

UserEventServiceClientImpl(UserEventServiceClient, UserEventServiceSettings, ILogger)

public UserEventServiceClientImpl(UserEventService.UserEventServiceClient grpcClient, UserEventServiceSettings settings, ILogger logger)

Constructs a client wrapper for the UserEventService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientUserEventServiceUserEventServiceClient

The underlying gRPC client.

settingsUserEventServiceSettings

The base UserEventServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override UserEventService.UserEventServiceClient GrpcClient { get; }

The underlying gRPC UserEventService client

Property Value
TypeDescription
UserEventServiceUserEventServiceClient
Overrides

ImportUserEventsOperationsClient

public override OperationsClient ImportUserEventsOperationsClient { get; }

The long-running operations client for ImportUserEvents.

Property Value
TypeDescription
OperationsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

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 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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
HttpBody

The RPC response.

Overrides

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 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 object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskHttpBody

A Task containing the RPC response.

Overrides

ImportUserEvents(ImportUserEventsRequest, CallSettings)

public override Operation<ImportUserEventsResponse, ImportUserEventsMetadata> 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
NameDescription
requestImportUserEventsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportUserEventsResponseImportUserEventsMetadata

The RPC response.

Overrides

ImportUserEventsAsync(ImportUserEventsRequest, CallSettings)

public override Task<Operation<ImportUserEventsResponse, ImportUserEventsMetadata>> 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
NameDescription
requestImportUserEventsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportUserEventsResponseImportUserEventsMetadata

A Task containing the RPC response.

Overrides

WriteUserEvent(WriteUserEventRequest, CallSettings)

public override UserEvent WriteUserEvent(WriteUserEventRequest request, CallSettings callSettings = null)

Writes a single user event.

Parameters
NameDescription
requestWriteUserEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
UserEvent

The RPC response.

Overrides

WriteUserEventAsync(WriteUserEventRequest, CallSettings)

public override Task<UserEvent> WriteUserEventAsync(WriteUserEventRequest request, CallSettings callSettings = null)

Writes a single user event.

Parameters
NameDescription
requestWriteUserEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskUserEvent

A Task containing the RPC response.

Overrides