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

namespace Google\Maps\FleetEngine\Delivery\V1;

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

/**
 * The `BatchCreateTask` response message.
 *
 * Generated from protobuf message <code>maps.fleetengine.delivery.v1.BatchCreateTasksResponse</code>
 */
class BatchCreateTasksResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The created Tasks.
     *
     * Generated from protobuf field <code>repeated .maps.fleetengine.delivery.v1.Task tasks = 1;</code>
     */
    private $tasks;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Maps\FleetEngine\Delivery\V1\Task>|\Google\Protobuf\Internal\RepeatedField $tasks
     *           The created Tasks.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Maps\Fleetengine\Delivery\V1\DeliveryApi::initOnce();
        parent::__construct($data);
    }

    /**
     * The created Tasks.
     *
     * Generated from protobuf field <code>repeated .maps.fleetengine.delivery.v1.Task tasks = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTasks()
    {
        return $this->tasks;
    }

    /**
     * The created Tasks.
     *
     * Generated from protobuf field <code>repeated .maps.fleetengine.delivery.v1.Task tasks = 1;</code>
     * @param array<\Google\Maps\FleetEngine\Delivery\V1\Task>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTasks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Maps\FleetEngine\Delivery\V1\Task::class);
        $this->tasks = $arr;

        return $this;
    }

}

