support for proto_gen_methods