Package com.google.genai.types
Class CodeExecutionResult.Builder
-
- All Implemented Interfaces:
public abstract class CodeExecutionResult.BuilderBuilder for CodeExecutionResult.
-
-
Constructor Summary
Constructors Constructor Description CodeExecutionResult.Builder()
-
Method Summary
Modifier and Type Method Description abstract CodeExecutionResult.Builderoutcome(Outcome outcome)Setter for outcome. CodeExecutionResult.BuilderclearOutcome()Clears the value of outcome field. CodeExecutionResult.Builderoutcome(Outcome.Known knownType)Setter for outcome given a known enum. CodeExecutionResult.Builderoutcome(String outcome)Setter for outcome given a string. abstract CodeExecutionResult.Builderoutput(String output)Setter for output. CodeExecutionResult.BuilderclearOutput()Clears the value of output field. abstract CodeExecutionResult.Builderid(String id)Setter for id. CodeExecutionResult.BuilderclearId()Clears the value of id field. abstract CodeExecutionResultbuild()-
-
Method Detail
-
outcome
abstract CodeExecutionResult.Builder outcome(Outcome outcome)
Setter for outcome.
outcome: Required. Outcome of the code execution.
-
clearOutcome
@CanIgnoreReturnValue() CodeExecutionResult.Builder clearOutcome()
Clears the value of outcome field.
-
outcome
@CanIgnoreReturnValue() CodeExecutionResult.Builder outcome(Outcome.Known knownType)
Setter for outcome given a known enum.
outcome: Required. Outcome of the code execution.
-
outcome
@CanIgnoreReturnValue() CodeExecutionResult.Builder outcome(String outcome)
Setter for outcome given a string.
outcome: Required. Outcome of the code execution.
-
output
abstract CodeExecutionResult.Builder output(String output)
Setter for output.
output: Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
-
clearOutput
@CanIgnoreReturnValue() CodeExecutionResult.Builder clearOutput()
Clears the value of output field.
-
id
abstract CodeExecutionResult.Builder id(String id)
Setter for id.
id: The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.
-
clearId
@CanIgnoreReturnValue() CodeExecutionResult.Builder clearId()
Clears the value of id field.
-
build
abstract CodeExecutionResult build()
-
-
-
-