<?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.BatchDeleteJobs][google.cloud.talent.v4.JobService.BatchDeleteJobs].
 * 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.BatchDeleteJobsResponse</code>
 */
class BatchDeleteJobsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of job mutation results from a batch delete 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 array<\Google\Cloud\Talent\V4\JobResult>|\Google\Protobuf\Internal\RepeatedField $job_results
     *           List of job mutation results from a batch delete 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 delete 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 delete 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 array<\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;
    }

}

