Class ProtobufTypeRegistryProducer
java.lang.Object
ai.pipestream.module.pipelineprobe.ProtobufTypeRegistryProducer
Produces a protobuf
TypeRegistry populated from generated Java classes.
This enables JsonFormat.Printer to resolve
google.protobuf.Any fields (e.g. TikaResponse packed inside PipeDoc).
When the shared pipestream extension provides this bean natively, delete this class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TypeRegistryBuilds the singleton protobufTypeRegistryby seeding it with a fixed set of generated message descriptors, transitively collecting their file-descriptor dependencies, and registering every (including nested) message type.
-
Constructor Details
-
ProtobufTypeRegistryProducer
public ProtobufTypeRegistryProducer()Creates the producer. Instances are managed by CDI.
-
-
Method Details
-
typeRegistry
@Produces @Singleton public com.google.protobuf.TypeRegistry typeRegistry()Builds the singleton protobufTypeRegistryby seeding it with a fixed set of generated message descriptors, transitively collecting their file-descriptor dependencies, and registering every (including nested) message type. Duplicate types are ignored. The registry letsJsonFormatresolvegoogle.protobuf.Anyfields by their packed type.- Returns:
- the populated protobuf type registry
-