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
Class FunctionCall.Builder (1.20.1)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class FunctionCall . Builder extends GeneratedMessageV3 . Builder<FunctionCall . Builder > implements FunctionCallOrBuilder
A predicted [FunctionCall] returned from the model that contains a string
representing the [FunctionDeclaration.name] and a structured JSON object
containing the parameters and their values.
Protobuf type google.cloud.vertexai.v1.FunctionCall
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()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FunctionCall . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public FunctionCall build ()
buildPartial()
public FunctionCall buildPartial ()
clear()
public FunctionCall . Builder clear ()
Overrides
clearArgs()
public FunctionCall . Builder clearArgs ()
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
clearField(Descriptors.FieldDescriptor field)
public FunctionCall . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearName()
public FunctionCall . Builder clearName ()
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public FunctionCall . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public FunctionCall . Builder clone ()
Overrides
getArgs()
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
Struct
The args.
getArgsBuilder()
public Struct . Builder getArgsBuilder ()
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
getArgsOrBuilder()
public StructOrBuilder getArgsOrBuilder ()
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public FunctionCall getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getName()
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The name.
getNameBytes()
public ByteString getNameBytes ()
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for name.
hasArgs()
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the args field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeArgs(Struct value)
public FunctionCall . Builder mergeArgs ( Struct value )
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
Struct
mergeFrom(FunctionCall other)
public FunctionCall . Builder mergeFrom ( FunctionCall other )
public FunctionCall . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public FunctionCall . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FunctionCall . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setArgs(Struct value)
public FunctionCall . Builder setArgs ( Struct value )
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
Struct
setArgs(Struct.Builder builderForValue)
public FunctionCall . Builder setArgs ( Struct . Builder builderForValue )
Optional. Required. The function parameters and values in JSON object
format. See [FunctionDeclaration.parameters] for parameter details.
.google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
builderForValue
Builder
setField(Descriptors.FieldDescriptor field, Object value)
public FunctionCall . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setName(String value)
public FunctionCall . Builder setName ( String value )
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The name to set.
setNameBytes(ByteString value)
public FunctionCall . Builder setNameBytes ( ByteString value )
Required. The name of the function to call.
Matches [FunctionDeclaration.name].
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for name to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FunctionCall . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final FunctionCall . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
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-04-28 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-04-28 UTC."],[],[]]