code: public final ClientEvent createClientEvent(TenantOrProjectName parent, ClientEvent clientEvent) {
  
      CreateClientEventRequest request =
          CreateClientEventRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .setClientEvent(clientEvent)
              .build();
      return createClientEvent(request);
    }
docs: 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](https://console.cloud.google.com/talent-solution/overview). [Learn
  more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools.
  
  <p>Sample code:
  
  <pre><code>
  try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
  TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  ClientEvent clientEvent = ClientEvent.newBuilder().build();
  ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
  }
  </code></pre>
  
  @param parent Required.
  <p>Resource name of the tenant under which the event is created.
  <p>The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  "projects/api-test-project/tenant/foo".
  <p>Tenant id is optional and a default tenant is created if unspecified, for example,
  "projects/api-test-project".
  @param clientEvent Required.
  <p>Events issued when end user interacts with customer's application that uses Cloud Talent
  Solution.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails