Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["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-09-03 UTC."],[],[],null,["# Interface ModalityTokenCountOrBuilder (1.32.0)\n\n public interface ModalityTokenCountOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getModality()\n\n public abstract Modality getModality()\n\nThe modality associated with this token count.\n\n`.google.cloud.vertexai.v1.Modality modality = 1;`\n\n### getModalityValue()\n\n public abstract int getModalityValue()\n\nThe modality associated with this token count.\n\n`.google.cloud.vertexai.v1.Modality modality = 1;`\n\n### getTokenCount()\n\n public abstract int getTokenCount()\n\nNumber of tokens.\n\n`int32 token_count = 2;`"]]