# Data Catalog v1 API - Class PolicyTagManagerSerializationClient (2.17.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.17.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.16.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.16.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.15.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.14.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.13.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.12.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.11.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.10.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.9.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.8.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.7.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.6.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.5.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.4.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.3.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.2.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.1.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.0.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.8.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.7.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.6.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.5.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.4.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.3.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.2.0/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient)

    public abstract class PolicyTagManagerSerializationClient

Reference documentation and code samples for the Data Catalog v1 API class PolicyTagManagerSerializationClient.

PolicyTagManagerSerialization client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PolicyTagManagerSerializationClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[PolicyTagManagerSerializationClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClientImpl)

## Namespace

[Google.Cloud.DataCatalog.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1)

## Assembly

Google.Cloud.DataCatalog.V1.dll

## Remarks

Policy Tag Manager Serialization API service allows you to manipulate
your policy tags and taxonomies in a serialized format.

Taxonomy is a hierarchical group of policy tags.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the PolicyTagManagerSerialization service, which is a host of
"datacatalog.googleapis.com" and a port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default PolicyTagManagerSerialization scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default PolicyTagManagerSerialization scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual PolicyTagManagerSerialization.PolicyTagManagerSerializationClient GrpcClient { get; }

The underlying gRPC PolicyTagManagerSerialization client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerialization.PolicyTagManagerSerializationClient` |   |

### IAMPolicyClient

    public virtual IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static PolicyTagManagerSerializationClient Create()

Synchronously creates a [PolicyTagManagerSerializationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[PolicyTagManagerSerializationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient` | The created [PolicyTagManagerSerializationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient). |

### CreateAsync(CancellationToken)

    public static Task<PolicyTagManagerSerializationClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [PolicyTagManagerSerializationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[PolicyTagManagerSerializationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient` | The task representing the created [PolicyTagManagerSerializationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient). |

### ExportTaxonomies(ExportTaxonomiesRequest, CallSettings)

    public virtual ExportTaxonomiesResponse ExportTaxonomies(ExportTaxonomiesRequest request, CallSettings callSettings = null)

Exports taxonomies in the requested type and returns them,
including their policy tags. The requested taxonomies must belong to the
same project.

This method generates `SerializedTaxonomy` protocol buffers with nested
policy tags that can be used as input for `ImportTaxonomies` calls.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesResponse` | The RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.Create();
    // Initialize request argument(s)
    ExportTaxonomiesRequest request = new ExportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TaxonomiesAsTaxonomyNames =
        {
            TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        },
        SerializedTaxonomies = false,
    };
    // Make the request
    ExportTaxonomiesResponse response = policyTagManagerSerializationClient.ExportTaxonomies(request);

### ExportTaxonomiesAsync(ExportTaxonomiesRequest, CallSettings)

    public virtual Task<ExportTaxonomiesResponse> ExportTaxonomiesAsync(ExportTaxonomiesRequest request, CallSettings callSettings = null)

Exports taxonomies in the requested type and returns them,
including their policy tags. The requested taxonomies must belong to the
same project.

This method generates `SerializedTaxonomy` protocol buffers with nested
policy tags that can be used as input for `ImportTaxonomies` calls.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ExportTaxonomiesRequest request = new ExportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TaxonomiesAsTaxonomyNames =
        {
            TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        },
        SerializedTaxonomies = false,
    };
    // Make the request
    ExportTaxonomiesResponse response = await policyTagManagerSerializationClient.ExportTaxonomiesAsync(request);

### ExportTaxonomiesAsync(ExportTaxonomiesRequest, CancellationToken)

    public virtual Task<ExportTaxonomiesResponse> ExportTaxonomiesAsync(ExportTaxonomiesRequest request, CancellationToken cancellationToken)

Exports taxonomies in the requested type and returns them,
including their policy tags. The requested taxonomies must belong to the
same project.

This method generates `SerializedTaxonomy` protocol buffers with nested
policy tags that can be used as input for `ImportTaxonomies` calls.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ExportTaxonomiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ExportTaxonomiesRequest request = new ExportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        TaxonomiesAsTaxonomyNames =
        {
            TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        },
        SerializedTaxonomies = false,
    };
    // Make the request
    ExportTaxonomiesResponse response = await policyTagManagerSerializationClient.ExportTaxonomiesAsync(request);

### ImportTaxonomies(ImportTaxonomiesRequest, CallSettings)

    public virtual ImportTaxonomiesResponse ImportTaxonomies(ImportTaxonomiesRequest request, CallSettings callSettings = null)

Creates new taxonomies (including their policy tags) in a given project
by importing from inlined or cross-regional sources.

For a cross-regional source, new taxonomies are created by copying
from a source in another region.

For an inlined source, taxonomies and policy tags are created in bulk using
nested protocol buffer structures.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesResponse` | The RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.Create();
    // Initialize request argument(s)
    ImportTaxonomiesRequest request = new ImportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        InlineSource = new InlineSource(),
    };
    // Make the request
    ImportTaxonomiesResponse response = policyTagManagerSerializationClient.ImportTaxonomies(request);

### ImportTaxonomiesAsync(ImportTaxonomiesRequest, CallSettings)

    public virtual Task<ImportTaxonomiesResponse> ImportTaxonomiesAsync(ImportTaxonomiesRequest request, CallSettings callSettings = null)

Creates new taxonomies (including their policy tags) in a given project
by importing from inlined or cross-regional sources.

For a cross-regional source, new taxonomies are created by copying
from a source in another region.

For an inlined source, taxonomies and policy tags are created in bulk using
nested protocol buffer structures.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ImportTaxonomiesRequest request = new ImportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        InlineSource = new InlineSource(),
    };
    // Make the request
    ImportTaxonomiesResponse response = await policyTagManagerSerializationClient.ImportTaxonomiesAsync(request);

### ImportTaxonomiesAsync(ImportTaxonomiesRequest, CancellationToken)

    public virtual Task<ImportTaxonomiesResponse> ImportTaxonomiesAsync(ImportTaxonomiesRequest request, CancellationToken cancellationToken)

Creates new taxonomies (including their policy tags) in a given project
by importing from inlined or cross-regional sources.

For a cross-regional source, new taxonomies are created by copying
from a source in another region.

For an inlined source, taxonomies and policy tags are created in bulk using
nested protocol buffer structures.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ImportTaxonomiesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ImportTaxonomiesRequest request = new ImportTaxonomiesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        InlineSource = new InlineSource(),
    };
    // Make the request
    ImportTaxonomiesResponse response = await policyTagManagerSerializationClient.ImportTaxonomiesAsync(request);

### ReplaceTaxonomy(ReplaceTaxonomyRequest, CallSettings)

    public virtual Taxonomy ReplaceTaxonomy(ReplaceTaxonomyRequest request, CallSettings callSettings = null)

Replaces (updates) a taxonomy and all its policy tags.

The taxonomy and its entire hierarchy of policy tags must be
represented literally by `SerializedTaxonomy` and the nested
`SerializedPolicyTag` messages.

This operation automatically does the following:

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`.
- Creates policy tags that don't have resource names. They are considered new.
- Updates policy tags with valid resources names accordingly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ReplaceTaxonomyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.Taxonomy` | The RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.Create();
    // Initialize request argument(s)
    ReplaceTaxonomyRequest request = new ReplaceTaxonomyRequest
    {
        TaxonomyName = TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        SerializedTaxonomy = new SerializedTaxonomy(),
    };
    // Make the request
    Taxonomy response = policyTagManagerSerializationClient.ReplaceTaxonomy(request);

### ReplaceTaxonomyAsync(ReplaceTaxonomyRequest, CallSettings)

    public virtual Task<Taxonomy> ReplaceTaxonomyAsync(ReplaceTaxonomyRequest request, CallSettings callSettings = null)

Replaces (updates) a taxonomy and all its policy tags.

The taxonomy and its entire hierarchy of policy tags must be
represented literally by `SerializedTaxonomy` and the nested
`SerializedPolicyTag` messages.

This operation automatically does the following:

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`.
- Creates policy tags that don't have resource names. They are considered new.
- Updates policy tags with valid resources names accordingly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ReplaceTaxonomyRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.Taxonomy` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ReplaceTaxonomyRequest request = new ReplaceTaxonomyRequest
    {
        TaxonomyName = TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        SerializedTaxonomy = new SerializedTaxonomy(),
    };
    // Make the request
    Taxonomy response = await policyTagManagerSerializationClient.ReplaceTaxonomyAsync(request);

### ReplaceTaxonomyAsync(ReplaceTaxonomyRequest, CancellationToken)

    public virtual Task<Taxonomy> ReplaceTaxonomyAsync(ReplaceTaxonomyRequest request, CancellationToken cancellationToken)

Replaces (updates) a taxonomy and all its policy tags.

The taxonomy and its entire hierarchy of policy tags must be
represented literally by `SerializedTaxonomy` and the nested
`SerializedPolicyTag` messages.

This operation automatically does the following:

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`.
- Creates policy tags that don't have resource names. They are considered new.
- Updates policy tags with valid resources names accordingly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.ReplaceTaxonomyRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.Taxonomy` | A Task containing the RPC response. |

**Example**

    // Create client
    PolicyTagManagerSerializationClient policyTagManagerSerializationClient = await PolicyTagManagerSerializationClient.CreateAsync();
    // Initialize request argument(s)
    ReplaceTaxonomyRequest request = new ReplaceTaxonomyRequest
    {
        TaxonomyName = TaxonomyName.FromProjectLocationTaxonomy("[PROJECT]", "[LOCATION]", "[TAXONOMY]"),
        SerializedTaxonomy = new SerializedTaxonomy(),
    };
    // Make the request
    Taxonomy response = await policyTagManagerSerializationClient.ReplaceTaxonomyAsync(request);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient#Google_Cloud_DataCatalog_V1_PolicyTagManagerSerializationClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient#Google_Cloud_DataCatalog_V1_PolicyTagManagerSerializationClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient#Google_Cloud_DataCatalog_V1_PolicyTagManagerSerializationClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.PolicyTagManagerSerializationClient#Google_Cloud_DataCatalog_V1_PolicyTagManagerSerializationClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.