<?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 queries to run on a cluster.
 *
 * Generated from protobuf message <code>google.cloud.dataproc.v1.QueryList</code>
 */
class QueryList extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The queries to execute. You do not need to terminate a query
     * with a semicolon. Multiple queries can be specified in one string
     * by separating each with a semicolon. Here is an example of an Cloud
     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
     *     "hiveJob": {
     *       "queryList": {
     *         "queries": [
     *           "query1",
     *           "query2",
     *           "query3;query4",
     *         ]
     *       }
     *     }
     *
     * Generated from protobuf field <code>repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $queries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $queries
     *           Required. The queries to execute. You do not need to terminate a query
     *           with a semicolon. Multiple queries can be specified in one string
     *           by separating each with a semicolon. Here is an example of an Cloud
     *           Dataproc API snippet that uses a QueryList to specify a HiveJob:
     *               "hiveJob": {
     *                 "queryList": {
     *                   "queries": [
     *                     "query1",
     *                     "query2",
     *                     "query3;query4",
     *                   ]
     *                 }
     *               }
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataproc\V1\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The queries to execute. You do not need to terminate a query
     * with a semicolon. Multiple queries can be specified in one string
     * by separating each with a semicolon. Here is an example of an Cloud
     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
     *     "hiveJob": {
     *       "queryList": {
     *         "queries": [
     *           "query1",
     *           "query2",
     *           "query3;query4",
     *         ]
     *       }
     *     }
     *
     * Generated from protobuf field <code>repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getQueries()
    {
        return $this->queries;
    }

    /**
     * Required. The queries to execute. You do not need to terminate a query
     * with a semicolon. Multiple queries can be specified in one string
     * by separating each with a semicolon. Here is an example of an Cloud
     * Dataproc API snippet that uses a QueryList to specify a HiveJob:
     *     "hiveJob": {
     *       "queryList": {
     *         "queries": [
     *           "query1",
     *           "query2",
     *           "query3;query4",
     *         ]
     *       }
     *     }
     *
     * Generated from protobuf field <code>repeated string queries = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setQueries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->queries = $arr;

        return $this;
    }

}

