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

namespace Google\Cloud\Dataproc\V1;

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

/**
 * A list of session templates.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.ListSessionTemplatesResponse</code>
 */
class ListSessionTemplatesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Session template list
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataproc.v1.SessionTemplate session_templates = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $session_templates;
    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataproc\V1\SessionTemplate[] $session_templates
     *           Output only. Session template list
     *     @type string $next_page_token
     *           A token, which can be sent as `page_token` to retrieve the next page.
     *           If this field is omitted, there are no subsequent pages.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\SessionTemplates::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

