Configuration of RIPv1 and RIPv2 is per IP interface. Configuration must be homogeneous on all routers on each subnetwork. That is, RIPv1 and RIPv2 routers should not be configured on the same subnetwork. However, you can configure different IP interfaces of the Branch Gateway with different RIP versions. This configuration is valid as long as all routers on the subnet are configured with the same version.
RIPv2 and RIPv1 are considered the same protocol with regard to redistribution to and from OSPF and static route preferences.