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.
Required. The function response in JSON object format.
Use "output" key to specify function output and "error" key to specify
error details (if any). If "output" and "error" keys are not specified,
then whole "response" is treated as function output.
Required. The function response in JSON object format.
Use "output" key to specify function output and "error" key to specify
error details (if any). If "output" and "error" keys are not specified,
then whole "response" is treated as function output.
Required. The function response in JSON object format.
Use "output" key to specify function output and "error" key to specify
error details (if any). If "output" and "error" keys are not specified,
then whole "response" is treated as function output.
[[["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 FunctionResponseOrBuilder (1.32.0)\n\n public interface FunctionResponseOrBuilder 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### getName()\n\n public abstract String getName()\n\nRequired. The name of the function to call.\nMatches \\[FunctionDeclaration.name\\] and \\[FunctionCall.name\\].\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.\nMatches \\[FunctionDeclaration.name\\] and \\[FunctionCall.name\\].\n\n`string name = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getResponse()\n\n public abstract Struct getResponse()\n\nRequired. The function response in JSON object format.\nUse \"output\" key to specify function output and \"error\" key to specify\nerror details (if any). If \"output\" and \"error\" keys are not specified,\nthen whole \"response\" is treated as function output.\n\n`.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### getResponseOrBuilder()\n\n public abstract StructOrBuilder getResponseOrBuilder()\n\nRequired. The function response in JSON object format.\nUse \"output\" key to specify function output and \"error\" key to specify\nerror details (if any). If \"output\" and \"error\" keys are not specified,\nthen whole \"response\" is treated as function output.\n\n`.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];`\n\n### hasResponse()\n\n public abstract boolean hasResponse()\n\nRequired. The function response in JSON object format.\nUse \"output\" key to specify function output and \"error\" key to specify\nerror details (if any). If \"output\" and \"error\" keys are not specified,\nthen whole \"response\" is treated as function output.\n\n`.google.protobuf.Struct response = 2 [(.google.api.field_behavior) = REQUIRED];`"]]