Interface MessageName
- All Known Implementing Classes:
StandardMessageName
public interface MessageName
Represents a message name in a schema registry service, providing access to both the simple name
and the namespace for message types. This interface is typically used for schema formats
that support namespaced message types, such as Protocol Buffers, where messages can be organized
within packages.
-
Method Summary
-
Method Details
-
getName
String getName()Returns the simple name of the message without any package qualification.- Returns:
- the message name
-
getNamespace
Returns the namespace that contains this message, if present.- Returns:
- an Optional containing the namespace name, or empty if the message is not contained within a namespace
-
getFullyQualifiedName
Returns the fully qualified name of the message by combining the namespace and simple name. If no namespace is present, returns just the simple name.- Returns:
- the fully qualified message name in the format "namespace.name" or just "name" if no namespace is present
-