public sealed class MemoryUsageSample : IMessage<MemoryUsageSample>, IEquatable<MemoryUsageSample>, IDeepCloneable<MemoryUsageSample>, IBufferMessage, IMessage
Reference documentation and code samples for the Migration Center v1 API class MemoryUsageSample.
[[["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\u003eMemoryUsageSample\u003c/code\u003e class, part of the Google Cloud Migration Center v1 API, provides details about memory usage within a system, specifically the percentage utilized.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, supporting various functionalities like serialization and cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMemoryUsageSample\u003c/code\u003e class is available in multiple versions, with the latest being version 1.4.0, and is accessible within the \u003ccode\u003eGoogle.Cloud.MigrationCenter.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class is constructed using one of two constructors, one being the default constructor, and the other accepting another MemoryUsageSample as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe only property in the class is \u003ccode\u003eUtilizedPercentage\u003c/code\u003e, which returns a \u003ccode\u003efloat\u003c/code\u003e representing the percentage of system memory utilized, ranging from 0 to 100.\u003c/p\u003e\n"]]],[],null,["# Migration Center v1 API - Class MemoryUsageSample (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MemoryUsageSample)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.3.0/Google.Cloud.MigrationCenter.V1.MemoryUsageSample)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.2.0/Google.Cloud.MigrationCenter.V1.MemoryUsageSample)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.1.0/Google.Cloud.MigrationCenter.V1.MemoryUsageSample)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.0.0/Google.Cloud.MigrationCenter.V1.MemoryUsageSample) \n\n public sealed class MemoryUsageSample : IMessage\u003cMemoryUsageSample\u003e, IEquatable\u003cMemoryUsageSample\u003e, IDeepCloneable\u003cMemoryUsageSample\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Migration Center v1 API class MemoryUsageSample.\n\nMemory usage sample. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MemoryUsageSample \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MemoryUsageSample](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MemoryUsageSample), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MemoryUsageSample](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MemoryUsageSample), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MemoryUsageSample](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.MemoryUsageSample), [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.MigrationCenter.V1](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.MigrationCenter.V1.dll\n\nConstructors\n------------\n\n### MemoryUsageSample()\n\n public MemoryUsageSample()\n\n### MemoryUsageSample(MemoryUsageSample)\n\n public MemoryUsageSample(MemoryUsageSample other)\n\nProperties\n----------\n\n### UtilizedPercentage\n\n public float UtilizedPercentage { get; set; }\n\nPercentage of system memory utilized. Must be in the interval \\[0, 100\\]."]]