Class IntakeEvents
java.lang.Object
ai.pipeline.connector.intake.event.IntakeEvents
Builds the
intake_events protos from upload context and maps the
service's IntakeErrorCode taxonomy onto the proto's
RejectionReason. Keeping this translation in one place means the HTTP
and gRPC surfaces emit identical, consistent events.-
Method Summary
Modifier and TypeMethodDescriptionstatic ai.pipestream.connector.intake.v1.DocumentAcceptedstatic ai.pipestream.connector.intake.v1.DocumentErrorerror(String datasourceId, String crawlId, String sessionId, String sourceDocId, String docId, String errorId, IntakeErrorCode code, String message) static ai.pipestream.connector.intake.v1.ErrorReasonMap the client-facing error taxonomy onto the proto error reason (5xx-class).static ai.pipestream.connector.intake.v1.RejectionReasonreasonFor(IntakeErrorCode code) Map the client-facing error taxonomy onto the proto rejection reason (4xx-class).static ai.pipestream.connector.intake.v1.DocumentRejectedrejected(String datasourceId, String crawlId, String sessionId, String sourceDocId, String docId, IntakeErrorCode code, String message)
-
Method Details
-
accepted
-
rejected
-
error
-
reasonFor
Map the client-facing error taxonomy onto the proto rejection reason (4xx-class). -
errorReasonFor
Map the client-facing error taxonomy onto the proto error reason (5xx-class).
-