## Index

- `PolicyTagManager` (interface)
- `PolicyTagManagerSerialization` (interface)
- `CreatePolicyTagRequest` (message)
- `CreateTaxonomyRequest` (message)
- `DeletePolicyTagRequest` (message)
- `DeleteTaxonomyRequest` (message)
- `ExportTaxonomiesRequest` (message)
- `ExportTaxonomiesResponse` (message)
- `GetPolicyTagRequest` (message)
- `GetTaxonomyRequest` (message)
- `ImportTaxonomiesRequest` (message)
- `ImportTaxonomiesResponse` (message)
- `InlineSource` (message)
- `ListPolicyTagsRequest` (message)
- `ListPolicyTagsResponse` (message)
- `ListTaxonomiesRequest` (message)
- `ListTaxonomiesResponse` (message)
- `ManagingSystem` (enum)
- `PolicyTag` (message)
- `SerializedPolicyTag` (message)
- `SerializedTaxonomy` (message)
- `SystemTimestamps` (message)
- `Taxonomy` (message)
- `Taxonomy.PolicyType` (enum)
- `Taxonomy.Service` (message)
- `UpdatePolicyTagRequest` (message)
- `UpdateTaxonomyRequest` (message)

## PolicyTagManager

The policy tag manager API service allows clients to manage their taxonomies and policy tags.

| CreatePolicyTag |
|---|
| `` rpc CreatePolicyTag(`CreatePolicyTagRequest`) returns (`PolicyTag`) `` Creates a policy tag in the specified taxonomy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| CreateTaxonomy |
|---|
| `` rpc CreateTaxonomy(`CreateTaxonomyRequest`) returns (`Taxonomy`) `` Creates a taxonomy in the specified project. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| DeletePolicyTag |
|---|
| `` rpc DeletePolicyTag(`DeletePolicyTagRequest`) returns (`Empty`) `` Deletes a policy tag. Also deletes all of its descendant policy tags. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| DeleteTaxonomy |
|---|
| `` rpc DeleteTaxonomy(`DeleteTaxonomyRequest`) returns (`Empty`) `` Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| GetIamPolicy |
|---|
| `` rpc GetIamPolicy(`GetIamPolicyRequest`) returns (`Policy`) `` Gets the IAM policy for a taxonomy or a policy tag. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| GetPolicyTag |
|---|
| `` rpc GetPolicyTag(`GetPolicyTagRequest`) returns (`PolicyTag`) `` Gets a policy tag. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| GetTaxonomy |
|---|
| `` rpc GetTaxonomy(`GetTaxonomyRequest`) returns (`Taxonomy`) `` Gets a taxonomy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| ListPolicyTags |
|---|
| `` rpc ListPolicyTags(`ListPolicyTagsRequest`) returns (`ListPolicyTagsResponse`) `` Lists all policy tags in a taxonomy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| ListTaxonomies |
|---|
| `` rpc ListTaxonomies(`ListTaxonomiesRequest`) returns (`ListTaxonomiesResponse`) `` Lists all taxonomies in a project in a particular location that the caller has permission to view. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| SetIamPolicy |
|---|
| `` rpc SetIamPolicy(`SetIamPolicyRequest`) returns (`Policy`) `` Sets the IAM policy for a taxonomy or a policy tag. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| TestIamPermissions |
|---|
| `` rpc TestIamPermissions(`TestIamPermissionsRequest`) returns (`TestIamPermissionsResponse`) `` Returns the permissions that a caller has on the specified taxonomy or policy tag. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| UpdatePolicyTag |
|---|
| `` rpc UpdatePolicyTag(`UpdatePolicyTagRequest`) returns (`PolicyTag`) `` Updates a policy tag. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| UpdateTaxonomy |
|---|
| `` rpc UpdateTaxonomy(`UpdateTaxonomyRequest`) returns (`Taxonomy`) `` Updates a taxonomy. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

## PolicyTagManagerSerialization

Policy tag manager serialization API service allows clients to manipulate their taxonomies and policy tags data with serialized format.

| ExportTaxonomies |
|---|
| `` rpc ExportTaxonomies(`ExportTaxonomiesRequest`) returns (`ExportTaxonomiesResponse`) `` Exports all taxonomies and their policy tags in a project. This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

| ImportTaxonomies |
|---|
| `` rpc ImportTaxonomies(`ImportTaxonomiesRequest`) returns (`ImportTaxonomiesResponse`) `` Imports all taxonomies and their policy tags to a project as new taxonomies. This method provides a bulk taxonomy / policy tag creation using nested proto structure. Authorization scopes :   Requires the following OAuth scope: - `https://www.googleapis.com/auth/cloud-platform` For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication.md.txt#authorization-gcp). |

## CreatePolicyTagRequest

Request message for `CreatePolicyTag`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of the taxonomy that the policy tag will belong to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.update` |
| `policy_tag` | `PolicyTag` The policy tag to be created. |

## CreateTaxonomyRequest

Request message for `CreateTaxonomy`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of the project that the taxonomy will belong to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.create` |
| `taxonomy` | `Taxonomy` The taxonomy to be created. |

## DeletePolicyTagRequest

Request message for `DeletePolicyTag`.

| Fields ||
|---|---|
| `name` | `string` Required. Resource name of the policy tag to be deleted. All of its descendant policy tags will also be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `datacatalog.taxonomies.update` |

## DeleteTaxonomyRequest

Request message for `DeleteTaxonomy`.

| Fields ||
|---|---|
| `name` | `string` Required. Resource name of the taxonomy to be deleted. All policy tags in this taxonomy will also be deleted. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `datacatalog.taxonomies.delete` |

## ExportTaxonomiesRequest

Request message for `ExportTaxonomies`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of the project that taxonomies to be exported will share. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.get` |
| `taxonomies[]` | `string` Required. Resource names of the taxonomies to be exported. |
| Union field `destination`. Required. Taxonomies export destination. `destination` can be only one of the following: ||
| `serialized_taxonomies` | `bool` Export taxonomies as serialized taxonomies. |

## ExportTaxonomiesResponse

Response message for `ExportTaxonomies`.

| Fields ||
|---|---|
| `taxonomies[]` | `SerializedTaxonomy` List of taxonomies and policy tags in a tree structure. |

## GetPolicyTagRequest

Request message for `GetPolicyTag`.

| Fields ||
|---|---|
| `name` | `string` Required. Resource name of the requested policy tag. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `datacatalog.taxonomies.get` |

## GetTaxonomyRequest

Request message for `GetTaxonomy`.

| Fields ||
|---|---|
| `name` | `string` Required. Resource name of the requested taxonomy. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `name`: - `datacatalog.taxonomies.get` |

## ImportTaxonomiesRequest

Request message for `ImportTaxonomies`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of project that the imported taxonomies will belong to. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.create` |
| Union field `source`. Source taxonomies to be imported. `source` can be only one of the following: ||
| `inline_source` | `InlineSource` Inline source used for taxonomies to be imported. |

## ImportTaxonomiesResponse

Response message for `ImportTaxonomies`.

| Fields ||
|---|---|
| `taxonomies[]` | `Taxonomy` Taxonomies that were imported. |

## InlineSource

Inline source used for taxonomies import.

| Fields ||
|---|---|
| `taxonomies[]` | `SerializedTaxonomy` Required. Taxonomies to be imported. |

## ListPolicyTagsRequest

Request message for `ListPolicyTags`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of the taxonomy to list the policy tags of. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.get` |
| `page_size` | `int32` The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. |
| `page_token` | `string` The next_page_token value returned from a previous List request, if any. If not set, defaults to an empty string. |

## ListPolicyTagsResponse

Response message for `ListPolicyTags`.

| Fields ||
|---|---|
| `policy_tags[]` | `PolicyTag` The policy tags that are in the requested taxonomy. |
| `next_page_token` | `string` Token used to retrieve the next page of results, or empty if there are no more results in the list. |

## ListTaxonomiesRequest

Request message for `ListTaxonomies`.

| Fields ||
|---|---|
| `parent` | `string` Required. Resource name of the project to list the taxonomies of. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `datacatalog.taxonomies.list` |
| `page_size` | `int32` The maximum number of items to return. Must be a value between 1 and 1000. If not set, defaults to 50. |
| `page_token` | `string` The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string. |
| `filter` | `string` Supported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex. |

## ListTaxonomiesResponse

Response message for `ListTaxonomies`.

| Fields ||
|---|---|
| `taxonomies[]` | `Taxonomy` Taxonomies that the project contains. |
| `next_page_token` | `string` Token used to retrieve the next page of results, or empty if there are no more results in the list. |

## ManagingSystem

This enum describes all the systems that manage Taxonomy and PolicyTag resources in Data Catalog.

| Enums ||
|---|---|
| `MANAGING_SYSTEM_UNSPECIFIED` | Default value |
| `MANAGING_SYSTEM_DATAPLEX` | Dataplex Universal Catalog. |
| `MANAGING_SYSTEM_OTHER` | Other |

## PolicyTag

Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in a hierarchy. For example, consider the following hierarchy: Geolocation -\> (LatLong, City, ZipCode). PolicyTag "Geolocation" contains three child policy tags: "LatLong", "City", and "ZipCode".

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". |
| `display_name` | `string` Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. |
| `description` | `string` Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description. |
| `parent_policy_tag` | `string` Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string. |
| `child_policy_tags[]` | `string` Output only. Resource names of child policy tags of this policy tag. |

## SerializedPolicyTag

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

| Fields ||
|---|---|
| `policy_tag` | `string` Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies. |
| `display_name` | `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. |
| `child_policy_tags[]` | `SerializedPolicyTag` Children of the policy tag if any. |

## SerializedTaxonomy

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

| Fields ||
|---|---|
| `display_name` | `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. |
| `policy_tags[]` | `SerializedPolicyTag` Top level policy tags associated with the taxonomy if any. |
| `activated_policy_types[]` | `PolicyType` A list of policy types that are activated for a taxonomy. |

## SystemTimestamps

Timestamps about this resource according to a particular system.

| Fields ||
|---|---|
| `create_time` | `Timestamp` The creation time of the resource within the given system. |
| `update_time` | `Timestamp` The last-modified time of the resource within the given system. |
| `expire_time` | `Timestamp` Output only. The expiration time of the resource within the given system. Currently only apllicable to BigQuery resources. |

## Taxonomy

A taxonomy is a collection of policy tags that classify data along a common axis. For instance a data *sensitivity* taxonomy could contain policy tags denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could contain policy tags to distinguish user data, employee data, partner data, public data.

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". |
| `display_name` | `string` Required. User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. The taxonomy display name must be unique within an organization. |
| `description` | `string` Optional. Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. |
| `policy_tag_count` | `int32` Output only. Number of policy tags contained in this taxonomy. |
| `taxonomy_timestamps` | `SystemTimestamps` Output only. Timestamps about this taxonomy. Only create_time and update_time are used. |
| `activated_policy_types[]` | `PolicyType` Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. |
| `service` | `Service` Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported. |

## PolicyType

Defines policy types where policy tag can be used for.

| Enums ||
|---|---|
| `POLICY_TYPE_UNSPECIFIED` | Unspecified policy type. |
| `FINE_GRAINED_ACCESS_CONTROL` | Fine grained access control policy, which enables access control on tagged resources. |

## Service

The source system of the Taxonomy.

| Fields ||
|---|---|
| `name` | `ManagingSystem` The Google Cloud service name. |
| `identity` | `string` The service agent for the service. |

## UpdatePolicyTagRequest

Request message for `UpdatePolicyTag`.

| Fields ||
|---|---|
| `policy_tag` | `PolicyTag` The policy tag to update. Only the description, display_name, and parent_policy_tag fields can be updated. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `policyTag`: - `datacatalog.taxonomies.update` |
| `update_mask` | `FieldMask` The update mask applies to the resource. Only display_name, description and parent_policy_tag can be updated and thus can be listed in the mask. If update_mask is not provided, all allowed fields (i.e. display_name, description and parent) will be updated. For more information including the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If not set, defaults to all of the fields that are allowed to update. |

## UpdateTaxonomyRequest

Request message for `UpdateTaxonomy`.

| Fields ||
|---|---|
| `taxonomy` | `Taxonomy` The taxonomy to update. Only description, display_name, and activated policy types can be updated. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `taxonomy`: - `datacatalog.taxonomies.update` |
| `update_mask` | `FieldMask` The update mask applies to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If not set, defaults to all of the fields that are allowed to update. |