# DataStream v1 API - Class SourceObjectIdentifier.Types.MongodbObjectIdentifier (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.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.11.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.10.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.9.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.8.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.7.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.6.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.5.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.4.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.3.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.2.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.1.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/2.0.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/1.0.0/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier)

    public sealed class SourceObjectIdentifier.Types.MongodbObjectIdentifier : IMessage<SourceObjectIdentifier.Types.MongodbObjectIdentifier>, IEquatable<SourceObjectIdentifier.Types.MongodbObjectIdentifier>, IDeepCloneable<SourceObjectIdentifier.Types.MongodbObjectIdentifier>, IBufferMessage, IMessage

Reference documentation and code samples for the DataStream v1 API class SourceObjectIdentifier.Types.MongodbObjectIdentifier.

MongoDB data source object identifier.

## Inheritance

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

## Implements

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

### MongodbObjectIdentifier()

    public MongodbObjectIdentifier()

### MongodbObjectIdentifier(MongodbObjectIdentifier)

    public MongodbObjectIdentifier(SourceObjectIdentifier.Types.MongodbObjectIdentifier other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SourceObjectIdentifierhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Datastream.V1/latest/Google.Cloud.Datastream.V1.SourceObjectIdentifier.Types.MongodbObjectIdentifier` |

## Properties

### Collection

    public string Collection { get; set; }

Required. The collection name.

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

### Database

    public string Database { get; set; }

Required. The database name.

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