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.
Obbligatorio. Le istanze che costituiscono l'input della chiamata API per il calcolo del token.
Lo schema è identico a quello di previsione del modello di testo, anche per i modelli non testuali, come i modelli di chat o i modelli Codey.
Obbligatorio. Le istanze che costituiscono l'input della chiamata API per il calcolo del token.
Lo schema è identico a quello di previsione del modello di testo, anche per i modelli non testuali, come i modelli di chat o i modelli Codey.
Obbligatorio. Le istanze che costituiscono l'input della chiamata API per il calcolo del token.
Lo schema è identico a quello di previsione del modello di testo, anche per i modelli non testuali, come i modelli di chat o i modelli Codey.
public abstract ValueOrBuilder getInstancesOrBuilder(int index)
Obbligatorio. Le istanze che costituiscono l'input della chiamata API per il calcolo del token.
Lo schema è identico a quello di previsione del modello di testo, anche per i modelli non testuali, come i modelli di chat o i modelli Codey.
public abstract List<? extends ValueOrBuilder> getInstancesOrBuilderList()
Obbligatorio. Le istanze che costituiscono l'input della chiamata API per il calcolo del token.
Lo schema è identico a quello di previsione del modello di testo, anche per i modelli non testuali, come i modelli di chat o i modelli Codey.
[[["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 ComputeTokensRequestOrBuilder (0.3.0)\n\n public interface ComputeTokensRequestOrBuilder 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### getEndpoint()\n\n public abstract String getEndpoint()\n\nRequired. The name of the Endpoint requested to get lists of tokens and\ntoken ids.\n\n`\nstring endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getEndpointBytes()\n\n public abstract ByteString getEndpointBytes()\n\nRequired. The name of the Endpoint requested to get lists of tokens and\ntoken ids.\n\n`\nstring endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }\n`\n\n### getInstances(int index)\n\n public abstract Value getInstances(int index)\n\nRequired. The instances that are the input to token computing API call.\nSchema is identical to the prediction schema of the text model, even for\nthe non-text models, like chat models, or Codey models.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesCount()\n\n public abstract int getInstancesCount()\n\nRequired. The instances that are the input to token computing API call.\nSchema is identical to the prediction schema of the text model, even for\nthe non-text models, like chat models, or Codey models.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesList()\n\n public abstract List\u003cValue\u003e getInstancesList()\n\nRequired. The instances that are the input to token computing API call.\nSchema is identical to the prediction schema of the text model, even for\nthe non-text models, like chat models, or Codey models.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesOrBuilder(int index)\n\n public abstract ValueOrBuilder getInstancesOrBuilder(int index)\n\nRequired. The instances that are the input to token computing API call.\nSchema is identical to the prediction schema of the text model, even for\nthe non-text models, like chat models, or Codey models.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getInstancesOrBuilderList()\n\n public abstract List\u003c? extends ValueOrBuilder\u003e getInstancesOrBuilderList()\n\nRequired. The instances that are the input to token computing API call.\nSchema is identical to the prediction schema of the text model, even for\nthe non-text models, like chat models, or Codey models.\n\n`repeated .google.protobuf.Value instances = 2 [(.google.api.field_behavior) = REQUIRED];\n`"]]