public static final class FunctionCallingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder> implements FunctionCallingConfigOrBuilder
Function calling config.Protobuf type
google.cloud.aiplatform.v1.FunctionCallingConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FunctionCallingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FunctionCallingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FunctionCallingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder mergeFrom(FunctionCallingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FunctionCallingConfig.Builder>IOExceptionpublic int getModeValue()
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
getModeValue in interface FunctionCallingConfigOrBuilderpublic FunctionCallingConfig.Builder setModeValue(int value)
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for mode to set.public FunctionCallingConfig.Mode getMode()
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
getMode in interface FunctionCallingConfigOrBuilderpublic FunctionCallingConfig.Builder setMode(FunctionCallingConfig.Mode value)
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
value - The mode to set.public FunctionCallingConfig.Builder clearMode()
Optional. Function calling mode.
.google.cloud.aiplatform.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList()
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
getAllowedFunctionNamesList in interface FunctionCallingConfigOrBuilderpublic int getAllowedFunctionNamesCount()
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
getAllowedFunctionNamesCount in interface FunctionCallingConfigOrBuilderpublic String getAllowedFunctionNames(int index)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
getAllowedFunctionNames in interface FunctionCallingConfigOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
getAllowedFunctionNamesBytes in interface FunctionCallingConfigOrBuilderindex - The index of the value to return.public FunctionCallingConfig.Builder setAllowedFunctionNames(int index, String value)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The allowedFunctionNames to set.public FunctionCallingConfig.Builder addAllowedFunctionNames(String value)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The allowedFunctionNames to add.public FunctionCallingConfig.Builder addAllAllowedFunctionNames(Iterable<String> values)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
values - The allowedFunctionNames to add.public FunctionCallingConfig.Builder clearAllowedFunctionNames()
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
public FunctionCallingConfig.Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value)
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.
repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the allowedFunctionNames to add.public boolean getStreamFunctionCallArguments()
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];
getStreamFunctionCallArguments in interface FunctionCallingConfigOrBuilderpublic FunctionCallingConfig.Builder setStreamFunctionCallArguments(boolean value)
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The streamFunctionCallArguments to set.public FunctionCallingConfig.Builder clearStreamFunctionCallArguments()
Optional. When set to true, arguments of a single function call will be streamed out in multiple parts/contents/responses. Partial parameter results will be returned in the [FunctionCall.partial_args] field.
bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2026 Google LLC. All rights reserved.