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 \u003ccode\u003eLocalizedMessage\u003c/code\u003e class is part of the Compute Engine v1 API and is designed to provide localized error messages for users.\u003c/p\u003e\n"],["\u003cp\u003eThis class is implemented across a range of versions, from 1.0.0 to the latest version 3.6.0, each of which has its own documentation page.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLocalizedMessage\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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.\u003c/p\u003e\n"],["\u003cp\u003eIt has two properties, \u003ccode\u003eLocale\u003c/code\u003e and \u003ccode\u003eMessage\u003c/code\u003e, which are used to store the locale of the error message and the message itself, respectively, both of which can be checked to see if they are set via \u003ccode\u003eHasLocale\u003c/code\u003e and \u003ccode\u003eHasMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, one default and one that takes in another \u003ccode\u003eLocalizedMessage\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]