Class FunctionCall.Builder
-
- All Implemented Interfaces:
public abstract class FunctionCall.BuilderBuilder for FunctionCall.
-
-
Constructor Summary
Constructors Constructor Description FunctionCall.Builder()
-
Method Summary
Modifier and Type Method Description abstract FunctionCall.Builderid(String id)Setter for id. FunctionCall.BuilderclearId()Clears the value of id field. abstract FunctionCall.Builderargs(Map<String, Object> args)Setter for args. FunctionCall.BuilderclearArgs()Clears the value of args field. abstract FunctionCall.Buildername(String name)Setter for name. FunctionCall.BuilderclearName()Clears the value of name field. abstract FunctionCall.BuilderpartialArgs(List<PartialArg> partialArgs)Setter for partialArgs. FunctionCall.BuilderpartialArgs(Array<PartialArg> partialArgs)Setter for partialArgs. FunctionCall.BuilderpartialArgs(Array<PartialArg.Builder> partialArgsBuilders)Setter for partialArgs builder. FunctionCall.BuilderclearPartialArgs()Clears the value of partialArgs field. abstract FunctionCall.BuilderwillContinue(boolean willContinue)Setter for willContinue. FunctionCall.BuilderclearWillContinue()Clears the value of willContinue field. abstract FunctionCallbuild()-
-
Method Detail
-
id
abstract FunctionCall.Builder id(String id)
Setter for id.
id: The unique id of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.
-
clearId
@CanIgnoreReturnValue() FunctionCall.Builder clearId()
Clears the value of id field.
-
args
abstract FunctionCall.Builder args(Map<String, Object> args)
Setter for args.
args: Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
-
clearArgs
@CanIgnoreReturnValue() FunctionCall.Builder clearArgs()
Clears the value of args field.
-
name
abstract FunctionCall.Builder name(String name)
Setter for name.
name: Optional. The name of the function to call. Matches [FunctionDeclaration.name].
-
clearName
@CanIgnoreReturnValue() FunctionCall.Builder clearName()
Clears the value of name field.
-
partialArgs
abstract FunctionCall.Builder partialArgs(List<PartialArg> partialArgs)
Setter for partialArgs.
partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
partialArgs
@CanIgnoreReturnValue() FunctionCall.Builder partialArgs(Array<PartialArg> partialArgs)
Setter for partialArgs.
partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
partialArgs
@CanIgnoreReturnValue() FunctionCall.Builder partialArgs(Array<PartialArg.Builder> partialArgsBuilders)
Setter for partialArgs builder.
partialArgs: Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. This field is not supported in Gemini API.
-
clearPartialArgs
@CanIgnoreReturnValue() FunctionCall.Builder clearPartialArgs()
Clears the value of partialArgs field.
-
willContinue
abstract FunctionCall.Builder willContinue(boolean willContinue)
Setter for willContinue.
willContinue: Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. This field is not supported in Gemini API.
-
clearWillContinue
@CanIgnoreReturnValue() FunctionCall.Builder clearWillContinue()
Clears the value of willContinue field.
-
build
abstract FunctionCall build()
-
-
-
-