<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/tasks/v2beta3/target.proto

namespace Google\Cloud\Tasks\V2beta3;

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

/**
 * QueryOverride.
 * Query message defines query override for HTTP targets.
 *
 * Generated from protobuf message <code>google.cloud.tasks.v2beta3.QueryOverride</code>
 */
class QueryOverride extends \Google\Protobuf\Internal\Message
{
    /**
     * The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
     * string.
     *
     * Generated from protobuf field <code>string query_params = 1;</code>
     */
    private $query_params = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $query_params
     *           The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
     *           string.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Tasks\V2Beta3\Target::initOnce();
        parent::__construct($data);
    }

    /**
     * The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
     * string.
     *
     * Generated from protobuf field <code>string query_params = 1;</code>
     * @return string
     */
    public function getQueryParams()
    {
        return $this->query_params;
    }

    /**
     * The query parameters (e.g., qparam1=123&qparam2=456). Default is an empty
     * string.
     *
     * Generated from protobuf field <code>string query_params = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setQueryParams($var)
    {
        GPBUtil::checkString($var, True);
        $this->query_params = $var;

        return $this;
    }

}

