public sealed class MigrationSource : IMessage<MigrationSource>, IEquatable<MigrationSource>, IDeepCloneable<MigrationSource>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1alpha API class MigrationSource.
Subset of the source instance configuration that is available when reading
the cluster resource.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMigrationSource\u003c/code\u003e class in the AlloyDB v1alpha API provides a subset of the source instance configuration when reading the cluster resource.\u003c/p\u003e\n"],["\u003cp\u003eIt is available in two versions: 1.0.0-alpha10 (latest) and 1.0.0-alpha09, with the latest as the most current version of the class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMigrationSource\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message manipulation, equality comparisons, deep cloning, and buffered message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eHostPort\u003c/code\u003e, \u003ccode\u003eReferenceId\u003c/code\u003e, and \u003ccode\u003eSourceType\u003c/code\u003e to describe the host/port, external source identifier, and migration source type respectively, all output-only.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two constructors, one default and one to duplicate an existing \u003ccode\u003eMigrationSource\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class MigrationSource (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.MigrationSource)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.MigrationSource) \n\n public sealed class MigrationSource : IMessage\u003cMigrationSource\u003e, IEquatable\u003cMigrationSource\u003e, IDeepCloneable\u003cMigrationSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1alpha API class MigrationSource.\n\nSubset of the source instance configuration that is available when reading\nthe cluster resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MigrationSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.MigrationSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.MigrationSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MigrationSource](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.MigrationSource), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.dll\n\nConstructors\n------------\n\n### MigrationSource()\n\n public MigrationSource()\n\n### MigrationSource(MigrationSource)\n\n public MigrationSource(MigrationSource other)\n\nProperties\n----------\n\n### HostPort\n\n public string HostPort { get; set; }\n\nOutput only. The host and port of the on-premises instance in host:port\nformat\n\n### ReferenceId\n\n public string ReferenceId { get; set; }\n\nOutput only. Place holder for the external source identifier(e.g DMS job\nname) that created the cluster.\n\n### SourceType\n\n public MigrationSource.Types.MigrationSourceType SourceType { get; set; }\n\nOutput only. Type of migration source."]]