public sealed class ValueTransformation : IMessage<ValueTransformation>, IEquatable<ValueTransformation>, IDeepCloneable<ValueTransformation>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class ValueTransformation.
Description of data transformation during migration as part of the
ConditionalColumnSetValue.
[[["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\u003eThis documentation covers the \u003ccode\u003eValueTransformation\u003c/code\u003e class within the Google Cloud Database Migration v1 API, outlining its purpose in data transformation during migration processes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValueTransformation\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e, providing a variety of functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eValueTransformation\u003c/code\u003e class allows for various actions on data, such as applying a hash, assigning minimum or maximum values, setting to null, or assigning a specific value, along with corresponding properties to perform these actions.\u003c/p\u003e\n"],["\u003cp\u003eMultiple filters can be applied using the \u003ccode\u003eValueTransformation\u003c/code\u003e class, including double and integer comparison filters, checking if the value is null, or checking if it is contained in a specified list.\u003c/p\u003e\n"],["\u003cp\u003eThis API is versioned, with the latest version being 2.5.0, and previous versions (down to 1.0.0) are also documented and available for review.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class ValueTransformation (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.ValueTransformation)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.ValueTransformation) \n\n public sealed class ValueTransformation : IMessage\u003cValueTransformation\u003e, IEquatable\u003cValueTransformation\u003e, IDeepCloneable\u003cValueTransformation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class ValueTransformation.\n\nDescription of data transformation during migration as part of the\nConditionalColumnSetValue. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ValueTransformation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ValueTransformation](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ValueTransformation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ValueTransformation](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ValueTransformation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ValueTransformation](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ValueTransformation), [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.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### ValueTransformation()\n\n public ValueTransformation()\n\n### ValueTransformation(ValueTransformation)\n\n public ValueTransformation(ValueTransformation other)\n\nProperties\n----------\n\n### ActionCase\n\n public ValueTransformation.ActionOneofCase ActionCase { get; }\n\n### ApplyHash\n\n public ApplyHash ApplyHash { get; set; }\n\nOptional. Applies a hash function on the data\n\n### AssignMaxValue\n\n public Empty AssignMaxValue { get; set; }\n\nOptional. Set to max_value - if integer or numeric, will use\nint.maxvalue, etc\n\n### AssignMinValue\n\n public Empty AssignMinValue { get; set; }\n\nOptional. Set to min_value - if integer or numeric, will use\nint.minvalue, etc\n\n### AssignNull\n\n public Empty AssignNull { get; set; }\n\nOptional. Set to null\n\n### AssignSpecificValue\n\n public AssignSpecificValue AssignSpecificValue { get; set; }\n\nOptional. Set to a specific value (value is converted to fit the target\ndata type)\n\n### DoubleComparison\n\n public DoubleComparisonFilter DoubleComparison { get; set; }\n\nOptional. Filter on relation between source value and compare value of\ntype double.\n\n### FilterCase\n\n public ValueTransformation.FilterOneofCase FilterCase { get; }\n\n### IntComparison\n\n public IntComparisonFilter IntComparison { get; set; }\n\nOptional. Filter on relation between source value and compare value of\ntype integer.\n\n### IsNull\n\n public Empty IsNull { get; set; }\n\nOptional. Value is null\n\n### RoundScale\n\n public RoundToScale RoundScale { get; set; }\n\nOptional. Allows the data to change scale\n\n### ValueList\n\n public ValueListFilter ValueList { get; set; }\n\nOptional. Value is found in the specified list."]]