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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    * The code execution reply message.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    getContent(int index)
    * The execution output content.
    com.google.protobuf.ByteString
    getContentBytes(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.Descriptor
     
    int
    * 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.
    int
     
    boolean
    * Optional timestamp when this output was generated.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<CodeExecutionReply>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      getContentList in interface CodeExecutionReplyOrBuilder
      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:
      getContentCount in interface CodeExecutionReplyOrBuilder
      Returns:
      The count of content.
    • getContent

      public String getContent(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:
      getContent in interface CodeExecutionReplyOrBuilder
      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:
      getContentBytes in interface CodeExecutionReplyOrBuilder
      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:
      getOutputTypeValue in interface CodeExecutionReplyOrBuilder
      Returns:
      The enum numeric value on the wire for outputType.
    • getOutputType

      public 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:
      getOutputType in interface CodeExecutionReplyOrBuilder
      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:
      getStatusValue in interface CodeExecutionReplyOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public ExecutionStatus getStatus()
       *
       The current execution status.
       Indicates the state of the code execution task.
       
      .ai.wanaku.codeexecution.v1.ExecutionStatus status = 4;
      Specified by:
      getStatus in interface CodeExecutionReplyOrBuilder
      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:
      hasExitCode in interface CodeExecutionReplyOrBuilder
      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:
      getExitCode in interface CodeExecutionReplyOrBuilder
      Returns:
      The exitCode.
    • hasTimestamp

      public boolean hasTimestamp()
       *
       Optional timestamp when this output was generated.
       
      .google.protobuf.Timestamp timestamp = 6;
      Specified by:
      hasTimestamp in interface CodeExecutionReplyOrBuilder
      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:
      getTimestamp in interface CodeExecutionReplyOrBuilder
      Returns:
      The timestamp.
    • getTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder()
       *
       Optional timestamp when this output was generated.
       
      .google.protobuf.Timestamp timestamp = 6;
      Specified by:
      getTimestampOrBuilder in interface CodeExecutionReplyOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static CodeExecutionReply parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CodeExecutionReply parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CodeExecutionReply parseDelimitedFrom(InputStream input) throws IOException
      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

      public CodeExecutionReply.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CodeExecutionReply.Builder newBuilder()
    • newBuilder

      public static CodeExecutionReply.Builder newBuilder(CodeExecutionReply prototype)
    • toBuilder

      public CodeExecutionReply.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CodeExecutionReply.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CodeExecutionReply getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CodeExecutionReply> parser()
    • getParserForType

      public com.google.protobuf.Parser<CodeExecutionReply> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CodeExecutionReply getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder