Package com.google.genai.types
Class CodeExecutionResult.Builder
java.lang.Object
com.google.genai.types.CodeExecutionResult.Builder
- Enclosing class:
- CodeExecutionResult
Builder for CodeExecutionResult.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CodeExecutionResultbuild()clearId()Clears the value of id field.Clears the value of outcome field.Clears the value of output field.abstract CodeExecutionResult.BuilderSetter for id.abstract CodeExecutionResult.BuilderSetter for outcome.outcome(Outcome.Known knownType) Setter for outcome given a known enum.Setter for outcome given a string.abstract CodeExecutionResult.BuilderSetter for output.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
outcome
Setter for outcome.outcome: Required. Outcome of the code execution.
-
clearOutcome
Clears the value of outcome field. -
outcome
Setter for outcome given a known enum.outcome: Required. Outcome of the code execution.
-
outcome
Setter for outcome given a string.outcome: Required. Outcome of the code execution.
-
output
Setter for output.output: Optional. Contains stdout when code execution is successful, stderr or other description otherwise.
-
clearOutput
Clears the value of output field. -
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
Clears the value of id field. -
build
-