Class FunctionCallingConfig.Builder (1.35.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass FunctionCallingConfig.BuilderextendsGeneratedMessageV3.Builder<FunctionCallingConfig.Builder>implementsFunctionCallingConfigOrBuilderFunction calling config.
Protobuf type google.cloud.vertexai.v1.FunctionCallingConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FunctionCallingConfig.BuilderImplements
FunctionCallingConfigOrBuilderInherited Members
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 |
|
build()
publicFunctionCallingConfigbuild()| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig |
|
buildPartial()
publicFunctionCallingConfigbuildPartial()| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig |
|
clear()
publicFunctionCallingConfig.Builderclear()| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig.Builder |
|
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 |
|
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 |
|
clone()
publicFunctionCallingConfig.Builderclone()| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig.Builder |
|
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 |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicFunctionCallingConfig.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalFunctionCallingConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig.Builder |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalFunctionCallingConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FunctionCallingConfig.Builder |
|