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. |
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 |
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 |
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 |
GetOperation(std::string const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters | |
---|---|
Name | Description |
request |
google::longrunning::GetOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |