A partire dal 29 aprile 2025, i modelli Gemini 1.5 Pro e Gemini 1.5 Flash non sono disponibili nei progetti che non li hanno mai utilizzati, inclusi i nuovi progetti. Per maggiori dettagli, vedi Versioni e ciclo di vita dei modelli.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2024-05-17 UTC."],[],[],null,["# Interface GenerateContentResponse.UsageMetadataOrBuilder (1.32.0)\n\n public static interface GenerateContentResponse.UsageMetadataOrBuilder 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### getCacheTokensDetails(int index)\n\n public abstract ModalityTokenCount getCacheTokensDetails(int index)\n\nOutput only. List of modalities of the cached content in the request\ninput.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCacheTokensDetailsCount()\n\n public abstract int getCacheTokensDetailsCount()\n\nOutput only. List of modalities of the cached content in the request\ninput.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCacheTokensDetailsList()\n\n public abstract List\u003cModalityTokenCount\u003e getCacheTokensDetailsList()\n\nOutput only. List of modalities of the cached content in the request\ninput.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCacheTokensDetailsOrBuilder(int index)\n\n public abstract ModalityTokenCountOrBuilder getCacheTokensDetailsOrBuilder(int index)\n\nOutput only. List of modalities of the cached content in the request\ninput.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCacheTokensDetailsOrBuilderList()\n\n public abstract List\u003c? extends ModalityTokenCountOrBuilder\u003e getCacheTokensDetailsOrBuilderList()\n\nOutput only. List of modalities of the cached content in the request\ninput.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount cache_tokens_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCachedContentTokenCount()\n\n public abstract int getCachedContentTokenCount()\n\nOutput only. Number of tokens in the cached part in the input (the cached\ncontent).\n\n`int32 cached_content_token_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCandidatesTokenCount()\n\n public abstract int getCandidatesTokenCount()\n\nNumber of tokens in the response(s).\n\n`int32 candidates_token_count = 2;`\n\n### getCandidatesTokensDetails(int index)\n\n public abstract ModalityTokenCount getCandidatesTokensDetails(int index)\n\nOutput only. List of modalities that were returned in the response.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCandidatesTokensDetailsCount()\n\n public abstract int getCandidatesTokensDetailsCount()\n\nOutput only. List of modalities that were returned in the response.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCandidatesTokensDetailsList()\n\n public abstract List\u003cModalityTokenCount\u003e getCandidatesTokensDetailsList()\n\nOutput only. List of modalities that were returned in the response.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCandidatesTokensDetailsOrBuilder(int index)\n\n public abstract ModalityTokenCountOrBuilder getCandidatesTokensDetailsOrBuilder(int index)\n\nOutput only. List of modalities that were returned in the response.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getCandidatesTokensDetailsOrBuilderList()\n\n public abstract List\u003c? extends ModalityTokenCountOrBuilder\u003e getCandidatesTokensDetailsOrBuilderList()\n\nOutput only. List of modalities that were returned in the response.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount candidates_tokens_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getPromptTokenCount()\n\n public abstract int getPromptTokenCount()\n\nNumber of tokens in the request. When `cached_content` is set, this is\nstill the total effective prompt size meaning this includes the number of\ntokens in the cached content.\n\n`int32 prompt_token_count = 1;`\n\n### getPromptTokensDetails(int index)\n\n public abstract ModalityTokenCount getPromptTokensDetails(int index)\n\nOutput only. List of modalities that were processed in the request input.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getPromptTokensDetailsCount()\n\n public abstract int getPromptTokensDetailsCount()\n\nOutput only. List of modalities that were processed in the request input.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getPromptTokensDetailsList()\n\n public abstract List\u003cModalityTokenCount\u003e getPromptTokensDetailsList()\n\nOutput only. List of modalities that were processed in the request input.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getPromptTokensDetailsOrBuilder(int index)\n\n public abstract ModalityTokenCountOrBuilder getPromptTokensDetailsOrBuilder(int index)\n\nOutput only. List of modalities that were processed in the request input.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getPromptTokensDetailsOrBuilderList()\n\n public abstract List\u003c? extends ModalityTokenCountOrBuilder\u003e getPromptTokensDetailsOrBuilderList()\n\nOutput only. List of modalities that were processed in the request input.\n\n`\nrepeated .google.cloud.vertexai.v1.ModalityTokenCount prompt_tokens_details = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];\n`\n\n### getTotalTokenCount()\n\n public abstract int getTotalTokenCount()\n\nTotal token count for prompt and response candidates.\n\n`int32 total_token_count = 3;`"]]