public static final class FunctionCallingConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder> implements FunctionCallingConfigOrBuilder
Function calling config.Protobuf type
google.cloud.aiplatform.v1.FunctionCallingConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public FunctionCallingConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public 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.GeneratedMessageV3.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 final FunctionCallingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>public final FunctionCallingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FunctionCallingConfig.Builder>Copyright © 2025 Google LLC. All rights reserved.