Class TypeDescriptorHandler
java.lang.Object
ai.pipestream.registration.handlers.TypeDescriptorHandler
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 -
Method Summary
Modifier and TypeMethodDescriptionai.pipestream.platform.registration.v1.GetTypeDescriptorResponsegetTypeDescriptor(ai.pipestream.platform.registration.v1.GetTypeDescriptorRequest request) Resolves one type to its self-contained, topologically orderedFileDescriptorSet.ai.pipestream.platform.registration.v1.ListTypeDescriptorsResponselistTypeDescriptors(ai.pipestream.platform.registration.v1.ListTypeDescriptorsRequest request) Lists every message type in the snapshot, optionally substring-filtered.
-
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 orderedFileDescriptorSet.- 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
-