class documentation
Registry of SDK-owned message classes and descriptor facades.
| Static Method | type |
Validate a type URL and return its final protobuf-name component. |
| Method | __init__ |
Undocumented |
| Method | client |
Undocumented |
| Method | enum |
Resolve a generated enum class only inside this registry. |
| Method | enum |
Undocumented |
| Method | extension |
Undocumented |
| Method | file |
Undocumented |
| Method | load |
Import every SDK API module available in this installation. |
| Method | message |
Resolve a message class only inside this registry. |
| Method | message |
Undocumented |
| Method | pack |
Pack a namespace-owned direct message into its localized Any class. |
| Method | service |
Undocumented |
| Method | unpack |
Unpack a localized Any through this registry only. |
| Property | reflection |
Return descriptor metadata when the registry has serialized files. |
| Property | symbols |
Return the immutable lazy symbol mapping. |
| Static Method | _import |
Undocumented |
| Method | _decode |
Undocumented |
| Method | _internal |
Resolve descriptor-only enums without exporting them. |
| Method | _internal |
Resolve descriptor-only option messages without exporting them. |
| Method | _load |
Undocumented |
| Method | _reflection |
Undocumented |
| Instance Variable | _all |
Undocumented |
| Instance Variable | _load |
Undocumented |
| Instance Variable | _loading |
Undocumented |
| Instance Variable | _lock |
Undocumented |
| Instance Variable | _reflection |
Undocumented |
| Instance Variable | _serialized |
Undocumented |
Inherited from Registry:
| Class Method | from |
Merge package fragments into one immutable namespace registry. |
| Method | _any |
Undocumented |
| Method | _require |
Undocumented |
| Instance Variable | _any |
Undocumented |
| Instance Variable | _cache |
Undocumented |
| Instance Variable | _enum |
Undocumented |
| Instance Variable | _enum |
Undocumented |
| Instance Variable | _symbols |
Undocumented |
def pack_any(self, message:
Message, *, type_url_prefix: str = 'type.googleapis.com') -> Message:
(source)
¶
Pack a namespace-owned direct message into its localized Any class.
def unpack_any(self, any_message:
Message, *, expected_type: type[ Message] | None = None) -> Message:
(source)
¶
Unpack a localized Any through this registry only.