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

namespace Google\Cloud\Talent\V4;

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

/**
 * The result of [JobService.BatchCreateJobs][google.cloud.talent.v4.JobService.BatchCreateJobs]. It's used to
 * replace [google.longrunning.Operation.response][google.longrunning.Operation.response] in case of success.
 *
 * Generated from protobuf message <code>google.cloud.talent.v4.BatchCreateJobsResponse</code>
 */
class BatchCreateJobsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of job mutation results from a batch create operation. It can change
     * until operation status is FINISHED, FAILED or CANCELLED.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code>
     */
    private $job_results;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Talent\V4\JobResult[]|\Google\Protobuf\Internal\RepeatedField $job_results
     *           List of job mutation results from a batch create operation. It can change
     *           until operation status is FINISHED, FAILED or CANCELLED.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Talent\V4\JobService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of job mutation results from a batch create operation. It can change
     * until operation status is FINISHED, FAILED or CANCELLED.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getJobResults()
    {
        return $this->job_results;
    }

    /**
     * List of job mutation results from a batch create operation. It can change
     * until operation status is FINISHED, FAILED or CANCELLED.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4.JobResult job_results = 1;</code>
     * @param \Google\Cloud\Talent\V4\JobResult[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setJobResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Talent\V4\JobResult::class);
        $this->job_results = $arr;

        return $this;
    }

}

