# BigQuery Migration v2 API - Class SourceEnv (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 SourceEnv : IMessage<SourceEnv>, IEquatable<SourceEnv>, IDeepCloneable<SourceEnv>, IBufferMessage, IMessage

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

Represents the default source environment values for the translation.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SourceEnv](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceEnv), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SourceEnv](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceEnv), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SourceEnv](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.SourceEnv), [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

### SourceEnv()

    public SourceEnv()

### SourceEnv(SourceEnv)

    public SourceEnv(SourceEnv other)

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

## Properties

### DefaultDatabase

    public string DefaultDatabase { get; set; }

The default database name to fully qualify SQL objects when their database
name is missing.

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

### MetadataStoreDataset

    public string MetadataStoreDataset { get; set; }

Optional. Expects a valid BigQuery dataset ID that exists, e.g.,
project-123.metadata_store_123. If specified, translation will search and
read the required schema information from a metadata store in this dataset.
If metadata store doesn't exist, translation will parse the metadata file
and upload the schema info to a temp table in the dataset to speed up
future translation jobs.

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

### SchemaSearchPath

    public RepeatedField<string> SchemaSearchPath { get; }

The schema search path. When SQL objects are missing schema name,
translation engine will search through this list to find the value.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |