# DataStream v1 API - Class DiscoverConnectionProfileRequest (2.12.0)

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

- [2.12.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.11.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.10.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.9.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.8.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.7.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.6.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.5.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.4.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.3.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.2.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.1.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.0.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/1.0.0/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest)

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

Reference documentation and code samples for the DataStream v1 API class DiscoverConnectionProfileRequest.

Request message for 'discover' ConnectionProfile request.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Datastream.V1.dll

## Constructors

### DiscoverConnectionProfileRequest()

    public DiscoverConnectionProfileRequest()

### DiscoverConnectionProfileRequest(DiscoverConnectionProfileRequest)

    public DiscoverConnectionProfileRequest(DiscoverConnectionProfileRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest` |

## Properties

### ConnectionProfile

    public ConnectionProfile ConnectionProfile { get; set; }

An ad-hoc connection profile configuration.

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

### ConnectionProfileName

    public string ConnectionProfileName { get; set; }

A reference to an existing connection profile.

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

### DataObjectCase

    public DiscoverConnectionProfileRequest.DataObjectOneofCase DataObjectCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest.DataObjectOneofCase` |   |

### FullHierarchy

    public bool FullHierarchy { get; set; }

Whether to retrieve the full hierarchy of data objects (TRUE) or only the
current level (FALSE).

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

### HasConnectionProfileName

    public bool HasConnectionProfileName { get; }

Gets whether the "connection_profile_name" field is set

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

### HasFullHierarchy

    public bool HasFullHierarchy { get; }

Gets whether the "full_hierarchy" field is set

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

### HasHierarchyDepth

    public bool HasHierarchyDepth { get; }

Gets whether the "hierarchy_depth" field is set

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

### HierarchyCase

    public DiscoverConnectionProfileRequest.HierarchyOneofCase HierarchyCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest.HierarchyOneofCase` |   |

### HierarchyDepth

    public int HierarchyDepth { get; set; }

The number of hierarchy levels below the current level to be retrieved.

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

### MongodbCluster

    public MongodbCluster MongodbCluster { get; set; }

MongoDB cluster to enrich with child data objects and metadata.

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

### MysqlRdbms

    public MysqlRdbms MysqlRdbms { get; set; }

MySQL RDBMS to enrich with child data objects and metadata.

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

### OracleRdbms

    public OracleRdbms OracleRdbms { get; set; }

Oracle RDBMS to enrich with child data objects and metadata.

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

### Parent

    public string Parent { get; set; }

Required. The parent resource of the connection profile type. Must be in
the format `projects/*/locations/*`.

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest#Google_Cloud_Datastream_V1_DiscoverConnectionProfileRequest_Parent) resource name property.

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

### PostgresqlRdbms

    public PostgresqlRdbms PostgresqlRdbms { get; set; }

PostgreSQL RDBMS to enrich with child data objects and metadata.

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

### SalesforceOrg

    public SalesforceOrg SalesforceOrg { get; set; }

Salesforce organization to enrich with child data objects and metadata.

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

### SqlServerRdbms

    public SqlServerRdbms SqlServerRdbms { get; set; }

SQLServer RDBMS to enrich with child data objects and metadata.

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

### TargetCase

    public DiscoverConnectionProfileRequest.TargetOneofCase TargetCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.DiscoverConnectionProfileRequest.TargetOneofCase` |   |