diff --git a/src/Connectors/ConnectorsResource.php b/src/Connectors/ConnectorsResource.php index 119d2090e11..67d2b346093 100644 --- a/src/Connectors/ConnectorsResource.php +++ b/src/Connectors/ConnectorsResource.php @@ -19,6 +19,15 @@ class ConnectorsResource extends \Google\Model { + protected $internal_gapi_mappings = [ + "meta" => "_meta", + ]; + /** + * Metadata for the resource. + * + * @var array[] + */ + public $meta; /** * A description of what this resource represents. * @@ -50,6 +59,22 @@ class ConnectorsResource extends \Google\Model */ public $uri; + /** + * Metadata for the resource. + * + * @param array[] $meta + */ + public function setMeta($meta) + { + $this->meta = $meta; + } + /** + * @return array[] + */ + public function getMeta() + { + return $this->meta; + } /** * A description of what this resource represents. * diff --git a/src/Connectors/ExecuteToolResponse.php b/src/Connectors/ExecuteToolResponse.php index 923818e8e47..1d57b0d0217 100644 --- a/src/Connectors/ExecuteToolResponse.php +++ b/src/Connectors/ExecuteToolResponse.php @@ -19,6 +19,15 @@ class ExecuteToolResponse extends \Google\Model { + protected $internal_gapi_mappings = [ + "meta" => "_meta", + ]; + /** + * Metadata for the tool execution result. + * + * @var array[] + */ + public $meta; /** * Metadata like service latency, etc. * @@ -32,6 +41,22 @@ class ExecuteToolResponse extends \Google\Model */ public $result; + /** + * Metadata for the tool execution result. + * + * @param array[] $meta + */ + public function setMeta($meta) + { + $this->meta = $meta; + } + /** + * @return array[] + */ + public function getMeta() + { + return $this->meta; + } /** * Metadata like service latency, etc. * diff --git a/src/Connectors/GetResourceResponse.php b/src/Connectors/GetResourceResponse.php index e366e7439e1..f4786fd3425 100644 --- a/src/Connectors/GetResourceResponse.php +++ b/src/Connectors/GetResourceResponse.php @@ -19,6 +19,15 @@ class GetResourceResponse extends \Google\Model { + protected $internal_gapi_mappings = [ + "meta" => "_meta", + ]; + /** + * Metadata for the resource. + * + * @var array[] + */ + public $meta; /** * The content of the resource. * @@ -38,6 +47,22 @@ class GetResourceResponse extends \Google\Model */ public $mimeType; + /** + * Metadata for the resource. + * + * @param array[] $meta + */ + public function setMeta($meta) + { + $this->meta = $meta; + } + /** + * @return array[] + */ + public function getMeta() + { + return $this->meta; + } /** * The content of the resource. * diff --git a/src/Connectors/JsonSchema.php b/src/Connectors/JsonSchema.php index 8596aef6116..17806297d10 100644 --- a/src/Connectors/JsonSchema.php +++ b/src/Connectors/JsonSchema.php @@ -236,6 +236,18 @@ class JsonSchema extends \Google\Collection * @var array[] */ public $enum; + /** + * Whether the maximum number value is exclusive. + * + * @var bool + */ + public $exclusiveMaximum; + /** + * Whether the minimum number value is exclusive. + * + * @var bool + */ + public $exclusiveMinimum; /** * Format of the value as per https://json-schema.org/understanding-json- * schema/reference/string.html#format @@ -251,6 +263,49 @@ class JsonSchema extends \Google\Collection * @var string */ public $jdbcType; + /** + * Maximum number of items in the array field. + * + * @var int + */ + public $maxItems; + /** + * Maximum length of the string field. + * + * @var int + */ + public $maxLength; + /** + * Maximum value of the number field. + * + * @var array + */ + public $maximum; + /** + * Minimum number of items in the array field. + * + * @var int + */ + public $minItems; + /** + * Minimum length of the string field. + * + * @var int + */ + public $minLength; + /** + * Minimum value of the number field. + * + * @var array + */ + public $minimum; + /** + * Regex pattern of the string field. This is a string value that describes + * the regular expression that the string value should match. + * + * @var string + */ + public $pattern; protected $propertiesType = JsonSchema::class; protected $propertiesDataType = 'map'; /** @@ -265,6 +320,12 @@ class JsonSchema extends \Google\Collection * @var string[] */ public $type; + /** + * Whether the items in the array field are unique. + * + * @var bool + */ + public $uniqueItems; /** * Additional details apart from standard json schema fields, this gives @@ -332,6 +393,38 @@ public function getEnum() { return $this->enum; } + /** + * Whether the maximum number value is exclusive. + * + * @param bool $exclusiveMaximum + */ + public function setExclusiveMaximum($exclusiveMaximum) + { + $this->exclusiveMaximum = $exclusiveMaximum; + } + /** + * @return bool + */ + public function getExclusiveMaximum() + { + return $this->exclusiveMaximum; + } + /** + * Whether the minimum number value is exclusive. + * + * @param bool $exclusiveMinimum + */ + public function setExclusiveMinimum($exclusiveMinimum) + { + $this->exclusiveMinimum = $exclusiveMinimum; + } + /** + * @return bool + */ + public function getExclusiveMinimum() + { + return $this->exclusiveMinimum; + } /** * Format of the value as per https://json-schema.org/understanding-json- * schema/reference/string.html#format @@ -390,6 +483,119 @@ public function getJdbcType() { return $this->jdbcType; } + /** + * Maximum number of items in the array field. + * + * @param int $maxItems + */ + public function setMaxItems($maxItems) + { + $this->maxItems = $maxItems; + } + /** + * @return int + */ + public function getMaxItems() + { + return $this->maxItems; + } + /** + * Maximum length of the string field. + * + * @param int $maxLength + */ + public function setMaxLength($maxLength) + { + $this->maxLength = $maxLength; + } + /** + * @return int + */ + public function getMaxLength() + { + return $this->maxLength; + } + /** + * Maximum value of the number field. + * + * @param array $maximum + */ + public function setMaximum($maximum) + { + $this->maximum = $maximum; + } + /** + * @return array + */ + public function getMaximum() + { + return $this->maximum; + } + /** + * Minimum number of items in the array field. + * + * @param int $minItems + */ + public function setMinItems($minItems) + { + $this->minItems = $minItems; + } + /** + * @return int + */ + public function getMinItems() + { + return $this->minItems; + } + /** + * Minimum length of the string field. + * + * @param int $minLength + */ + public function setMinLength($minLength) + { + $this->minLength = $minLength; + } + /** + * @return int + */ + public function getMinLength() + { + return $this->minLength; + } + /** + * Minimum value of the number field. + * + * @param array $minimum + */ + public function setMinimum($minimum) + { + $this->minimum = $minimum; + } + /** + * @return array + */ + public function getMinimum() + { + return $this->minimum; + } + /** + * Regex pattern of the string field. This is a string value that describes + * the regular expression that the string value should match. + * + * @param string $pattern + */ + public function setPattern($pattern) + { + $this->pattern = $pattern; + } + /** + * @return string + */ + public function getPattern() + { + return $this->pattern; + } /** * The child schemas, applicable only if this is of type `object`. The key is * the name of the property and the value is the json schema that describes @@ -440,6 +646,22 @@ public function getType() { return $this->type; } + /** + * Whether the items in the array field are unique. + * + * @param bool $uniqueItems + */ + public function setUniqueItems($uniqueItems) + { + $this->uniqueItems = $uniqueItems; + } + /** + * @return bool + */ + public function getUniqueItems() + { + return $this->uniqueItems; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/Connectors/Tool.php b/src/Connectors/Tool.php index dd7f9784234..cf8de57a547 100644 --- a/src/Connectors/Tool.php +++ b/src/Connectors/Tool.php @@ -20,6 +20,15 @@ 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 = ''; /** @@ -45,6 +54,22 @@ class Tool extends \Google\Collection 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. *