# Data Catalog v1 API - Class DatabaseTableSpec.Types.DatabaseViewSpec (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.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.16.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.16.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.15.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.14.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.13.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.12.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.11.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.10.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.9.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.8.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.7.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.6.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.5.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.4.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.3.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.2.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.1.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.0.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.8.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.7.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.6.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.5.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.4.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.3.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.2.0/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec)

    public sealed class DatabaseTableSpec.Types.DatabaseViewSpec : IMessage<DatabaseTableSpec.Types.DatabaseViewSpec>, IEquatable<DatabaseTableSpec.Types.DatabaseViewSpec>, IDeepCloneable<DatabaseTableSpec.Types.DatabaseViewSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Catalog v1 API class DatabaseTableSpec.Types.DatabaseViewSpec.

Specification that applies to database view.

## Inheritance

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

## Implements

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

## Constructors

### DatabaseViewSpec()

    public DatabaseViewSpec()

### DatabaseViewSpec(DatabaseViewSpec)

    public DatabaseViewSpec(DatabaseTableSpec.Types.DatabaseViewSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec` |

## Properties

### BaseTable

    public string BaseTable { get; set; }

Name of a singular table this view reflects one to one.

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

### HasBaseTable

    public bool HasBaseTable { get; }

Gets whether the "base_table" field is set

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

### HasSqlQuery

    public bool HasSqlQuery { get; }

Gets whether the "sql_query" field is set

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

### SourceDefinitionCase

    public DatabaseTableSpec.Types.DatabaseViewSpec.SourceDefinitionOneofCase SourceDefinitionCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec.SourceDefinitionOneofCase` |   |

### SqlQuery

    public string SqlQuery { get; set; }

SQL query used to generate this view.

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

### ViewType

    public DatabaseTableSpec.Types.DatabaseViewSpec.Types.ViewType ViewType { get; set; }

Type of this view.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.DatabaseTableSpec.Types.DatabaseViewSpec.Types.ViewType` |   |