public sealed class ModalityTokenCount : IMessage<ModalityTokenCount>, IEquatable<ModalityTokenCount>, IDeepCloneable<ModalityTokenCount>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1 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"]],[["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-20 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eModalityTokenCount\u003c/code\u003e class within the Cloud AI Platform v1 API, specifically for the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe content lists numerous versions of the API, ranging from version 1.0.0 to the latest version 3.22.0, with each version providing access to the \u003ccode\u003eModalityTokenCount\u003c/code\u003e reference.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eModalityTokenCount\u003c/code\u003e is a class used to represent token counting information for a single modality and implements various interfaces including \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 has two constructors, a default one, and another that takes another \u003ccode\u003eModalityTokenCount\u003c/code\u003e instance, allowing for the creation of new objects or the cloning of existing ones.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModalityTokenCount\u003c/code\u003e class contains two properties, \u003ccode\u003eModality\u003c/code\u003e, which is the type associated with this token count, and \u003ccode\u003eTokenCount\u003c/code\u003e, which represents the number of tokens.\u003c/p\u003e\n"]]],[],null,[]]