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"]],[["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-03-21 UTC."],[[["The `TruncatableString` class in the Google Cloud Trace v2 API represents a string that can be shortened to a specified length."],["The class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for advanced functionalities."],["It offers properties such as `TruncatedByteCount`, which indicates how many bytes were removed from the original string, and `Value`, which contains the shortened string itself."],["The `TruncatableString` class is found within the `Google.Cloud.Trace.V2` namespace, and the latest version is `3.6.0`."],["It is possible to create an instance of `TruncatableString` through two constructors: a default constructor, and another that accepts another `TruncatableString` as a parameter."]]],[]]