behavior

public abstract FunctionDeclaration.Builder behavior(Behavior behavior)

Setter for behavior.

behavior: Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.


@CanIgnoreReturnValue()
public FunctionDeclaration.Builder behavior(Behavior.Known knownType)

Setter for behavior given a known enum.

behavior: Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.


@CanIgnoreReturnValue()
public FunctionDeclaration.Builder behavior(String behavior)

Setter for behavior given a string.

behavior: Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.