Handle unknown fields
masterWhen decoding, Protox retains fields present on the wire that do not correspond to the protobuf definition (unknown fields). This ensures forward compatibility.
To access these fields, use the unknown_fields/1 function on the decoded message. It returns a list of {tag, wire_type, bytes} tuples.
# Accessing unknown fields
msg = Msg.decode!(<<8, 42, 42, 4, 121, 97, 121, 101, 136, 241, 4, 83>>)
fields = Msg.unknown_fields(msg)
# Returns: [{5, 2, <<121, 97, 121, 101>>]}]