NAME
Protobuf::WKT - Well-Known Type Registry
VERSION
version 0.03
SYNOPSIS
use Protobuf::WKT;
my $class = Protobuf::WKT->get_extension_class('google.protobuf.Timestamp');
# $class is 'Protobuf::WKT::Timestamp'
DESCRIPTION
This module provides a registry for mapping the fully qualified names of Protocol Buffer Well-Known Types (WKTs) to their specific Perl implementation classes under the Protobuf::WKT:: namespace.
It's primarily used internally by Protobuf::ClassGenerator to ensure that messages like google.protobuf.Any or google.protobuf.Timestamp are blessed into classes that provide additional helper methods (e.g., for time conversions or Any packing/unpacking).
METHODS
get_extension_class($full_name)
Given the full name of a Well-Known Type (e.g., google.protobuf.Any), returns the corresponding Perl class name (e.g., Protobuf::WKT::Any), or undef if the name is not a registered WKT.
get_all_wkts()
Returns a list of all registered Well-Known Type full names.
SEE ALSO
Protobuf, Protobuf::ClassGenerator, and the various modules in the Protobuf::WKT:: namespace.
AUTHOR
C.J. Collier <cjac@google.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Google LLC.
This is free software; you can redistribute it and/or modify it under the terms of the BSD 3-Clause License.