# SerializedTaxonomy

- [JSON representation](https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SCHEMA_REPRESENTATION)
- [SerializedPolicyTag](https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag)
  - [JSON representation](https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag.SCHEMA_REPRESENTATION)

Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation.

| JSON representation |
|---|
| ``` { "displayName": string, "description": string, "policyTags": [ { object (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag`) } ], "activatedPolicyTypes": [ enum (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.taxonomies#PolicyType`) ] } ``` |

| Fields ||
|---|---|
| `displayName` | `string` Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8. |
| `description` | `string` Description of the serialized taxonomy. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. |
| `policyTags[]` | ``object (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag`)`` Top level policy tags associated with the taxonomy if any. |
| `activatedPolicyTypes[]` | ``enum (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.taxonomies#PolicyType`)`` A list of policy types that are activated for a taxonomy. |

## SerializedPolicyTag

Message representing one policy tag when exported as a nested proto.

| JSON representation |
|---|
| ``` { "policyTag": string, "displayName": string, "description": string, "childPolicyTags": [ { object (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag`) } ] } ``` |

| Fields ||
|---|---|
| `policyTag` | `string` Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies. |
| `displayName` | `string` Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8. |
| `description` | `string` Description of the serialized policy tag. The length of the description is limited to 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. |
| `childPolicyTags[]` | ``object (`https://docs.cloud.google.com/data-catalog/docs/reference/rest/v1beta1/SerializedTaxonomy#SerializedPolicyTag`)`` Children of the policy tag if any. |