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 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.Builder<CodeExecutionReply.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CodeExecutionReply.Builder>
    • getDefaultInstanceForType

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

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

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

      public CodeExecutionReply.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CodeExecutionReply.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      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.
    • setContent

      public CodeExecutionReply.Builder setContent(int index, String value)
       *
       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

      public CodeExecutionReply.Builder addContent(String value)
       *
       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

      public CodeExecutionReply.Builder addAllContent(Iterable<String> values)
       *
       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

      public CodeExecutionReply.Builder 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

      public CodeExecutionReply.Builder addContentBytes(com.google.protobuf.ByteString value)
       *
       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:
      getOutputTypeValue in interface CodeExecutionReplyOrBuilder
      Returns:
      The enum numeric value on the wire for outputType.
    • setOutputTypeValue

      public CodeExecutionReply.Builder setOutputTypeValue(int value)
       *
       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

      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.
    • setOutputType

      public CodeExecutionReply.Builder setOutputType(OutputType value)
       *
       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

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

      public CodeExecutionReply.Builder setStatusValue(int value)
       *
       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

      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.
    • setStatus

      public CodeExecutionReply.Builder setStatus(ExecutionStatus value)
       *
       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

      public CodeExecutionReply.Builder 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:
      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.
    • setExitCode

      public CodeExecutionReply.Builder setExitCode(int value)
       *
       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

      public CodeExecutionReply.Builder 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:
      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.
    • setTimestamp

      public CodeExecutionReply.Builder setTimestamp(com.google.protobuf.Timestamp value)
       *
       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

      public CodeExecutionReply.Builder mergeTimestamp(com.google.protobuf.Timestamp value)
       *
       Optional timestamp when this output was generated.
       
      .google.protobuf.Timestamp timestamp = 6;
    • clearTimestamp

      public CodeExecutionReply.Builder 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:
      getTimestampOrBuilder in interface CodeExecutionReplyOrBuilder