Class CodeExecutionResult.Builder (3.56.0)

public static final class CodeExecutionResult.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CodeExecutionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CodeExecutionResult.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CodeExecutionResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CodeExecutionResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CodeExecutionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CodeExecutionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CodeExecutionResult.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CodeExecutionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CodeExecutionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CodeExecutionResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CodeExecutionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CodeExecutionResult.Builder
Overrides