- [JSON representation](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#SCHEMA_REPRESENTATION)
- [Snippet](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Snippet)
  - [JSON representation](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Snippet.SCHEMA_REPRESENTATION)
- [ElementsImage](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#ElementsImage)
  - [JSON representation](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#ElementsImage.SCHEMA_REPRESENTATION)
- [Footer](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Footer)
  - [JSON representation](https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Footer.SCHEMA_REPRESENTATION)

A reference to a source of information.

| JSON representation |
|---|
| ``` { "title": string, "uri": string, "snippet": { object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Snippet`) }, "footer": { object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Footer`) } } ``` |

| Fields ||
|---|---|
| `title` | `string` Required. The plaintext title of the `CitedSource`. Does not support markdown format. |
| `uri` | `string` Required. The URI pointing to the resource referenced by this `CitedSource`. |
| `snippet` | ``object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Snippet`)`` Optional. Snippet containing information directly from the source. |
| `footer` | ``object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#Footer`)`` Optional. Additional information to show alongside the snippet in the form of a footer. |

## Snippet

A snippet object representing an excerpt from a larger corpus.

| JSON representation |
|---|
| ``` { "text": string, "imagePreview": { object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#ElementsImage`) } } ``` |

| Fields ||
|---|---|
| `text` | `string` Optional. A short plaintext excerpt directly from the corpus that is rendered in the citation hover card or source preview. When footer sources are automatically populated from inline `citations` (because `Elements.cited_sources` is not set), snippets are omitted from the deduplicated footer sources. Does not support markdown format, and must not exceed 1,000 characters. |
| `imagePreview` | ``object (`https://developers.google.com/workspace/chat/api/reference/rest/v1/CitedSource#ElementsImage`)`` Optional. Image preview of the snippet provided as an input when creating the citation. |

## ElementsImage

An object encapsulating different ways of representing an image. Currently supported representations:

- An image fetched from a URI.

Additional representations might be supported in the future.

| JSON representation |
|---|
| ``` { "imageUri": string } ``` |

| Fields ||
|---|---|
| Required. One of the supported image representations. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `imageUri` | `string` Required. The URI of the image. Must be a publicly accessible URI so that Chat can fetch and display it. |
| End of mutually exclusive fields. ||

## Footer

A footer for a source, used for attribution.

| JSON representation |
|---|
| ``` { "text": string } ``` |

| Fields ||
|---|---|
| `text` | `string` Optional. The plaintext to display in the footer. Does not support markdown format. |