public sealed class LocalizedMessage : IMessage<LocalizedMessage>, IEquatable<LocalizedMessage>, IDeepCloneable<LocalizedMessage>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class LocalizedMessage.
Provides a localized error message that is safe to return to the user which can be attached to an RPC error.
[[["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-08 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eLocalizedMessage\u003c/code\u003e class in the Compute Engine v1 API is 3.6.0, with the current page detailing version 3.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalizedMessage\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, provides a mechanism for returning localized error messages to users.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalizedMessage\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, inheriting members from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eLocalizedMessage\u003c/code\u003e class include \u003ccode\u003eHasLocale\u003c/code\u003e, \u003ccode\u003eHasMessage\u003c/code\u003e, \u003ccode\u003eLocale\u003c/code\u003e, and \u003ccode\u003eMessage\u003c/code\u003e, which allow for setting and retrieving locale-specific error messages.\u003c/p\u003e\n"],["\u003cp\u003eThe class also has a constructor, \u003ccode\u003eLocalizedMessage()\u003c/code\u003e, which can be used to create a new message, and another, \u003ccode\u003eLocalizedMessage(LocalizedMessage)\u003c/code\u003e, to copy from another message.\u003c/p\u003e\n"]]],[],null,[]]