# BigQuery Migration v2 API - Class SourceTargetMapping (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class SourceTargetMapping : IMessage<SourceTargetMapping>, IEquatable<SourceTargetMapping>, IDeepCloneable<SourceTargetMapping>, IBufferMessage, IMessage

Reference documentation and code samples for the BigQuery Migration v2 API class SourceTargetMapping.

Represents one mapping from a source SQL to a target SQL.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SourceTargetMapping](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceTargetMapping), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SourceTargetMapping](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceTargetMapping), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SourceTargetMapping](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceTargetMapping), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.Migration.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2)

## Assembly

Google.Cloud.BigQuery.Migration.V2.dll

## Constructors

### SourceTargetMapping()

    public SourceTargetMapping()

### SourceTargetMapping(SourceTargetMapping)

    public SourceTargetMapping(SourceTargetMapping other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceTargetMapping` |

## Properties

### SourceSpec

    public SourceSpec SourceSpec { get; set; }

The source SQL or the path to it.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceSpec` |   |

### TargetSpec

    public TargetSpec TargetSpec { get; set; }

The target SQL or the path for it.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.TargetSpec` |   |