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. Il nome della funzione da chiamare.
Deve iniziare con una lettera o un trattino basso.
Deve essere a-z, A-Z, 0-9 o contenere trattini bassi e trattini, con una lunghezza massima di 64.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Obbligatorio. Il nome della funzione da chiamare.
Deve iniziare con una lettera o un trattino basso.
Deve essere a-z, A-Z, 0-9 o contenere trattini bassi e trattini, con una lunghezza massima di 64.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Facoltativo. Descrive i parametri di questa funzione nel formato JSON Schema Object. Riflette l'oggetto parametro Open API 3.03. string Chiave: il nome
del parametro. I nomi dei parametri sono sensibili alle maiuscole. Valore schema: lo schema che definisce il tipo utilizzato per il parametro. Per una funzione senza parametri, è possibile lasciarla non impostata. Esempio con 1 parametro obbligatorio e 1 facoltativo: tipo: proprietà OBJECT:
param1:
tipo: STRING
param2:
tipo: INTEGER
obbligatorio:
public abstract SchemaOrBuilder getParametersOrBuilder()
Facoltativo. Descrive i parametri di questa funzione nel formato JSON Schema Object. Riflette l'oggetto parametro Open API 3.03. string Chiave: il nome
del parametro. I nomi dei parametri sono sensibili alle maiuscole. Valore schema: lo schema che definisce il tipo utilizzato per il parametro. Per una funzione senza parametri, è possibile lasciarla non impostata. Esempio con 1 parametro obbligatorio e 1 facoltativo: tipo: proprietà OBJECT:
param1:
tipo: STRING
param2:
tipo: INTEGER
obbligatorio:
Facoltativo. Descrive i parametri di questa funzione nel formato JSON Schema Object. Riflette l'oggetto parametro Open API 3.03. string Chiave: il nome
del parametro. I nomi dei parametri sono sensibili alle maiuscole. Valore schema: lo schema che definisce il tipo utilizzato per il parametro. Per una funzione senza parametri, è possibile lasciarla non impostata. Esempio con 1 parametro obbligatorio e 1 facoltativo: tipo: proprietà OBJECT:
param1:
tipo: STRING
param2:
tipo: INTEGER
obbligatorio:
[[["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 FunctionDeclarationOrBuilder (0.6.0)\n\n public interface FunctionDeclarationOrBuilder 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### getDescription()\n\n public abstract String getDescription()\n\nOptional. Description and purpose of the function.\nModel uses it to decide how and whether to call the function.\n\n`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDescriptionBytes()\n\n public abstract ByteString getDescriptionBytes()\n\nOptional. Description and purpose of the function.\nModel uses it to decide how and whether to call the function.\n\n`string description = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getName()\n\n public abstract String getName()\n\nRequired. The name of the function to call.\nMust start with a letter or an underscore.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 64.\n\n`string name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nRequired. The name of the function to call.\nMust start with a letter or an underscore.\nMust be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum\nlength of 64.\n\n`string name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getParameters()\n\n public abstract Schema getParameters()\n\nOptional. Describes the parameters to this function in JSON Schema Object\nformat. Reflects the Open API 3.03 Parameter Object. string Key: the name\nof the parameter. Parameter names are case sensitive. Schema Value: the\nSchema defining the type used for the parameter. For function with no\nparameters, this can be left unset. Example with 1 required and 1 optional\nparameter: type: OBJECT properties:\nparam1:\ntype: STRING\nparam2:\ntype: INTEGER\nrequired:\n\n- param1\n\n`\n.google.cloud.vertexai.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getParametersOrBuilder()\n\n public abstract SchemaOrBuilder getParametersOrBuilder()\n\nOptional. Describes the parameters to this function in JSON Schema Object\nformat. Reflects the Open API 3.03 Parameter Object. string Key: the name\nof the parameter. Parameter names are case sensitive. Schema Value: the\nSchema defining the type used for the parameter. For function with no\nparameters, this can be left unset. Example with 1 required and 1 optional\nparameter: type: OBJECT properties:\nparam1:\ntype: STRING\nparam2:\ntype: INTEGER\nrequired:\n\n- param1\n\n`\n.google.cloud.vertexai.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasParameters()\n\n public abstract boolean hasParameters()\n\nOptional. Describes the parameters to this function in JSON Schema Object\nformat. Reflects the Open API 3.03 Parameter Object. string Key: the name\nof the parameter. Parameter names are case sensitive. Schema Value: the\nSchema defining the type used for the parameter. For function with no\nparameters, this can be left unset. Example with 1 required and 1 optional\nparameter: type: OBJECT properties:\nparam1:\ntype: STRING\nparam2:\ntype: INTEGER\nrequired:\n\n- param1\n\n`\n.google.cloud.vertexai.v1.Schema parameters = 3 [(.google.api.field_behavior) = OPTIONAL];\n`"]]