<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataproc/v1/jobs.proto

namespace Google\Cloud\Dataproc\V1;

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

/**
 * A list of jobs in a project.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.ListJobsResponse</code>
 */
class ListJobsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Jobs list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $jobs;
    /**
     * Optional. This token is included in the response if there are more results
     * to fetch. To fetch additional results, provide this value as the
     * `page_token` in a subsequent <code>ListJobsRequest</code>.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $next_page_token = '';
    /**
     * Output only. List of jobs with
     * [kms_key][google.cloud.dataproc.v1.EncryptionConfig.kms_key]-encrypted
     * parameters that could not be decrypted. A response to a `jobs.get` request
     * may indicate the reason for the decryption failure for a specific job.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $unreachable;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataproc\V1\Job[] $jobs
     *           Output only. Jobs list.
     *     @type string $next_page_token
     *           Optional. This token is included in the response if there are more results
     *           to fetch. To fetch additional results, provide this value as the
     *           `page_token` in a subsequent <code>ListJobsRequest</code>.
     *     @type string[] $unreachable
     *           Output only. List of jobs with
     *           [kms_key][google.cloud.dataproc.v1.EncryptionConfig.kms_key]-encrypted
     *           parameters that could not be decrypted. A response to a `jobs.get` request
     *           may indicate the reason for the decryption failure for a specific job.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Jobs list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\Dataproc\V1\Job>
     */
    public function getJobs()
    {
        return $this->jobs;
    }

    /**
     * Output only. Jobs list.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataproc.v1.Job jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dataproc\V1\Job[] $var
     * @return $this
     */
    public function setJobs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataproc\V1\Job::class);
        $this->jobs = $arr;

        return $this;
    }

    /**
     * Optional. This token is included in the response if there are more results
     * to fetch. To fetch additional results, provide this value as the
     * `page_token` in a subsequent <code>ListJobsRequest</code>.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * Optional. This token is included in the response if there are more results
     * to fetch. To fetch additional results, provide this value as the
     * `page_token` in a subsequent <code>ListJobsRequest</code>.
     *
     * Generated from protobuf field <code>string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Output only. List of jobs with
     * [kms_key][google.cloud.dataproc.v1.EncryptionConfig.kms_key]-encrypted
     * parameters that could not be decrypted. A response to a `jobs.get` request
     * may indicate the reason for the decryption failure for a specific job.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<string>
     */
    public function getUnreachable()
    {
        return $this->unreachable;
    }

    /**
     * Output only. List of jobs with
     * [kms_key][google.cloud.dataproc.v1.EncryptionConfig.kms_key]-encrypted
     * parameters that could not be decrypted. A response to a `jobs.get` request
     * may indicate the reason for the decryption failure for a specific job.
     *
     * Generated from protobuf field <code>repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string[] $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

