Class CodeExecutionResult.Builder (3.84.0)

public static final class CodeExecutionResult.Builder extends GeneratedMessage.Builder<CodeExecutionResult.Builder> implements CodeExecutionResultOrBuilder

Result of executing the [ExecutableCode].

Always follows a part containing the [ExecutableCode].

Protobuf type google.cloud.aiplatform.v1beta1.CodeExecutionResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CodeExecutionResult build()
Returns
Type Description
CodeExecutionResult

buildPartial()

public CodeExecutionResult buildPartial()
Returns
Type Description
CodeExecutionResult

clear()

public CodeExecutionResult.Builder clear()
Returns
Type Description
CodeExecutionResult.Builder
Overrides

clearOutcome()

public CodeExecutionResult.Builder clearOutcome()

Required. Outcome of the code execution.

.google.cloud.aiplatform.v1beta1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.

clearOutput()

public CodeExecutionResult.Builder clearOutput()

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

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

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.

getDefaultInstanceForType()

public CodeExecutionResult getDefaultInstanceForType()
Returns
Type Description
CodeExecutionResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOutcome()

public CodeExecutionResult.Outcome getOutcome()

Required. Outcome of the code execution.

.google.cloud.aiplatform.v1beta1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CodeExecutionResult.Outcome

The outcome.

getOutcomeValue()

public int getOutcomeValue()

Required. Outcome of the code execution.

.google.cloud.aiplatform.v1beta1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for outcome.

getOutput()

public 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodeExecutionResult other)

public CodeExecutionResult.Builder mergeFrom(CodeExecutionResult other)
Parameter
Name Description
other CodeExecutionResult
Returns
Type Description
CodeExecutionResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CodeExecutionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CodeExecutionResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CodeExecutionResult.Builder
Overrides

setOutcome(CodeExecutionResult.Outcome value)

public CodeExecutionResult.Builder setOutcome(CodeExecutionResult.Outcome value)

Required. Outcome of the code execution.

.google.cloud.aiplatform.v1beta1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CodeExecutionResult.Outcome

The outcome to set.

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.

setOutcomeValue(int value)

public CodeExecutionResult.Builder setOutcomeValue(int value)

Required. Outcome of the code execution.

.google.cloud.aiplatform.v1beta1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for outcome to set.

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.

setOutput(String value)

public CodeExecutionResult.Builder setOutput(String value)

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

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

Parameter
Name Description
value String

The output to set.

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.

setOutputBytes(ByteString value)

public CodeExecutionResult.Builder setOutputBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for output to set.

Returns
Type Description
CodeExecutionResult.Builder

This builder for chaining.