# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::EventService::Client (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::EventService::Client.

Client for the EventService service.


<br />

A service handles client event report.

## Inherits

- Object

## Includes

- [Google::Cloud::Talent::V4beta1::EventService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the EventService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration "Google::Cloud::Talent::V4beta1::EventService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all EventService clients
::Google::Cloud::Talent::V4beta1::EventService::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the EventService Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client#Google__Cloud__Talent__V4beta1__EventService__Client_configure_class_ "Google::Cloud::Talent::V4beta1::EventService::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration "Google::Cloud::Talent::V4beta1::EventService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration))

### #create_client_event

    def create_client_event(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::ClientEvent
    def create_client_event(parent: nil, client_event: nil) -> ::Google::Cloud::Talent::V4beta1::ClientEvent

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.
**Overloads**

    def create_client_event(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::ClientEvent

Pass arguments to `create_client_event` via a request object, either of type [CreateClientEventRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CreateClientEventRequest "Google::Cloud::Talent::V4beta1::CreateClientEventRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Talent::V4beta1::CreateClientEventRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CreateClientEventRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.

    def create_client_event(parent: nil, client_event: nil) -> ::Google::Cloud::Talent::V4beta1::ClientEvent

Pass arguments to `create_client_event` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **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/tenant/bar". If tenant id is unspecified, a default tenant
  is created, for example, "projects/foo".
- **client_event** ([::Google::Cloud::Talent::V4beta1::ClientEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ClientEvent), ::Hash) --- Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Talent::V4beta1::ClientEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ClientEvent))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::Talent::V4beta1::ClientEvent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-ClientEvent))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/talent/v4beta1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Talent::V4beta1::EventService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Talent::V4beta1::CreateClientEventRequest.new

# Call the create_client_event method.
result = client.create_client_event request

# The returned object is of type Google::Cloud::Talent::V4beta1::ClientEvent.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new EventService client object.
**Yields**

- (config) --- Configure the EventService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-EventService-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Talent::V4beta1::EventService::Client.new do |config|
  config.timeout = 10.0
end
```

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)