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.
Optional. Function names to call. Only set when the Mode is ANY. Function
names should match [FunctionDeclaration.name]. With mode set to ANY, model
will predict a function call from the set of function names provided.
Optional. Function names to call. Only set when the Mode is ANY. Function
names should match [FunctionDeclaration.name]. With mode set to ANY, model
will predict a function call from the set of function names provided.
The bytes of the allowedFunctionNames at the given index.
getAllowedFunctionNamesCount()
publicabstractintgetAllowedFunctionNamesCount()
Optional. Function names to call. Only set when the Mode is ANY. Function
names should match [FunctionDeclaration.name]. With mode set to ANY, model
will predict a function call from the set of function names provided.
Optional. Function names to call. Only set when the Mode is ANY. Function
names should match [FunctionDeclaration.name]. With mode set to ANY, model
will predict a function call from the set of function names provided.
[[["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-08-28 UTC."],[],[],null,["# Interface FunctionCallingConfigOrBuilder (1.32.0)\n\n public interface FunctionCallingConfigOrBuilder 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### getAllowedFunctionNames(int index)\n\n public abstract String getAllowedFunctionNames(int index)\n\nOptional. Function names to call. Only set when the Mode is ANY. Function\nnames should match \\[FunctionDeclaration.name\\]. With mode set to ANY, model\nwill predict a function call from the set of function names provided.\n\n`repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAllowedFunctionNamesBytes(int index)\n\n public abstract ByteString getAllowedFunctionNamesBytes(int index)\n\nOptional. Function names to call. Only set when the Mode is ANY. Function\nnames should match \\[FunctionDeclaration.name\\]. With mode set to ANY, model\nwill predict a function call from the set of function names provided.\n\n`repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAllowedFunctionNamesCount()\n\n public abstract int getAllowedFunctionNamesCount()\n\nOptional. Function names to call. Only set when the Mode is ANY. Function\nnames should match \\[FunctionDeclaration.name\\]. With mode set to ANY, model\nwill predict a function call from the set of function names provided.\n\n`repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getAllowedFunctionNamesList()\n\n public abstract List\u003cString\u003e getAllowedFunctionNamesList()\n\nOptional. Function names to call. Only set when the Mode is ANY. Function\nnames should match \\[FunctionDeclaration.name\\]. With mode set to ANY, model\nwill predict a function call from the set of function names provided.\n\n`repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getMode()\n\n public abstract FunctionCallingConfig.Mode getMode()\n\nOptional. Function calling mode.\n\n`\n.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getModeValue()\n\n public abstract int getModeValue()\n\nOptional. Function calling mode.\n\n`\n.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];\n`"]]