Package ai.pipestream.data.v1
Class DlqMessage
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.data.v1.DlqMessage
- All Implemented Interfaces:
DlqMessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DlqMessage
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDead Letter Queue message for failed processing attempts.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.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 intstatic final intstatic final intstatic 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 TypeMethodDescriptionbooleanstatic DlqMessagestatic final com.google.protobuf.Descriptors.DescriptorintNumber of times this message has been reprocessed from the DLQ.Human-readable error message.com.google.protobuf.ByteStringHuman-readable error message.Error classification.com.google.protobuf.ByteStringError classification.com.google.protobuf.TimestampTimestamp when the failure occurred.com.google.protobuf.TimestampOrBuilderTimestamp when the failure occurred.Node ID where the failure occurred.com.google.protobuf.ByteStringNode ID where the failure occurred.longOriginal Kafka offset for replay correlation.intOriginal Kafka partition for replay correlation.Original Kafka topic for replay correlation.com.google.protobuf.ByteStringOriginal Kafka topic for replay correlation.com.google.protobuf.Parser<DlqMessage> booleanWhether this message has been quarantined (exceeded max reprocess attempts).com.google.protobuf.TimestampTimestamp when the message was quarantined (if applicable).com.google.protobuf.TimestampOrBuilderTimestamp when the message was quarantined (if applicable).intNumber of retry attempts that were made before sending to DLQ.intThe failed stream (contains document reference).The failed stream (contains document reference).booleanTimestamp when the failure occurred.inthashCode()booleanTimestamp when the message was quarantined (if applicable).booleanThe failed stream (contains document reference).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DlqMessage.Builderstatic DlqMessage.BuildernewBuilder(DlqMessage prototype) protected DlqMessage.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DlqMessageparseDelimitedFrom(InputStream input) static DlqMessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DlqMessageparseFrom(byte[] data) static DlqMessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DlqMessageparseFrom(com.google.protobuf.ByteString data) static DlqMessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DlqMessageparseFrom(com.google.protobuf.CodedInputStream input) static DlqMessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DlqMessageparseFrom(InputStream input) static DlqMessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DlqMessageparseFrom(ByteBuffer data) static DlqMessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DlqMessage> 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
STREAM_FIELD_NUMBER
public static final int STREAM_FIELD_NUMBER- See Also:
-
ERROR_TYPE_FIELD_NUMBER
public static final int ERROR_TYPE_FIELD_NUMBER- See Also:
-
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER- See Also:
-
FAILED_AT_FIELD_NUMBER
public static final int FAILED_AT_FIELD_NUMBER- See Also:
-
RETRY_COUNT_FIELD_NUMBER
public static final int RETRY_COUNT_FIELD_NUMBER- See Also:
-
FAILED_NODE_ID_FIELD_NUMBER
public static final int FAILED_NODE_ID_FIELD_NUMBER- See Also:
-
ORIGINAL_TOPIC_FIELD_NUMBER
public static final int ORIGINAL_TOPIC_FIELD_NUMBER- See Also:
-
ORIGINAL_PARTITION_FIELD_NUMBER
public static final int ORIGINAL_PARTITION_FIELD_NUMBER- See Also:
-
ORIGINAL_OFFSET_FIELD_NUMBER
public static final int ORIGINAL_OFFSET_FIELD_NUMBER- See Also:
-
DLQ_REPROCESS_COUNT_FIELD_NUMBER
public static final int DLQ_REPROCESS_COUNT_FIELD_NUMBER- See Also:
-
QUARANTINED_FIELD_NUMBER
public static final int QUARANTINED_FIELD_NUMBER- See Also:
-
QUARANTINED_AT_FIELD_NUMBER
public static final int QUARANTINED_AT_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
-
hasStream
public boolean hasStream()The failed stream (contains document reference).
.ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];- Specified by:
hasStreamin interfaceDlqMessageOrBuilder- Returns:
- Whether the stream field is set.
-
getStream
The failed stream (contains document reference).
.ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];- Specified by:
getStreamin interfaceDlqMessageOrBuilder- Returns:
- The stream.
-
getStreamOrBuilder
The failed stream (contains document reference).
.ai.pipestream.data.v1.PipeStream stream = 1 [json_name = "stream"];- Specified by:
getStreamOrBuilderin interfaceDlqMessageOrBuilder
-
getErrorType
Error classification. Examples: "TIMEOUT", "CONNECTION_REFUSED", "UNAVAILABLE", "MODULE_UNAVAILABLE"
string error_type = 2 [json_name = "errorType"];- Specified by:
getErrorTypein interfaceDlqMessageOrBuilder- 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:
getErrorTypeBytesin interfaceDlqMessageOrBuilder- Returns:
- The bytes for errorType.
-
getErrorMessage
Human-readable error message.
string error_message = 3 [json_name = "errorMessage"];- Specified by:
getErrorMessagein interfaceDlqMessageOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()Human-readable error message.
string error_message = 3 [json_name = "errorMessage"];- Specified by:
getErrorMessageBytesin interfaceDlqMessageOrBuilder- Returns:
- The bytes for errorMessage.
-
hasFailedAt
public boolean hasFailedAt()Timestamp when the failure occurred.
.google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];- Specified by:
hasFailedAtin interfaceDlqMessageOrBuilder- 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:
getFailedAtin interfaceDlqMessageOrBuilder- Returns:
- The failedAt.
-
getFailedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getFailedAtOrBuilder()Timestamp when the failure occurred.
.google.protobuf.Timestamp failed_at = 4 [json_name = "failedAt"];- Specified by:
getFailedAtOrBuilderin interfaceDlqMessageOrBuilder
-
getRetryCount
public int getRetryCount()Number of retry attempts that were made before sending to DLQ.
int32 retry_count = 5 [json_name = "retryCount"];- Specified by:
getRetryCountin interfaceDlqMessageOrBuilder- Returns:
- The retryCount.
-
getFailedNodeId
Node ID where the failure occurred.
string failed_node_id = 6 [json_name = "failedNodeId"];- Specified by:
getFailedNodeIdin interfaceDlqMessageOrBuilder- 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:
getFailedNodeIdBytesin interfaceDlqMessageOrBuilder- Returns:
- The bytes for failedNodeId.
-
getOriginalTopic
Original Kafka topic for replay correlation.
string original_topic = 7 [json_name = "originalTopic"];- Specified by:
getOriginalTopicin interfaceDlqMessageOrBuilder- 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:
getOriginalTopicBytesin interfaceDlqMessageOrBuilder- Returns:
- The bytes for originalTopic.
-
getOriginalPartition
public int getOriginalPartition()Original Kafka partition for replay correlation.
int32 original_partition = 8 [json_name = "originalPartition"];- Specified by:
getOriginalPartitionin interfaceDlqMessageOrBuilder- Returns:
- The originalPartition.
-
getOriginalOffset
public long getOriginalOffset()Original Kafka offset for replay correlation.
int64 original_offset = 9 [json_name = "originalOffset"];- Specified by:
getOriginalOffsetin interfaceDlqMessageOrBuilder- Returns:
- The originalOffset.
-
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:
getDlqReprocessCountin interfaceDlqMessageOrBuilder- Returns:
- The dlqReprocessCount.
-
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:
getQuarantinedin interfaceDlqMessageOrBuilder- Returns:
- The quarantined.
-
hasQuarantinedAt
public boolean hasQuarantinedAt()Timestamp when the message was quarantined (if applicable).
.google.protobuf.Timestamp quarantined_at = 12 [json_name = "quarantinedAt"];- Specified by:
hasQuarantinedAtin interfaceDlqMessageOrBuilder- 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:
getQuarantinedAtin interfaceDlqMessageOrBuilder- Returns:
- The 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:
getQuarantinedAtOrBuilderin interfaceDlqMessageOrBuilder
-
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 DlqMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DlqMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DlqMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DlqMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DlqMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DlqMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DlqMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DlqMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DlqMessage 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 DlqMessage.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
-