public sealed class UpdateProfileRequest : IMessage<UpdateProfileRequest>, IEquatable<UpdateProfileRequest>, IDeepCloneable<UpdateProfileRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Profiler v2 API class UpdateProfileRequest.
UpdateProfileRequest contains the profile to update.
Field mask used to specify the fields to be overwritten. Currently only
profile_bytes and labels fields are supported by UpdateProfile, so only
those fields can be specified in the mask. When no mask is provided, all
fields are overwritten.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eUpdateProfileRequest\u003c/code\u003e class within the Google Cloud Profiler v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eUpdateProfileRequest\u003c/code\u003e is 2.6.0, with previous versions ranging from 2.5.0 down to 1.0.0 also being available for reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateProfileRequest\u003c/code\u003e class 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateProfileRequest\u003c/code\u003e class contains two properties, \u003ccode\u003eProfile\u003c/code\u003e which is the profile to update, and \u003ccode\u003eUpdateMask\u003c/code\u003e used to specify which fields to be overwritten.\u003c/p\u003e\n"],["\u003cp\u003eThere are also two constructors for creating \u003ccode\u003eUpdateProfileRequest\u003c/code\u003e objects, one default, and another that takes an existing \u003ccode\u003eUpdateProfileRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,["# Cloud Profiler v2 API - Class UpdateProfileRequest (2.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.0 (latest)](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.5.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.4.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.3.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.2.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.1.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/2.0.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.2.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.1.0/Google.Cloud.Profiler.V2.UpdateProfileRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Profiler.V2/1.0.0/Google.Cloud.Profiler.V2.UpdateProfileRequest) \n\n public sealed class UpdateProfileRequest : IMessage\u003cUpdateProfileRequest\u003e, IEquatable\u003cUpdateProfileRequest\u003e, IDeepCloneable\u003cUpdateProfileRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Profiler v2 API class UpdateProfileRequest.\n\nUpdateProfileRequest contains the profile to update. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UpdateProfileRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateProfileRequest](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.UpdateProfileRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateProfileRequest](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.UpdateProfileRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateProfileRequest](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2.UpdateProfileRequest), [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.Profiler.V2](/dotnet/docs/reference/Google.Cloud.Profiler.V2/latest/Google.Cloud.Profiler.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Profiler.V2.dll\n\nConstructors\n------------\n\n### UpdateProfileRequest()\n\n public UpdateProfileRequest()\n\n### UpdateProfileRequest(UpdateProfileRequest)\n\n public UpdateProfileRequest(UpdateProfileRequest other)\n\nProperties\n----------\n\n### Profile\n\n public Profile Profile { get; set; }\n\nProfile to update.\n\n### UpdateMask\n\n public FieldMask UpdateMask { get; set; }\n\nField mask used to specify the fields to be overwritten. Currently only\nprofile_bytes and labels fields are supported by UpdateProfile, so only\nthose fields can be specified in the mask. When no mask is provided, all\nfields are overwritten."]]