Google Cloud Talent Solution v4 API - Class EventServiceClient (2.5.0)

public abstract class EventServiceClient

Reference documentation and code samples for the Google Cloud Talent Solution v4 API class EventServiceClient.

EventService client wrapper, for convenient use.

Inheritance

object > EventServiceClient

Derived Types

Namespace

Google.Cloud.Talent.V4

Assembly

Google.Cloud.Talent.V4.dll

Remarks

A service handles client event report.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the EventService service, which is a host of "jobs.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default EventService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual EventService.EventServiceClient GrpcClient { get; }

The underlying gRPC EventService client

Property Value
Type Description
EventServiceEventServiceClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static EventServiceClient Create()

Synchronously creates a EventServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventServiceClientBuilder.

Returns
Type Description
EventServiceClient

The created EventServiceClient.

CreateAsync(CancellationToken)

public static Task<EventServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a EventServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EventServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskEventServiceClient

The task representing the created EventServiceClient.

CreateClientEvent(CreateClientEventRequest, CallSettings)

public virtual ClientEvent CreateClientEvent(CreateClientEventRequest request, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
request CreateClientEventRequest

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
ClientEvent

The RPC response.

Example
// Create client
EventServiceClient eventServiceClient = EventServiceClient.Create();
// Initialize request argument(s)
CreateClientEventRequest request = new CreateClientEventRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    ClientEvent = new ClientEvent(),
};
// Make the request
ClientEvent response = eventServiceClient.CreateClientEvent(request);

CreateClientEvent(TenantName, ClientEvent, CallSettings)

public virtual ClientEvent CreateClientEvent(TenantName parent, ClientEvent clientEvent, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent TenantName

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ClientEvent

The RPC response.

Example
// Create client
EventServiceClient eventServiceClient = EventServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = eventServiceClient.CreateClientEvent(parent, clientEvent);

CreateClientEvent(string, ClientEvent, CallSettings)

public virtual ClientEvent CreateClientEvent(string parent, ClientEvent clientEvent, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent string

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ClientEvent

The RPC response.

Example
// Create client
EventServiceClient eventServiceClient = EventServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = eventServiceClient.CreateClientEvent(parent, clientEvent);

CreateClientEventAsync(CreateClientEventRequest, CallSettings)

public virtual Task<ClientEvent> CreateClientEventAsync(CreateClientEventRequest request, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
request CreateClientEventRequest

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
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
CreateClientEventRequest request = new CreateClientEventRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    ClientEvent = new ClientEvent(),
};
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(request);

CreateClientEventAsync(CreateClientEventRequest, CancellationToken)

public virtual Task<ClientEvent> CreateClientEventAsync(CreateClientEventRequest request, CancellationToken cancellationToken)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
request CreateClientEventRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
CreateClientEventRequest request = new CreateClientEventRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    ClientEvent = new ClientEvent(),
};
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(request);

CreateClientEventAsync(TenantName, ClientEvent, CallSettings)

public virtual Task<ClientEvent> CreateClientEventAsync(TenantName parent, ClientEvent clientEvent, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent TenantName

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(parent, clientEvent);

CreateClientEventAsync(TenantName, ClientEvent, CancellationToken)

public virtual Task<ClientEvent> CreateClientEventAsync(TenantName parent, ClientEvent clientEvent, CancellationToken cancellationToken)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent TenantName

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(parent, clientEvent);

CreateClientEventAsync(string, ClientEvent, CallSettings)

public virtual Task<ClientEvent> CreateClientEventAsync(string parent, ClientEvent clientEvent, CallSettings callSettings = null)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent string

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(parent, clientEvent);

CreateClientEventAsync(string, ClientEvent, CancellationToken)

public virtual Task<ClientEvent> CreateClientEventAsync(string parent, ClientEvent clientEvent, CancellationToken cancellationToken)

Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

Parameters
Name Description
parent string

Required. Resource name of the tenant under which the event is created.

The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".

clientEvent ClientEvent

Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskClientEvent

A Task containing the RPC response.

Example
// Create client
EventServiceClient eventServiceClient = await EventServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
ClientEvent clientEvent = new ClientEvent();
// Make the request
ClientEvent response = await eventServiceClient.CreateClientEventAsync(parent, clientEvent);

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
Task

A task representing the asynchronous shutdown operation.

Remarks

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.