Class EventServiceClient (2.31.0-rc)

A service handles client event report.

Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.

Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

Constructors

EventServiceClient(EventServiceClient const &)

Copy and move support

Parameter
Name Description
EventServiceClient const &

EventServiceClient(EventServiceClient &&)

Copy and move support

Parameter
Name Description
EventServiceClient &&

EventServiceClient(std::shared_ptr< EventServiceConnection >, Options)

Parameters
Name Description
connection std::shared_ptr< EventServiceConnection >
opts Options

Operators

operator=(EventServiceClient const &)

Copy and move support

Parameter
Name Description
EventServiceClient const &
Returns
Type Description
EventServiceClient &

operator=(EventServiceClient &&)

Copy and move support

Parameter
Name Description
EventServiceClient &&
Returns
Type Description
EventServiceClient &

Functions

CreateClientEvent(std::string const &, google::cloud::talent::v4::ClientEvent const &, Options)

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 std::string const &

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".

client_event google::cloud::talent::v4::ClientEvent const &

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

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::talent::v4::ClientEvent >

the result of the RPC. The response message type (google.cloud.talent.v4.ClientEvent) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

CreateClientEvent(google::cloud::talent::v4::CreateClientEventRequest const &, Options)

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 google::cloud::talent::v4::CreateClientEventRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.talent.v4.CreateClientEventRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::talent::v4::ClientEvent >

the result of the RPC. The response message type (google.cloud.talent.v4.ClientEvent) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.