<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/talent/v4/job.proto

namespace Google\Cloud\Talent\V4\Job;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Derived details about the job posting.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4.Job.DerivedInfo</code>
 */
class DerivedInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Structured locations of the job, resolved from
     * [Job.addresses][google.cloud.talent.v4.Job.addresses].
     * [locations][google.cloud.talent.v4.Job.DerivedInfo.locations] are exactly
     * matched to [Job.addresses][google.cloud.talent.v4.Job.addresses] in the
     * same order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.Location locations = 1;</code>
     */
    private $locations;
    /**
     * Job categories derived from [Job.title][google.cloud.talent.v4.Job.title]
     * and [Job.description][google.cloud.talent.v4.Job.description].
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobCategory job_categories = 3;</code>
     */
    private $job_categories;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Talent\V4\Location>|\Google\Protobuf\Internal\RepeatedField $locations
     *           Structured locations of the job, resolved from
     *           [Job.addresses][google.cloud.talent.v4.Job.addresses].
     *           [locations][google.cloud.talent.v4.Job.DerivedInfo.locations] are exactly
     *           matched to [Job.addresses][google.cloud.talent.v4.Job.addresses] in the
     *           same order.
     *     @type array<int>|\Google\Protobuf\Internal\RepeatedField $job_categories
     *           Job categories derived from [Job.title][google.cloud.talent.v4.Job.title]
     *           and [Job.description][google.cloud.talent.v4.Job.description].
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4\Job::initOnce();
        parent::__construct($data);
    }

    /**
     * Structured locations of the job, resolved from
     * [Job.addresses][google.cloud.talent.v4.Job.addresses].
     * [locations][google.cloud.talent.v4.Job.DerivedInfo.locations] are exactly
     * matched to [Job.addresses][google.cloud.talent.v4.Job.addresses] in the
     * same order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.Location locations = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getLocations()
    {
        return $this->locations;
    }

    /**
     * Structured locations of the job, resolved from
     * [Job.addresses][google.cloud.talent.v4.Job.addresses].
     * [locations][google.cloud.talent.v4.Job.DerivedInfo.locations] are exactly
     * matched to [Job.addresses][google.cloud.talent.v4.Job.addresses] in the
     * same order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.Location locations = 1;</code>
     * @param array<\Google\Cloud\Talent\V4\Location>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setLocations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4\Location::class);
        $this->locations = $arr;

        return $this;
    }

    /**
     * Job categories derived from [Job.title][google.cloud.talent.v4.Job.title]
     * and [Job.description][google.cloud.talent.v4.Job.description].
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobCategory job_categories = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getJobCategories()
    {
        return $this->job_categories;
    }

    /**
     * Job categories derived from [Job.title][google.cloud.talent.v4.Job.title]
     * and [Job.description][google.cloud.talent.v4.Job.description].
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobCategory job_categories = 3;</code>
     * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setJobCategories($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Talent\V4\JobCategory::class);
        $this->job_categories = $arr;

        return $this;
    }

}


