<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Cloud\Dataproc\V1\Job>|\Google\Protobuf\Internal\RepeatedField $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 array<string>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\Dataproc\V1\Job>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setUnreachable($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->unreachable = $arr;

        return $this;
    }

}

