Google Cloud Talent Solution V4beta1 Client - Class CommuteInfo (1.2.2)

Reference documentation and code samples for the Google Cloud Talent Solution V4beta1 Client class CommuteInfo.

Commute details related to this job.

Generated from protobuf message google.cloud.talent.v4beta1.SearchJobsResponse.CommuteInfo

Namespace

Google \ Cloud \ Talent \ V4beta1 \ SearchJobsResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ job_location Google\Cloud\Talent\V4beta1\Location

Location used as the destination in the commute calculation.

↳ travel_duration 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
TypeDescription
Google\Cloud\Talent\V4beta1\Location|null

hasJobLocation

clearJobLocation

setJobLocation

Location used as the destination in the commute calculation.

Parameter
NameDescription
var Google\Cloud\Talent\V4beta1\Location
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this