<?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;

/**
 * Request message for
 * [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.RetrieveToolsRequest</code>
 */
class RetrieveToolsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the toolset to retrieve the tools for.
     * Format:
     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
     *
     * Generated from protobuf field <code>string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $toolset = '';
    /**
     * Optional. The identifiers of the tools to retrieve from the toolset.
     * If empty, all tools in the toolset will be returned.
     *
     * Generated from protobuf field <code>repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $tool_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $toolset
     *           Required. The name of the toolset to retrieve the tools for.
     *           Format:
     *           `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
     *     @type string[] $tool_ids
     *           Optional. The identifiers of the tools to retrieve from the toolset.
     *           If empty, all tools in the toolset will be returned.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\ToolService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the toolset to retrieve the tools for.
     * Format:
     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
     *
     * Generated from protobuf field <code>string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getToolset()
    {
        return $this->toolset;
    }

    /**
     * Required. The name of the toolset to retrieve the tools for.
     * Format:
     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
     *
     * Generated from protobuf field <code>string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setToolset($var)
    {
        GPBUtil::checkString($var, True);
        $this->toolset = $var;

        return $this;
    }

    /**
     * Optional. The identifiers of the tools to retrieve from the toolset.
     * If empty, all tools in the toolset will be returned.
     *
     * Generated from protobuf field <code>repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<string>
     */
    public function getToolIds()
    {
        return $this->tool_ids;
    }

    /**
     * Optional. The identifiers of the tools to retrieve from the toolset.
     * If empty, all tools in the toolset will be returned.
     *
     * Generated from protobuf field <code>repeated string tool_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string[] $var
     * @return $this
     */
    public function setToolIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->tool_ids = $arr;

        return $this;
    }

}

