## Index

- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.Cardinality` (enum)
- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType` (message)
- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.BasicType` (enum)
- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.ResourceType` (message)
- `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.ValueMetadata` (message)

## Cardinality

Cardinality of the variable.

| Enums ||
|---|---|
| `CARDINALITY_UNSPECIFIED` | Default value. |
| `SINGLE` | Only one value is permitted. |
| `MULTIPLE` | Multiple values are permitted, including duplicates. |
| `SINGLE_OR_MULTIPLE` | Both single and multiple values are permitted. |

## DataType

Type of the variable.

| Fields ||
|---|---|
| `valueMetadata` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.ValueMetadata` Metadata about the potential values of a variable. |
| Union field `type`. `type` can be only one of the following: ||
| `basicType` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.BasicType` Basic data type. |
| `resourceType` | `https://developers.google.com/workspace/add-ons/reference/rpc/google.apps.script.type/workflow#google.apps.script.type.workflow.DataType.ResourceType` Application specific data type. |

## BasicType

Basic generic data types.

| Enums ||
|---|---|
| `BASIC_TYPE_UNSPECIFIED` | Default value. |
| `STRING` | A string of characters. |
| `INTEGER` | A number. |
| `FLOAT` | A floating point number. |
| `TIMESTAMP` | Timestamp in ISO 8601 format. |
| `BOOLEAN` | A value that can be true or false. |
| `EMAIL_ADDRESS` | An email address, which is a string in the format of an email address. |
| `GOOGLE_USER` | User of the Google services, in the format of "users/encoded_GAIA_ID". Do not use yet (being implemented). |
| `FILE` | File. |
| `FORMATTED_TEXT` | Text with rich formatting. |

## ResourceType

Application specific resource type.

| Fields ||
|---|---|
| `workflowResourceDefinitionId` | `string` Unique identifier of the resource type. Does not need to be globally unique. There should be corresponding WorkflowResourceDefinition. |

## ValueMetadata

Information about the potential values of a variable.

| Fields ||
|---|---|
| `enumValues[]` | `string` Optional. Specifies the allowed values for a string. This may only be set if the DataType is a String. |
| `defaultValue` | `string` Optional. String specifying the default value for this variable. For example, if this is a boolean, defaultValue may be set to "true" or "false". |