Class FunctionCallingConfig.Builder (1.35.0)

publicstaticfinalclass FunctionCallingConfig.BuilderextendsGeneratedMessageV3.Builder<FunctionCallingConfig.Builder>implementsFunctionCallingConfigOrBuilder

Function calling config.

Protobuf type google.cloud.vertexai.v1.FunctionCallingConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllowedFunctionNames(Iterable<String> values)

publicFunctionCallingConfig.BuilderaddAllAllowedFunctionNames(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];

Parameter
Name Description
values Iterable<String>

The allowedFunctionNames to add.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

addAllowedFunctionNames(String value)

publicFunctionCallingConfig.BuilderaddAllowedFunctionNames(Stringvalue)

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];

Parameter
Name Description
value String

The allowedFunctionNames to add.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

addAllowedFunctionNamesBytes(ByteString value)

publicFunctionCallingConfig.BuilderaddAllowedFunctionNamesBytes(ByteStringvalue)

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];

Parameter
Name Description
value ByteString

The bytes of the allowedFunctionNames to add.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicFunctionCallingConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

build()

publicFunctionCallingConfigbuild()
Returns
Type Description
FunctionCallingConfig

buildPartial()

publicFunctionCallingConfigbuildPartial()
Returns
Type Description
FunctionCallingConfig

clear()

publicFunctionCallingConfig.Builderclear()
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

clearAllowedFunctionNames()

publicFunctionCallingConfig.BuilderclearAllowedFunctionNames()

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];

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicFunctionCallingConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

clearMode()

publicFunctionCallingConfig.BuilderclearMode()

Optional. Function calling mode.

.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicFunctionCallingConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

clone()

publicFunctionCallingConfig.Builderclone()
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

getAllowedFunctionNames(int index)

publicStringgetAllowedFunctionNames(intindex)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedFunctionNames at the given index.

getAllowedFunctionNamesBytes(int index)

publicByteStringgetAllowedFunctionNamesBytes(intindex)

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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedFunctionNames at the given index.

getAllowedFunctionNamesCount()

publicintgetAllowedFunctionNamesCount()

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];

Returns
Type Description
int

The count of allowedFunctionNames.

getAllowedFunctionNamesList()

publicProtocolStringListgetAllowedFunctionNamesList()

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];

Returns
Type Description
ProtocolStringList

A list containing the allowedFunctionNames.

getDefaultInstanceForType()

publicFunctionCallingConfiggetDefaultInstanceForType()
Returns
Type Description
FunctionCallingConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMode()

publicFunctionCallingConfig.ModegetMode()

Optional. Function calling mode.

.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfig.Mode

The mode.

getModeValue()

publicintgetModeValue()

Optional. Function calling mode.

.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FunctionCallingConfig other)

publicFunctionCallingConfig.BuildermergeFrom(FunctionCallingConfigother)
Parameter
Name Description
other FunctionCallingConfig
Returns
Type Description
FunctionCallingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicFunctionCallingConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FunctionCallingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicFunctionCallingConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalFunctionCallingConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

setAllowedFunctionNames(int index, String value)

publicFunctionCallingConfig.BuildersetAllowedFunctionNames(intindex,Stringvalue)

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];

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedFunctionNames to set.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicFunctionCallingConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

setMode(FunctionCallingConfig.Mode value)

publicFunctionCallingConfig.BuildersetMode(FunctionCallingConfig.Modevalue)

Optional. Function calling mode.

.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FunctionCallingConfig.Mode

The mode to set.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

setModeValue(int value)

publicFunctionCallingConfig.BuildersetModeValue(intvalue)

Optional. Function calling mode.

.google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for mode to set.

Returns
Type Description
FunctionCallingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicFunctionCallingConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalFunctionCallingConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FunctionCallingConfig.Builder
Overrides

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年11月19日 UTC.