public sealed class ModalityTokenCount : IMessage<ModalityTokenCount>, IEquatable<ModalityTokenCount>, IDeepCloneable<ModalityTokenCount>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class ModalityTokenCount.
Represents token counting info for a single modality.
[[["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-04-09 UTC."],[[["The `ModalityTokenCount` class in the Vertex AI v1beta1 API represents token counting information for a single modality."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["It inherits from the base `object` class, and has methods such as `GetHashCode()`, `GetType()`, and `ToString()`."],["The class offers two constructors, one default and one that takes another `ModalityTokenCount` object as a parameter, the latter for creating a copy."],["`ModalityTokenCount` has two properties: `Modality`, which specifies the modality type, and `TokenCount`, an integer representing the number of tokens."]]],[]]