public static final class CodeExecutionResult.Builder extends GeneratedMessage.Builder<CodeExecutionResult.Builder> implements CodeExecutionResultOrBuilderResult of executing the [ExecutableCode].
Always follows a part containing the [ExecutableCode].
Protobuf type google.cloud.vertexai.v1.CodeExecutionResult
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CodeExecutionResult.BuilderImplements
CodeExecutionResultOrBuilderStatic 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 |
|
clearOutcome()
public CodeExecutionResult.Builder clearOutcome()Required. Outcome of the code execution.
.google.cloud.vertexai.v1.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 |
|
getOutcome()
public CodeExecutionResult.Outcome getOutcome()Required. Outcome of the code execution.
.google.cloud.vertexai.v1.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.vertexai.v1.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CodeExecutionResult.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CodeExecutionResult.Builder |
|
setOutcome(CodeExecutionResult.Outcome value)
public CodeExecutionResult.Builder setOutcome(CodeExecutionResult.Outcome value)Required. Outcome of the code execution.
.google.cloud.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
CodeExecutionResult.OutcomeThe 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.vertexai.v1.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for output to set. |
| Returns | |
|---|---|
| Type | Description |
CodeExecutionResult.Builder |
This builder for chaining. |