public sealed class TruncatableString : IMessage<TruncatableString>, IEquatable<TruncatableString>, IDeepCloneable<TruncatableString>, IBufferMessage, IMessage
Represents a string that might be shortened to a specified length.
The shortened string. For example, if the original string is 500
bytes long and the limit of the string is 128 bytes, then
value contains the first 128 bytes of the 500-byte string.
Truncation always happens on a UTF8 character boundary. If there
are multi-byte characters in the string, then the length of the
shortened string might be less than the size limit.
[[["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 webpage provides documentation for the \u003ccode\u003eTruncatableString\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Trace.V2\u003c/code\u003e namespace, outlining its properties and functionality across different versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTruncatableString\u003c/code\u003e class represents a string that can be shortened to a specific length, which implements \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 class features two constructors: a default constructor and one that copies from an existing \u003ccode\u003eTruncatableString\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eTruncatableString\u003c/code\u003e include \u003ccode\u003eValue\u003c/code\u003e, which holds the shortened string, and \u003ccode\u003eTruncatedByteCount\u003c/code\u003e, indicating the number of bytes removed during shortening.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation is versioned, with versions ranging from 2.2.0 to the latest version 3.6.0, allowing users to access information relevant to their specific version of use.\u003c/p\u003e\n"]]],[],null,[]]