Class TypeDescriptorHandler

java.lang.Object
ai.pipestream.registration.handlers.TypeDescriptorHandler

@ApplicationScoped public class TypeDescriptorHandler extends Object
Serves the descriptor door: resolves Any type_urls to self-contained descriptor sets and lists the available type catalog, mapping TypeDescriptorIndex results onto the documented gRPC error contract (INVALID_ARGUMENT / NOT_FOUND / FAILED_PRECONDITION).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ai.pipestream.platform.registration.v1.GetTypeDescriptorResponse
    getTypeDescriptor(ai.pipestream.platform.registration.v1.GetTypeDescriptorRequest request)
    Resolves one type to its self-contained, topologically ordered FileDescriptorSet.
    ai.pipestream.platform.registration.v1.ListTypeDescriptorsResponse
    listTypeDescriptors(ai.pipestream.platform.registration.v1.ListTypeDescriptorsRequest request)
    Lists every message type in the snapshot, optionally substring-filtered.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TypeDescriptorHandler

      public TypeDescriptorHandler()
  • Method Details

    • getTypeDescriptor

      public ai.pipestream.platform.registration.v1.GetTypeDescriptorResponse getTypeDescriptor(ai.pipestream.platform.registration.v1.GetTypeDescriptorRequest request)
      Resolves one type to its self-contained, topologically ordered FileDescriptorSet.
      Parameters:
      request - the type_url (or bare message name) and optional pinned version
      Returns:
      the descriptor set, its content-hash version, and the resolved name
      Throws:
      io.grpc.StatusRuntimeException - INVALID_ARGUMENT for a malformed type_url, NOT_FOUND for an unknown type, FAILED_PRECONDITION when an explicit version no longer matches the baked snapshot
    • listTypeDescriptors

      public ai.pipestream.platform.registration.v1.ListTypeDescriptorsResponse listTypeDescriptors(ai.pipestream.platform.registration.v1.ListTypeDescriptorsRequest request)
      Lists every message type in the snapshot, optionally substring-filtered.
      Parameters:
      request - the optional case-insensitive substring filter
      Returns:
      all matching types, sorted by full name