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

namespace Google\Cloud\Ces\V1;

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

/**
 * Response message for
 * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.RetrieveToolsResponse</code>
 */
class RetrieveToolsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of tools that are included in the specified toolset.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Tool tools = 1;</code>
     */
    private $tools;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Ces\V1\Tool[] $tools
     *           The list of tools that are included in the specified toolset.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\ToolService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of tools that are included in the specified toolset.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Tool tools = 1;</code>
     * @return RepeatedField<\Google\Cloud\Ces\V1\Tool>
     */
    public function getTools()
    {
        return $this->tools;
    }

    /**
     * The list of tools that are included in the specified toolset.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Tool tools = 1;</code>
     * @param \Google\Cloud\Ces\V1\Tool[] $var
     * @return $this
     */
    public function setTools($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Ces\V1\Tool::class);
        $this->tools = $arr;

        return $this;
    }

}

