<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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
{
    /**
     * Required. The list of tools that are included in the specified toolset.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $tools;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Ces\V1\Tool>|\Google\Protobuf\Internal\RepeatedField $tools
     *           Required. 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);
    }

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

    /**
     * Required. The list of tools that are included in the specified toolset.
     *
     * Generated from protobuf field <code>repeated .google.cloud.ces.v1.Tool tools = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param array<\Google\Cloud\Ces\V1\Tool>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

