# Google Cloud Talent Solution V4 Client - Class CommuteInfo (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 CommuteInfo.

Commute details related to this job.

Generated from protobuf message `google.cloud.talent.v4.SearchJobsResponse.CommuteInfo`

## Namespace

Google \\ Cloud \\ Talent \\ V4 \\ SearchJobsResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ job_location` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location` Location used as the destination in the commute calculation. |
| `↳ travel_duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query. |

### getJobLocation

Location used as the destination in the commute calculation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location|null` |   |

### hasJobLocation

### clearJobLocation

### setJobLocation

Location used as the destination in the commute calculation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location` |

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

### getTravelDuration

The number of seconds required to travel to the job location from the
query location. A duration of 0 seconds indicates that the job isn't
reachable within the requested duration, but was returned as part of an
expanded query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasTravelDuration

### clearTravelDuration

### setTravelDuration

The number of seconds required to travel to the job location from the
query location. A duration of 0 seconds indicates that the job isn't
reachable within the requested duration, but was returned as part of an
expanded query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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