Package ai.wanaku.core.exchange.v1
Class CodeExecutionReply.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CodeExecutionReply.Builder>
com.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
ai.wanaku.core.exchange.v1.CodeExecutionReply.Builder
- All Implemented Interfaces:
CodeExecutionReplyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
CodeExecutionReply
public static final class CodeExecutionReply.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
implements CodeExecutionReplyOrBuilder
* The code execution reply message. Streamed back to the client during and after code execution. Multiple messages may be sent for a single execution request.Protobuf type
ai.wanaku.codeexecution.v1.CodeExecutionReply-
Method Summary
Modifier and TypeMethodDescriptionaddAllContent(Iterable<String> values) * The execution output content.addContent(String value) * The execution output content.addContentBytes(com.google.protobuf.ByteString value) * The execution output content.build()clear()* The execution output content.* Optional exit code from the executed process.* The type of output this reply represents.* The current execution status.* Optional timestamp when this output was generated.getContent(int index) * The execution output content.com.google.protobuf.ByteStringgetContentBytes(int index) * The execution output content.int* The execution output content.com.google.protobuf.ProtocolStringList* The execution output content.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorint* Optional exit code from the executed process.* The type of output this reply represents.int* The type of output this reply represents.* The current execution status.int* The current execution status.com.google.protobuf.Timestamp* Optional timestamp when this output was generated.com.google.protobuf.Timestamp.Builder* Optional timestamp when this output was generated.com.google.protobuf.TimestampOrBuilder* Optional timestamp when this output was generated.boolean* Optional exit code from the executed process.boolean* Optional timestamp when this output was generated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CodeExecutionReply other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimestamp(com.google.protobuf.Timestamp value) * Optional timestamp when this output was generated.setContent(int index, String value) * The execution output content.setExitCode(int value) * Optional exit code from the executed process.setOutputType(OutputType value) * The type of output this reply represents.setOutputTypeValue(int value) * The type of output this reply represents.setStatus(ExecutionStatus value) * The current execution status.setStatusValue(int value) * The current execution status.setTimestamp(com.google.protobuf.Timestamp value) * Optional timestamp when this output was generated.setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) * Optional timestamp when this output was generated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CodeExecutionReply.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
-
mergeFrom
public CodeExecutionReply.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CodeExecutionReply.Builder>- Throws:
IOException
-
getContentList
public com.google.protobuf.ProtocolStringList getContentList()* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Specified by:
getContentListin interfaceCodeExecutionReplyOrBuilder- Returns:
- A list containing the content.
-
getContentCount
public int getContentCount()* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Specified by:
getContentCountin interfaceCodeExecutionReplyOrBuilder- Returns:
- The count of content.
-
getContent
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Specified by:
getContentin interfaceCodeExecutionReplyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The content at the given index.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes(int index) * The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Specified by:
getContentBytesin interfaceCodeExecutionReplyOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the content at the given index.
-
setContent
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Parameters:
index- The index to set the value at.value- The content to set.- Returns:
- This builder for chaining.
-
addContent
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Parameters:
value- The content to add.- Returns:
- This builder for chaining.
-
addAllContent
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Parameters:
values- The content to add.- Returns:
- This builder for chaining.
-
clearContent
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Returns:
- This builder for chaining.
-
addContentBytes
* The execution output content. For standard output, this contains the stdout data. For errors, this contains the stderr data or error messages. Multiple content strings may be provided for chunked output.
repeated string content = 2;- Parameters:
value- The bytes of the content to add.- Returns:
- This builder for chaining.
-
getOutputTypeValue
public int getOutputTypeValue()* The type of output this reply represents. Indicates whether this is stdout, stderr, or a status message.
.ai.wanaku.codeexecution.v1.OutputType output_type = 3;- Specified by:
getOutputTypeValuein interfaceCodeExecutionReplyOrBuilder- Returns:
- The enum numeric value on the wire for outputType.
-
setOutputTypeValue
* The type of output this reply represents. Indicates whether this is stdout, stderr, or a status message.
.ai.wanaku.codeexecution.v1.OutputType output_type = 3;- Parameters:
value- The enum numeric value on the wire for outputType to set.- Returns:
- This builder for chaining.
-
getOutputType
* The type of output this reply represents. Indicates whether this is stdout, stderr, or a status message.
.ai.wanaku.codeexecution.v1.OutputType output_type = 3;- Specified by:
getOutputTypein interfaceCodeExecutionReplyOrBuilder- Returns:
- The outputType.
-
setOutputType
* The type of output this reply represents. Indicates whether this is stdout, stderr, or a status message.
.ai.wanaku.codeexecution.v1.OutputType output_type = 3;- Parameters:
value- The outputType to set.- Returns:
- This builder for chaining.
-
clearOutputType
* The type of output this reply represents. Indicates whether this is stdout, stderr, or a status message.
.ai.wanaku.codeexecution.v1.OutputType output_type = 3;- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()* The current execution status. Indicates the state of the code execution task.
.ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;- Specified by:
getStatusValuein interfaceCodeExecutionReplyOrBuilder- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
* The current execution status. Indicates the state of the code execution task.
.ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;- Parameters:
value- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
* The current execution status. Indicates the state of the code execution task.
.ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;- Specified by:
getStatusin interfaceCodeExecutionReplyOrBuilder- Returns:
- The status.
-
setStatus
* The current execution status. Indicates the state of the code execution task.
.ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
* The current execution status. Indicates the state of the code execution task.
.ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;- Returns:
- This builder for chaining.
-
hasExitCode
public boolean hasExitCode()* Optional exit code from the executed process. Only present in the final message when execution completes. A value of 0 typically indicates successful execution.
optional int32 exit_code = 5;- Specified by:
hasExitCodein interfaceCodeExecutionReplyOrBuilder- Returns:
- Whether the exitCode field is set.
-
getExitCode
public int getExitCode()* Optional exit code from the executed process. Only present in the final message when execution completes. A value of 0 typically indicates successful execution.
optional int32 exit_code = 5;- Specified by:
getExitCodein interfaceCodeExecutionReplyOrBuilder- Returns:
- The exitCode.
-
setExitCode
* Optional exit code from the executed process. Only present in the final message when execution completes. A value of 0 typically indicates successful execution.
optional int32 exit_code = 5;- Parameters:
value- The exitCode to set.- Returns:
- This builder for chaining.
-
clearExitCode
* Optional exit code from the executed process. Only present in the final message when execution completes. A value of 0 typically indicates successful execution.
optional int32 exit_code = 5;- Returns:
- This builder for chaining.
-
hasTimestamp
public boolean hasTimestamp()* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
hasTimestampin interfaceCodeExecutionReplyOrBuilder- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public com.google.protobuf.Timestamp getTimestamp()* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
getTimestampin interfaceCodeExecutionReplyOrBuilder- Returns:
- The timestamp.
-
setTimestamp
* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6; -
setTimestamp
public CodeExecutionReply.Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) * Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6; -
mergeTimestamp
* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6; -
clearTimestamp
* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6; -
getTimestampBuilder
public com.google.protobuf.Timestamp.Builder getTimestampBuilder()* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6; -
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
getTimestampOrBuilderin interfaceCodeExecutionReplyOrBuilder
-