public sealed class TruncatableString : IMessage<TruncatableString>, IEquatable<TruncatableString>, IDeepCloneable<TruncatableString>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Trace v2 API class TruncatableString.
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\u003eThe \u003ccode\u003eTruncatableString\u003c/code\u003e class represents a string that can be shortened to a specified length, useful for managing string size within the Google Cloud Trace v2 API.\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, demonstrating its comprehensive functionality and integration with other systems.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTruncatableString\u003c/code\u003e class is found within the \u003ccode\u003eGoogle.Cloud.Trace.V2\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Cloud.Trace.V2.dll\u003c/code\u003e assembly, indicating its specific location and usage.\u003c/p\u003e\n"],["\u003cp\u003eIt features properties like \u003ccode\u003eTruncatedByteCount\u003c/code\u003e to indicate how much the string has been shortened, and \u003ccode\u003eValue\u003c/code\u003e which is the shortened string itself.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release of the Google Cloud Trace v2 API is version 3.6.0, while version 3.4.0 is being referenced here, showcasing the version history of the API.\u003c/p\u003e\n"]]],[],null,[]]