def _ConvertValueMessage(value, message):
if isinstance(value, dict):<EOL><INDENT>_ConvertStructMessage(value, message.struct_value)<EOL><DEDENT>elif isinstance(value, list):<EOL><INDENT>_ConvertListValueMessage(value, message.list_value)<EOL><DEDENT>elif value is None:<EOL><INDENT>message.null_value = <NUM_LIT:0><EOL><DEDENT>elif isinstance(value, bool):<EOL><INDENT>message.bool_value = value<EOL><DEDENT>elif isinstance(value, six.string_types):<EOL><INDENT>message.string_value = value<EOL><DEDENT>elif isinstance(value, _INT_OR_FLOAT):<EOL><INDENT>message.number_value = value<EOL><DEDENT>else:<EOL><INDENT>raise ParseError('<STR_LIT>')<EOL><DEDENT>
Convert a JSON representation into Value message.