function containsMessageType(msg) {
    return msg[message_type_contract_1.MESSAGE_TYPE] != null;
}
Check if the provided object is a proto message.

Note that this is an experimental feature - it is here to stay, but
implementation details may change without notice.