Initialization refers to the status of required fields in a proto2 message. If a message is uninitialized, not all required fields are set in either the message itself or any of its submessages. Checking message initialization is not handled automatically by the library, but can be done manually via the
Initialization refers to checking the status of required fields in a proto2 message. If a message is uninitialized, not all required fields are set in either the message itself or any of its submessages. In other languages, missing required fields throw errors depending on the merge method used. This could cause unforseen errors at runtime if the incorrect method is used.
`IsInitialized` extension method in `MessageExtensions`. Please note, parsers and input streams don't check messages
However, in this implementation, parsers and input streams don't check messages for initialization on their own and throw errors. Instead it's up to you to handle messages with missing required fields in whatever way you see fit.
for initialization on their own and throw errors. Instead it's up to you to handle messages with missing required fields
Checking message initialization can be done manually via the `IsInitialized` extension method in `MessageExtensions`.