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 .
Send feedback
Interface ToolConfigOrBuilder (1.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
public interface ToolConfigOrBuilder extends MessageOrBuilder
Methods
public abstract FunctionCallingConfig getFunctionCallingConfig ()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public abstract FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder ()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public abstract RetrievalConfig getRetrievalConfig ()
Optional. Retrieval config.
.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];
public abstract RetrievalConfigOrBuilder getRetrievalConfigOrBuilder ()
Optional. Retrieval config.
.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];
public abstract boolean hasFunctionCallingConfig ()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the functionCallingConfig field is set.
public abstract boolean hasRetrievalConfig ()
Optional. Retrieval config.
.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the retrievalConfig field is set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
Need to tell us more?
[[["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-04 UTC."],[],[],null,["# Interface ToolConfigOrBuilder (1.20.0)\n\n public interface ToolConfigOrBuilder 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### getFunctionCallingConfig()\n\n public abstract FunctionCallingConfig getFunctionCallingConfig()\n\nOptional. Function calling config.\n\n`\n.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getFunctionCallingConfigOrBuilder()\n\n public abstract FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder()\n\nOptional. Function calling config.\n\n`\n.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getRetrievalConfig()\n\n public abstract RetrievalConfig getRetrievalConfig()\n\nOptional. Retrieval config.\n\n`\n.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getRetrievalConfigOrBuilder()\n\n public abstract RetrievalConfigOrBuilder getRetrievalConfigOrBuilder()\n\nOptional. Retrieval config.\n\n`\n.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasFunctionCallingConfig()\n\n public abstract boolean hasFunctionCallingConfig()\n\nOptional. Function calling config.\n\n`\n.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasRetrievalConfig()\n\n public abstract boolean hasRetrievalConfig()\n\nOptional. Retrieval config.\n\n`\n.google.cloud.vertexai.v1.RetrievalConfig retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL];\n`"]]