# Google Cloud Talent Solution V4 Client - Class JobEvent (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class JobEvent.

An event issued when a job seeker interacts with the application that
implements Cloud Talent Solution.

Generated from protobuf message `google.cloud.talent.v4.JobEvent`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Required. The type of the event (see [JobEventType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType)). |
| `↳ jobs` | `string[]` Required. The [job name(s)](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Job#_Google_Cloud_Talent_V4_Job__getName__) associated with this event. For example, if this is an [impression](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__IMPRESSION) event, this field contains the identifiers of all jobs shown to the job seeker. If this was a [view](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__VIEW) event, this field contains the identifier of the viewed job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz". |

### getType

Required. The type of the event (see
[JobEventType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType)).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [JobEventType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType). |

### setType

Required. The type of the event (see
[JobEventType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType)).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [JobEventType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getJobs

Required. The [job name(s)](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Job#_Google_Cloud_Talent_V4_Job__getName__) associated
with this event. For example, if this is an
[impression](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__IMPRESSION)
event, this field contains the identifiers of all jobs shown to the job
seeker. If this was a
[view](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__VIEW) event, this field
contains the identifier of the viewed job.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setJobs

Required. The [job name(s)](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Job#_Google_Cloud_Talent_V4_Job__getName__) associated
with this event. For example, if this is an
[impression](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__IMPRESSION)
event, this field contains the identifiers of all jobs shown to the job
seeker. If this was a
[view](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.JobEvent.JobEventType#_Google_Cloud_Talent_V4_JobEvent_JobEventType__VIEW) event, this field
contains the identifier of the viewed job.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |