public static enum CodeExecutionResult.Outcome extends Enum<CodeExecutionResult.Outcome> implements com.google.protobuf.ProtocolMessageEnum
Enumeration of possible outcomes of the code execution.Protobuf enum
google.cloud.aiplatform.v1.CodeExecutionResult.Outcome| Enum Constant and Description |
|---|
OUTCOME_DEADLINE_EXCEEDED
Code execution ran for too long, and was cancelled.
|
OUTCOME_FAILED
Code execution finished but with a failure.
|
OUTCOME_OK
Code execution completed successfully.
|
OUTCOME_UNSPECIFIED
Unspecified status.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OUTCOME_DEADLINE_EXCEEDED_VALUE
Code execution ran for too long, and was cancelled.
|
static int |
OUTCOME_FAILED_VALUE
Code execution finished but with a failure.
|
static int |
OUTCOME_OK_VALUE
Code execution completed successfully.
|
static int |
OUTCOME_UNSPECIFIED_VALUE
Unspecified status.
|
| Modifier and Type | Method and Description |
|---|---|
static CodeExecutionResult.Outcome |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CodeExecutionResult.Outcome> |
internalGetValueMap() |
static CodeExecutionResult.Outcome |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CodeExecutionResult.Outcome |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CodeExecutionResult.Outcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodeExecutionResult.Outcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeExecutionResult.Outcome OUTCOME_UNSPECIFIED
Unspecified status. This value should not be used.
OUTCOME_UNSPECIFIED = 0;public static final CodeExecutionResult.Outcome OUTCOME_OK
Code execution completed successfully.
OUTCOME_OK = 1;public static final CodeExecutionResult.Outcome OUTCOME_FAILED
Code execution finished but with a failure. `stderr` should contain the reason.
OUTCOME_FAILED = 2;public static final CodeExecutionResult.Outcome OUTCOME_DEADLINE_EXCEEDED
Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
OUTCOME_DEADLINE_EXCEEDED = 3;public static final CodeExecutionResult.Outcome UNRECOGNIZED
public static final int OUTCOME_UNSPECIFIED_VALUE
Unspecified status. This value should not be used.
OUTCOME_UNSPECIFIED = 0;public static final int OUTCOME_OK_VALUE
Code execution completed successfully.
OUTCOME_OK = 1;public static final int OUTCOME_FAILED_VALUE
Code execution finished but with a failure. `stderr` should contain the reason.
OUTCOME_FAILED = 2;public static final int OUTCOME_DEADLINE_EXCEEDED_VALUE
Code execution ran for too long, and was cancelled. There may or may not be a partial output present.
OUTCOME_DEADLINE_EXCEEDED = 3;public static CodeExecutionResult.Outcome[] values()
for (CodeExecutionResult.Outcome c : CodeExecutionResult.Outcome.values()) System.out.println(c);
public static CodeExecutionResult.Outcome valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static CodeExecutionResult.Outcome valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CodeExecutionResult.Outcome forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CodeExecutionResult.Outcome> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CodeExecutionResult.Outcome valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.