- [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#SCHEMA_REPRESENTATION)
- [ParameterType](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#ParameterType)
- [TypeSchema](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema.SCHEMA_REPRESENTATION)
- [InlineSchema](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#InlineSchema)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#InlineSchema.SCHEMA_REPRESENTATION)
- [DataType](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#DataType)
- [SchemaReference](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#SchemaReference)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#SchemaReference.SCHEMA_REPRESENTATION)

Defines the properties of a parameter. Used to define parameters used in the agent and the input / output parameters for each fulfillment.

| JSON representation |
|---|
| ``` { "name": string, "type": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#ParameterType`), "typeSchema": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema`) }, "description": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Name of parameter. |
| `type (deprecated)` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#ParameterType`)`` > [!WARNING] > This item is deprecated! Type of parameter. |
| `typeSchema` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema`)`` Optional. Type schema of parameter. |
| `description` | `string` Human-readable description of the parameter. Limited to 300 characters. |

## ParameterType

Parameter types are used for validation. These types are consistent with `https://protobuf.dev/reference/protobuf/google.protobuf#value`.

| Enums ||
|---|---|
| `PARAMETER_TYPE_UNSPECIFIED` | Not specified. No validation will be performed. |
| `STRING` | Represents any string value. |
| `NUMBER` | Represents any number value. |
| `BOOLEAN` | Represents a boolean value. |
| `NULL` | Represents a null value. |
| `OBJECT` | Represents any object value. |
| `LIST` | Represents a repeated value. |

## TypeSchema

Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "inlineSchema": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#InlineSchema`) }, "schemaReference": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#SchemaReference`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The encapsulated schema. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `inlineSchema` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#InlineSchema`)`` Set if this is an inline schema definition. |
| `schemaReference` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#SchemaReference`)`` Set if this is a schema reference. |
| End of mutually exclusive fields. ||

## InlineSchema

A type schema object that's specified inline.

| JSON representation |
|---|
| ``` { "type": enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#DataType`), "items": { object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema`) } } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#DataType`)`` Data type of the schema. |
| `items` | ``object (`https://docs.cloud.google.com/dialogflow/cx/docs/reference/rest/v3/ParameterDefinition#TypeSchema`)`` Schema of the elements if this is an ARRAY type. |

## DataType

Defines data types that are supported for inlined schemas. These types are consistent with `https://protobuf.dev/reference/protobuf/google.protobuf#value`.

| Enums ||
|---|---|
| `DATA_TYPE_UNSPECIFIED` | Not specified. |
| `STRING` | Represents any string value. |
| `NUMBER` | Represents any number value. |
| `BOOLEAN` | Represents a boolean value. |
| `ARRAY` | Represents a repeated value. |

## SchemaReference

A reference to the schema of an existing tool.

| JSON representation |
|---|
| ``` { "tool": string, "schema": string } ``` |

| Fields ||
|---|---|
| `tool` | `string` The tool that contains this schema definition. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. |
| `schema` | `string` The name of the schema. |