📄 Source: Tool.php
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors;
class Tool extends \Google\Collection
{
protected $collection_key = 'dependsOn';
protected $internal_gapi_mappings = [
"meta" => "_meta",
];
/**
* Metadata for the tool.
*
* @var array[]
*/
public $meta;
protected $annotationsType = ToolAnnotations::class;
protected $annotationsDataType = '';
/**
* List of tool names that this tool depends on.
*
* @var string[]
*/
public $dependsOn;
/**
* Description of the tool.
*
* @var string
*/
public $description;
protected $inputSchemaType = JsonSchema::class;
protected $inputSchemaDataType = '';
/**
* Name of the tool.
*
* @var string
*/
public $name;
protected $outputSchemaType = JsonSchema::class;
protected $outputSchemaDataType = '';
/**
* Metadata for the tool.
*
* @param array[] $meta
*/
public function setMeta($meta)
{
$this->meta = $meta;
}
/**
* @return array[]
*/
public function getMeta()
{
return $this->meta;
}
/**
* Annotations for the tool.
*
* @param ToolAnnotations $annotations
*/
public function setAnnotations(ToolAnnotations $annotations)
{
$this->annotations = $annotations;
}
/**
* @return ToolAnnotations
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* List of tool names that this tool depends on.
*
* @param string[] $dependsOn
*/
public function setDependsOn($dependsOn)
{
$this->dependsOn = $dependsOn;
}
/**
* @return string[]
*/
public function getDependsOn()
{
return $this->dependsOn;
}
/**
* Description of the tool.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* JSON schema for the input parameters of the tool.
*
* @param JsonSchema $inputSchema
*/
public function setInputSchema(JsonSchema $inputSchema)
{
$this->inputSchema = $inputSchema;
}
/**
* @return JsonSchema
*/
public function getInputSchema()
{
return $this->inputSchema;
}
/**
* Name of the tool.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* JSON schema for the output of the tool.
*
* @param JsonSchema $outputSchema
*/
public function setOutputSchema(JsonSchema $outputSchema)
{
$this->outputSchema = $outputSchema;
}
/**
* @return JsonSchema
*/
public function getOutputSchema()
{
return $this->outputSchema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tool::class, 'Google_Service_Connectors_Tool');
← Back