Class DlqMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DlqMessage.Builder>
com.google.protobuf.GeneratedMessage.Builder<DlqMessage.Builder>
ai.pipestream.data.v1.DlqMessage.Builder
All Implemented Interfaces:
DlqMessageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DlqMessage

public static final class DlqMessage.Builder extends com.google.protobuf.GeneratedMessage.Builder<DlqMessage.Builder> implements DlqMessageOrBuilder
 Dead Letter Queue message for failed processing attempts.

 Published by Sidecar when Engine returns error after retry exhaustion.
 Contains the failed stream, error context, and Kafka offset information for replay.
 
Protobuf type ai.pipestream.data.v1.DlqMessage
  • 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<DlqMessage.Builder>
    • clear

      public DlqMessage.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<DlqMessage.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<DlqMessage.Builder>
    • getDefaultInstanceForType

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

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

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

      public DlqMessage.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<DlqMessage.Builder>
    • mergeFrom

      public DlqMessage.Builder mergeFrom(DlqMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DlqMessage.Builder>
    • mergeFrom

      public DlqMessage.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<DlqMessage.Builder>
      Throws:
      IOException
    • hasStream

      public boolean hasStream()
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
      Specified by:
      hasStream in interface DlqMessageOrBuilder
      Returns:
      Whether the stream field is set.
    • getStream

      public PipeStream getStream()
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
      Specified by:
      getStream in interface DlqMessageOrBuilder
      Returns:
      The stream.
    • setStream

      public DlqMessage.Builder setStream(PipeStream value)
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
    • setStream

      public DlqMessage.Builder setStream(PipeStream.Builder builderForValue)
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
    • mergeStream

      public DlqMessage.Builder mergeStream(PipeStream value)
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
    • clearStream

      public DlqMessage.Builder clearStream()
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
    • getStreamBuilder

      public PipeStream.Builder getStreamBuilder()
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
    • getStreamOrBuilder

      public PipeStreamOrBuilder getStreamOrBuilder()
       The failed stream (contains document reference).
       
      .ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];
      Specified by:
      getStreamOrBuilder in interface DlqMessageOrBuilder
    • getErrorType

      public String getErrorType()
       Error classification.
      
       Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
       
      string error_type = 2 [json_name = "errorType"];
      Specified by:
      getErrorType in interface DlqMessageOrBuilder
      Returns:
      The errorType.
    • getErrorTypeBytes

      public com.google.protobuf.ByteString getErrorTypeBytes()
       Error classification.
      
       Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
       
      string error_type = 2 [json_name = "errorType"];
      Specified by:
      getErrorTypeBytes in interface DlqMessageOrBuilder
      Returns:
      The bytes for errorType.
    • setErrorType

      public DlqMessage.Builder setErrorType(String value)
       Error classification.
      
       Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
       
      string error_type = 2 [json_name = "errorType"];
      Parameters:
      value - The errorType to set.
      Returns:
      This builder for chaining.
    • clearErrorType

      public DlqMessage.Builder clearErrorType()
       Error classification.
      
       Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
       
      string error_type = 2 [json_name = "errorType"];
      Returns:
      This builder for chaining.
    • setErrorTypeBytes

      public DlqMessage.Builder setErrorTypeBytes(com.google.protobuf.ByteString value)
       Error classification.
      
       Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
       
      string error_type = 2 [json_name = "errorType"];
      Parameters:
      value - The bytes for errorType to set.
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       Human-readable error message.
       
      string error_message = 3 [json_name = "errorMessage"];
      Specified by:
      getErrorMessage in interface DlqMessageOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       Human-readable error message.
       
      string error_message = 3 [json_name = "errorMessage"];
      Specified by:
      getErrorMessageBytes in interface DlqMessageOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public DlqMessage.Builder setErrorMessage(String value)
       Human-readable error message.
       
      string error_message = 3 [json_name = "errorMessage"];
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public DlqMessage.Builder clearErrorMessage()
       Human-readable error message.
       
      string error_message = 3 [json_name = "errorMessage"];
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public DlqMessage.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       Human-readable error message.
       
      string error_message = 3 [json_name = "errorMessage"];
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • hasFailedAt

      public boolean hasFailedAt()
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
      Specified by:
      hasFailedAt in interface DlqMessageOrBuilder
      Returns:
      Whether the failedAt field is set.
    • getFailedAt

      public com.google.protobuf.Timestamp getFailedAt()
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
      Specified by:
      getFailedAt in interface DlqMessageOrBuilder
      Returns:
      The failedAt.
    • setFailedAt

      public DlqMessage.Builder setFailedAt(com.google.protobuf.Timestamp value)
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
    • setFailedAt

      public DlqMessage.Builder setFailedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
    • mergeFailedAt

      public DlqMessage.Builder mergeFailedAt(com.google.protobuf.Timestamp value)
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
    • clearFailedAt

      public DlqMessage.Builder clearFailedAt()
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
    • getFailedAtBuilder

      public com.google.protobuf.Timestamp.Builder getFailedAtBuilder()
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
    • getFailedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getFailedAtOrBuilder()
       Timestamp when the failure occurred.
       
      .google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];
      Specified by:
      getFailedAtOrBuilder in interface DlqMessageOrBuilder
    • getRetryCount

      public int getRetryCount()
       Number of retry attempts that were made before sending to DLQ.
       
      int32 retry_count = 5 [json_name = "retryCount"];
      Specified by:
      getRetryCount in interface DlqMessageOrBuilder
      Returns:
      The retryCount.
    • setRetryCount

      public DlqMessage.Builder setRetryCount(int value)
       Number of retry attempts that were made before sending to DLQ.
       
      int32 retry_count = 5 [json_name = "retryCount"];
      Parameters:
      value - The retryCount to set.
      Returns:
      This builder for chaining.
    • clearRetryCount

      public DlqMessage.Builder clearRetryCount()
       Number of retry attempts that were made before sending to DLQ.
       
      int32 retry_count = 5 [json_name = "retryCount"];
      Returns:
      This builder for chaining.
    • getFailedNodeId

      public String getFailedNodeId()
       Node ID where the failure occurred.
       
      string failed_node_id = 6 [json_name = "failedNodeId"];
      Specified by:
      getFailedNodeId in interface DlqMessageOrBuilder
      Returns:
      The failedNodeId.
    • getFailedNodeIdBytes

      public com.google.protobuf.ByteString getFailedNodeIdBytes()
       Node ID where the failure occurred.
       
      string failed_node_id = 6 [json_name = "failedNodeId"];
      Specified by:
      getFailedNodeIdBytes in interface DlqMessageOrBuilder
      Returns:
      The bytes for failedNodeId.
    • setFailedNodeId

      public DlqMessage.Builder setFailedNodeId(String value)
       Node ID where the failure occurred.
       
      string failed_node_id = 6 [json_name = "failedNodeId"];
      Parameters:
      value - The failedNodeId to set.
      Returns:
      This builder for chaining.
    • clearFailedNodeId

      public DlqMessage.Builder clearFailedNodeId()
       Node ID where the failure occurred.
       
      string failed_node_id = 6 [json_name = "failedNodeId"];
      Returns:
      This builder for chaining.
    • setFailedNodeIdBytes

      public DlqMessage.Builder setFailedNodeIdBytes(com.google.protobuf.ByteString value)
       Node ID where the failure occurred.
       
      string failed_node_id = 6 [json_name = "failedNodeId"];
      Parameters:
      value - The bytes for failedNodeId to set.
      Returns:
      This builder for chaining.
    • getOriginalTopic

      public String getOriginalTopic()
       Original Kafka topic for replay correlation.
       
      string original_topic = 7 [json_name = "originalTopic"];
      Specified by:
      getOriginalTopic in interface DlqMessageOrBuilder
      Returns:
      The originalTopic.
    • getOriginalTopicBytes

      public com.google.protobuf.ByteString getOriginalTopicBytes()
       Original Kafka topic for replay correlation.
       
      string original_topic = 7 [json_name = "originalTopic"];
      Specified by:
      getOriginalTopicBytes in interface DlqMessageOrBuilder
      Returns:
      The bytes for originalTopic.
    • setOriginalTopic

      public DlqMessage.Builder setOriginalTopic(String value)
       Original Kafka topic for replay correlation.
       
      string original_topic = 7 [json_name = "originalTopic"];
      Parameters:
      value - The originalTopic to set.
      Returns:
      This builder for chaining.
    • clearOriginalTopic

      public DlqMessage.Builder clearOriginalTopic()
       Original Kafka topic for replay correlation.
       
      string original_topic = 7 [json_name = "originalTopic"];
      Returns:
      This builder for chaining.
    • setOriginalTopicBytes

      public DlqMessage.Builder setOriginalTopicBytes(com.google.protobuf.ByteString value)
       Original Kafka topic for replay correlation.
       
      string original_topic = 7 [json_name = "originalTopic"];
      Parameters:
      value - The bytes for originalTopic to set.
      Returns:
      This builder for chaining.
    • getOriginalPartition

      public int getOriginalPartition()
       Original Kafka partition for replay correlation.
       
      int32 original_partition = 8 [json_name = "originalPartition"];
      Specified by:
      getOriginalPartition in interface DlqMessageOrBuilder
      Returns:
      The originalPartition.
    • setOriginalPartition

      public DlqMessage.Builder setOriginalPartition(int value)
       Original Kafka partition for replay correlation.
       
      int32 original_partition = 8 [json_name = "originalPartition"];
      Parameters:
      value - The originalPartition to set.
      Returns:
      This builder for chaining.
    • clearOriginalPartition

      public DlqMessage.Builder clearOriginalPartition()
       Original Kafka partition for replay correlation.
       
      int32 original_partition = 8 [json_name = "originalPartition"];
      Returns:
      This builder for chaining.
    • getOriginalOffset

      public long getOriginalOffset()
       Original Kafka offset for replay correlation.
       
      int64 original_offset = 9 [json_name = "originalOffset"];
      Specified by:
      getOriginalOffset in interface DlqMessageOrBuilder
      Returns:
      The originalOffset.
    • setOriginalOffset

      public DlqMessage.Builder setOriginalOffset(long value)
       Original Kafka offset for replay correlation.
       
      int64 original_offset = 9 [json_name = "originalOffset"];
      Parameters:
      value - The originalOffset to set.
      Returns:
      This builder for chaining.
    • clearOriginalOffset

      public DlqMessage.Builder clearOriginalOffset()
       Original Kafka offset for replay correlation.
       
      int64 original_offset = 9 [json_name = "originalOffset"];
      Returns:
      This builder for chaining.
    • getDlqReprocessCount

      public int getDlqReprocessCount()
       Number of times this message has been reprocessed from the DLQ.
      
       Incremented each time the message is replayed from DLQ and fails again.
       Used to prevent infinite retry loops for poison messages.
       When this exceeds the configured max_dlq_reprocess_count, the message
       should be quarantined or logged for manual review.
       
      int32 dlq_reprocess_count = 10 [json_name = "dlqReprocessCount"];
      Specified by:
      getDlqReprocessCount in interface DlqMessageOrBuilder
      Returns:
      The dlqReprocessCount.
    • setDlqReprocessCount

      public DlqMessage.Builder setDlqReprocessCount(int value)
       Number of times this message has been reprocessed from the DLQ.
      
       Incremented each time the message is replayed from DLQ and fails again.
       Used to prevent infinite retry loops for poison messages.
       When this exceeds the configured max_dlq_reprocess_count, the message
       should be quarantined or logged for manual review.
       
      int32 dlq_reprocess_count = 10 [json_name = "dlqReprocessCount"];
      Parameters:
      value - The dlqReprocessCount to set.
      Returns:
      This builder for chaining.
    • clearDlqReprocessCount

      public DlqMessage.Builder clearDlqReprocessCount()
       Number of times this message has been reprocessed from the DLQ.
      
       Incremented each time the message is replayed from DLQ and fails again.
       Used to prevent infinite retry loops for poison messages.
       When this exceeds the configured max_dlq_reprocess_count, the message
       should be quarantined or logged for manual review.
       
      int32 dlq_reprocess_count = 10 [json_name = "dlqReprocessCount"];
      Returns:
      This builder for chaining.
    • getQuarantined

      public boolean getQuarantined()
       Whether this message has been quarantined (exceeded max reprocess attempts).
      
       Quarantined messages should not be automatically reprocessed.
       Requires manual intervention to investigate and fix the root cause.
       
      bool quarantined = 11 [json_name = "quarantined"];
      Specified by:
      getQuarantined in interface DlqMessageOrBuilder
      Returns:
      The quarantined.
    • setQuarantined

      public DlqMessage.Builder setQuarantined(boolean value)
       Whether this message has been quarantined (exceeded max reprocess attempts).
      
       Quarantined messages should not be automatically reprocessed.
       Requires manual intervention to investigate and fix the root cause.
       
      bool quarantined = 11 [json_name = "quarantined"];
      Parameters:
      value - The quarantined to set.
      Returns:
      This builder for chaining.
    • clearQuarantined

      public DlqMessage.Builder clearQuarantined()
       Whether this message has been quarantined (exceeded max reprocess attempts).
      
       Quarantined messages should not be automatically reprocessed.
       Requires manual intervention to investigate and fix the root cause.
       
      bool quarantined = 11 [json_name = "quarantined"];
      Returns:
      This builder for chaining.
    • hasQuarantinedAt

      public boolean hasQuarantinedAt()
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
      Specified by:
      hasQuarantinedAt in interface DlqMessageOrBuilder
      Returns:
      Whether the quarantinedAt field is set.
    • getQuarantinedAt

      public com.google.protobuf.Timestamp getQuarantinedAt()
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
      Specified by:
      getQuarantinedAt in interface DlqMessageOrBuilder
      Returns:
      The quarantinedAt.
    • setQuarantinedAt

      public DlqMessage.Builder setQuarantinedAt(com.google.protobuf.Timestamp value)
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
    • setQuarantinedAt

      public DlqMessage.Builder setQuarantinedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
    • mergeQuarantinedAt

      public DlqMessage.Builder mergeQuarantinedAt(com.google.protobuf.Timestamp value)
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
    • clearQuarantinedAt

      public DlqMessage.Builder clearQuarantinedAt()
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
    • getQuarantinedAtBuilder

      public com.google.protobuf.Timestamp.Builder getQuarantinedAtBuilder()
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
    • getQuarantinedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getQuarantinedAtOrBuilder()
       Timestamp when the message was quarantined (if applicable).
       
      .google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];
      Specified by:
      getQuarantinedAtOrBuilder in interface DlqMessageOrBuilder