public sealed class CountTokensResponse : IMessage<CountTokensResponse>, IEquatable<CountTokensResponse>, IDeepCloneable<CountTokensResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1 API class CountTokensResponse.
Response message for [PredictionService.CountTokens][].
[[["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\u003eThe \u003ccode\u003eCountTokensResponse\u003c/code\u003e class is part of the Google Cloud AI Platform v1 API, specifically for handling responses from the \u003ccode\u003ePredictionService.CountTokens\u003c/code\u003e method.\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, ensuring compatibility with Google Protobuf and offering functionalities like deep cloning and equality comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCountTokensResponse\u003c/code\u003e class includes two properties, \u003ccode\u003eTotalBillableCharacters\u003c/code\u003e and \u003ccode\u003eTotalTokens\u003c/code\u003e, which respectively represent the total count of billable characters and tokens across all instances in a request.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides access to various versions of the \u003ccode\u003eCountTokensResponse\u003c/code\u003e class, ranging from the latest 3.22.0 down to 1.0.0, with each version linking to its corresponding documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCountTokensResponse\u003c/code\u003e class can be constructed either as an empty object using a default constructor or cloned from another \u003ccode\u003eCountTokensResponse\u003c/code\u003e instance using an overload constructor.\u003c/p\u003e\n"]]],[],null,[]]