- [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SCHEMA_REPRESENTATION)
- [DatasetResult](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#DatasetResult)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#DatasetResult.SCHEMA_REPRESENTATION)
- [SchemaRelationship](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaRelationship)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaRelationship.SCHEMA_REPRESENTATION)
- [SchemaPaths](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths.SCHEMA_REPRESENTATION)
- [Source](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Source)
- [Type](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Type)
- [Query](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query.SCHEMA_REPRESENTATION)
- [TableResult](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#TableResult)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#TableResult.SCHEMA_REPRESENTATION)
- [Schema](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Schema)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Schema.SCHEMA_REPRESENTATION)
- [Field](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field.SCHEMA_REPRESENTATION)

The output of a DataDocumentation scan.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "datasetResult": { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#DatasetResult`) }, "tableResult": { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#TableResult`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The result of the data documentation scan. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `datasetResult` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#DatasetResult`)`` Output only. Insights for a Dataset resource. |
| `tableResult` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#TableResult`)`` Output only. Insights for a Table resource. |
| End of mutually exclusive fields. ||

## DatasetResult

Insights for a dataset resource.

| JSON representation |
|---|
| ``` { "overview": string, "schemaRelationships": [ { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaRelationship`) } ], "queries": [ { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query`) } ] } ``` |

| Fields ||
|---|---|
| `overview` | `string` Output only. Generated Dataset description. |
| `schemaRelationships[]` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaRelationship`)`` Output only. Relationships suggesting how tables in the dataset are related to each other, based on their schema. |
| `queries[]` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query`)`` Output only. Sample SQL queries for the dataset. |

## SchemaRelationship

Details of the relationship between the schema of two resources.

| JSON representation |
|---|
| ``` { "leftSchemaPaths": { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths`) }, "rightSchemaPaths": { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths`) }, "sources": [ enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Source`) ], "type": enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Type`) } ``` |

| Fields ||
|---|---|
| `leftSchemaPaths` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths`)`` Output only. An ordered list of fields for the join from the first table. The size of this list must be the same as `rightSchemaPaths`. Each field at index i in this list must correspond to a field at the same index in the `rightSchemaPaths` list. |
| `rightSchemaPaths` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#SchemaPaths`)`` Output only. An ordered list of fields for the join from the second table. The size of this list must be the same as `leftSchemaPaths`. Each field at index i in this list must correspond to a field at the same index in the `leftSchemaPaths` list. |
| `sources[]` | ``enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Source`)`` Output only. Sources which generated the schema relation edge. |
| `type` | ``enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Type`)`` Output only. The type of relationship between the schema paths. |

## SchemaPaths

Represents an ordered set of paths within a table's schema.

| JSON representation |
|---|
| ``` { "tableFqn": string, "paths": [ string ] } ``` |

| Fields ||
|---|---|
| `tableFqn` | `string` Output only. The service-qualified full resource name of the table Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID |
| `paths[]` | `string` Output only. An ordered set of Paths to fields within the schema of the table. For fields nested within a top level field of type record, use '.' to separate field names. Examples: Top level field - `top_level` Nested field - `top_level.child.sub_field` |

## Source

Source which generated the schema relation edge.

| Enums ||
|---|---|
| `SOURCE_UNSPECIFIED` | The source of the schema relationship is unspecified. |
| `AGENT` | The source of the schema relationship is agent. |
| `QUERY_HISTORY` | The source of the schema relationship is query history from the source system. |
| `TABLE_CONSTRAINTS` | The source of the schema relationship is table constraints added in the source system. |

## Type

The type of relationship.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | The type of the schema relationship is unspecified. |
| `SCHEMA_JOIN` | Indicates a join relationship between the schema fields. |

## Query

A sample SQL query in data documentation.

| JSON representation |
|---|
| ``` { "sql": string, "description": string, "sqlDialect": enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/SqlDialect`) } ``` |

| Fields ||
|---|---|
| `sql` | `string` Output only. The SQL query string which can be executed. |
| `description` | `string` Output only. The description for the query. |
| `sqlDialect` | ``enum (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/SqlDialect`)`` Output only. The SQL dialect of the query. |

## TableResult

Insights for a table resource.

| JSON representation |
|---|
| ``` { "name": string, "overview": string, "schema": { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Schema`) }, "queries": [ { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The service-qualified full resource name of the cloud resource. Ex: //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID |
| `overview` | `string` Output only. Generated description of the table. |
| `schema` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Schema`)`` Output only. Schema of the table with generated metadata of the columns in the schema. |
| `queries[]` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Query`)`` Output only. Sample SQL queries for the table. |

## Schema

Schema of the table with generated metadata of columns.

| JSON representation |
|---|
| ``` { "fields": [ { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field`) } ] } ``` |

| Fields ||
|---|---|
| `fields[]` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field`)`` Output only. The list of columns. |

## Field

Column of a table with generated metadata and nested fields.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "fields": [ { object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The name of the column. |
| `description` | `string` Output only. Generated description for columns and fields. |
| `fields[]` | ``object (`https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/DataDocumentationResult#Field`)`` Output only. Nested fields. |