Class CodeExecutionResult (3.56.0)

public final class CodeExecutionResult extends GeneratedMessageV3 implements CodeExecutionResultOrBuilder

Result of executing the [ExecutableCode].

Always follows a part containing the [ExecutableCode].

Protobuf type google.cloud.aiplatform.v1beta1.CodeExecutionResult

Static Fields

OUTCOME_FIELD_NUMBER

public static final int OUTCOME_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_FIELD_NUMBER

public static final int OUTPUT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CodeExecutionResult getDefaultInstance()
Returns
Type Description
CodeExecutionResult

getDescriptor()

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

newBuilder()

public static CodeExecutionResult.Builder newBuilder()
Returns
Type Description
CodeExecutionResult.Builder

newBuilder(CodeExecutionResult prototype)

public static CodeExecutionResult.Builder newBuilder(CodeExecutionResult prototype)
Parameter
Name Description
prototype CodeExecutionResult
Returns
Type Description
CodeExecutionResult.Builder

parseDelimitedFrom(InputStream input)

public static CodeExecutionResult parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CodeExecutionResult parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CodeExecutionResult parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CodeExecutionResult parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CodeExecutionResult parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CodeExecutionResult parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CodeExecutionResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CodeExecutionResult
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CodeExecutionResult> parser()
Returns
Type Description
Parser<CodeExecutionResult>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CodeExecutionResult getDefaultInstanceForType()
Returns
Type Description
CodeExecutionResult

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.

getParserForType()

public Parser<CodeExecutionResult> getParserForType()
Returns
Type Description
Parser<CodeExecutionResult>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CodeExecutionResult.Builder newBuilderForType()
Returns
Type Description
CodeExecutionResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CodeExecutionResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CodeExecutionResult.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CodeExecutionResult.Builder toBuilder()
Returns
Type Description
CodeExecutionResult.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException