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."],[[["This document provides reference information for the `TruncatableString` class within the Google Cloud Trace v2 API for .NET, specifically version 3.5.0."],["`TruncatableString` represents a string that may be shortened to a specific length, implemented via methods from interfaces like `IMessage`, `IEquatable`, and `IDeepCloneable`."],["The class has properties named `TruncatedByteCount` to track the number of removed bytes, and `Value` to represent the shortened string, ensuring truncation respects UTF8 character boundaries."],["There are two constructors available for creating `TruncatableString` instances: a default constructor and one that accepts another `TruncatableString` object."],["Multiple previous versions of the API and documentation are listed, with 3.6.0 being the latest version."]]],[]]