<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/maps/routeoptimization/v1/route_optimization_service.proto

namespace Google\Maps\RouteOptimization\V1;

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

/**
 * A request used by the `OptimizeToursUri` method.
 *
 * Generated from protobuf message <code>google.maps.routeoptimization.v1.OptimizeToursUriRequest</code>
 */
class OptimizeToursUriRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Target project or location to make a call.
     * Format:
     * * `projects/{project-id}`
     * * `projects/{project-id}/locations/{location-id}`
     * If no location is specified, a region will be chosen automatically.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $parent = '';
    /**
     * Required. The URI of the Cloud Storage object containing the
     * `OptimizeToursRequest`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri input = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $input = null;
    /**
     * Required. The URI of the Cloud Storage object that will contain the
     * `OptimizeToursResponse`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri output = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $output = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. Target project or location to make a call.
     *           Format:
     *           * `projects/{project-id}`
     *           * `projects/{project-id}/locations/{location-id}`
     *           If no location is specified, a region will be chosen automatically.
     *     @type \Google\Maps\RouteOptimization\V1\Uri $input
     *           Required. The URI of the Cloud Storage object containing the
     *           `OptimizeToursRequest`.
     *     @type \Google\Maps\RouteOptimization\V1\Uri $output
     *           Required. The URI of the Cloud Storage object that will contain the
     *           `OptimizeToursResponse`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Maps\Routeoptimization\V1\RouteOptimizationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Target project or location to make a call.
     * Format:
     * * `projects/{project-id}`
     * * `projects/{project-id}/locations/{location-id}`
     * If no location is specified, a region will be chosen automatically.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. Target project or location to make a call.
     * Format:
     * * `projects/{project-id}`
     * * `projects/{project-id}/locations/{location-id}`
     * If no location is specified, a region will be chosen automatically.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The URI of the Cloud Storage object containing the
     * `OptimizeToursRequest`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri input = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Maps\RouteOptimization\V1\Uri|null
     */
    public function getInput()
    {
        return $this->input;
    }

    public function hasInput()
    {
        return isset($this->input);
    }

    public function clearInput()
    {
        unset($this->input);
    }

    /**
     * Required. The URI of the Cloud Storage object containing the
     * `OptimizeToursRequest`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri input = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Maps\RouteOptimization\V1\Uri $var
     * @return $this
     */
    public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Google\Maps\RouteOptimization\V1\Uri::class);
        $this->input = $var;

        return $this;
    }

    /**
     * Required. The URI of the Cloud Storage object that will contain the
     * `OptimizeToursResponse`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri output = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Maps\RouteOptimization\V1\Uri|null
     */
    public function getOutput()
    {
        return $this->output;
    }

    public function hasOutput()
    {
        return isset($this->output);
    }

    public function clearOutput()
    {
        unset($this->output);
    }

    /**
     * Required. The URI of the Cloud Storage object that will contain the
     * `OptimizeToursResponse`.
     *
     * Generated from protobuf field <code>.google.maps.routeoptimization.v1.Uri output = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Maps\RouteOptimization\V1\Uri $var
     * @return $this
     */
    public function setOutput($var)
    {
        GPBUtil::checkMessage($var, \Google\Maps\RouteOptimization\V1\Uri::class);
        $this->output = $var;

        return $this;
    }

}

