Class CodeExecutionReply
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.wanaku.core.exchange.v1.CodeExecutionReply
- All Implemented Interfaces:
CodeExecutionReplyOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
@Generated
public final class CodeExecutionReply
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* The code execution reply message.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetContent(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 CodeExecutionReplystatic final com.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.com.google.protobuf.Parser<CodeExecutionReply> int* The current execution status.int* The current execution status.com.google.protobuf.Timestamp* 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.inthashCode()boolean* Optional timestamp when this output was generated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic CodeExecutionReply.Builderstatic CodeExecutionReply.BuildernewBuilder(CodeExecutionReply prototype) protected CodeExecutionReply.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CodeExecutionReplyparseDelimitedFrom(InputStream input) static CodeExecutionReplyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionReplyparseFrom(byte[] data) static CodeExecutionReplyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionReplyparseFrom(com.google.protobuf.ByteString data) static CodeExecutionReplyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionReplyparseFrom(com.google.protobuf.CodedInputStream input) static CodeExecutionReplyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionReplyparseFrom(InputStream input) static CodeExecutionReplyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CodeExecutionReplyparseFrom(ByteBuffer data) static CodeExecutionReplyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CodeExecutionReply> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER- See Also:
-
OUTPUT_TYPE_FIELD_NUMBER
public static final int OUTPUT_TYPE_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
EXIT_CODE_FIELD_NUMBER
public static final int EXIT_CODE_FIELD_NUMBER- See Also:
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()* Optional timestamp when this output was generated.
.google.protobuf.Timestamp timestamp = 6;- Specified by:
getTimestampOrBuilderin interfaceCodeExecutionReplyOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CodeExecutionReply parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CodeExecutionReply parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CodeExecutionReply parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CodeExecutionReply parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CodeExecutionReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CodeExecutionReply parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CodeExecutionReply parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CodeExecutionReply parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CodeExecutionReply parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CodeExecutionReply parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CodeExecutionReply.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-