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

namespace Google\Cloud\Talent\V4beta1;

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

/**
 * The result of
 * [JobService.BatchCreateJobs][google.cloud.talent.v4beta1.JobService.BatchCreateJobs]
 * or
 * [JobService.BatchUpdateJobs][google.cloud.talent.v4beta1.JobService.BatchUpdateJobs]
 * APIs. 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.v4beta1.JobOperationResult</code>
 */
class JobOperationResult extends \Google\Protobuf\Internal\Message
{
    /**
     * List of job mutation results from a batch mutate operation. It can change
     * until operation status is FINISHED, FAILED or CANCELLED.
     *
     * Generated from protobuf field <code>repeated .google.cloud.talent.v4beta1.JobOperationResult.JobResult job_results = 1;</code>
     */
    private $job_results;

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

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

        return $this;
    }

}

