Support Ruby code generation only for proto3.