code: public static String getPackagePath(Proto proto) {
          String javaPackage = getPackage(proto);
          return javaPackage.replace('.', '/');
      }
docs: Returns a relative path where java class should be placed,
  computed from java package.