Interface AssistantContent.CodeExecutionResultOrBuilder (0.66.0)

public static interface AssistantContent.CodeExecutionResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getOutcome()

public abstract AssistantContent.CodeExecutionResult.Outcome getOutcome()

Required. Outcome of the code execution.

.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssistantContent.CodeExecutionResult.Outcome

The outcome.

getOutcomeValue()

public abstract int getOutcomeValue()

Required. Outcome of the code execution.

.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for outcome.

getOutput()

public abstract String getOutput()

Optional. Contains stdout when code execution is successful, stderr or other description otherwise.

string output = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The output.

getOutputBytes()

public abstract ByteString getOutputBytes()

Optional. Contains stdout when code execution is successful, stderr or other description otherwise.

string output = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for output.