public static OpenRegionRequest buildOpenRegionRequest(ServerName server, final RegionInfo region,
    List<ServerName> favoredNodes) {
    OpenRegionRequest.Builder builder = OpenRegionRequest.newBuilder();
    builder.addOpenInfo(buildRegionOpenInfo(region, favoredNodes, -1L));
    if (server != null) {
      builder.setServerStartCode(server.getStartcode());
    }
    builder.setMasterSystemTime(EnvironmentEdgeManager.currentTime());
    return builder.build();
  }
Create a protocol buffer OpenRegionRequest for a given region
@param server       the serverName for the RPC
@param region       the region to open
@param favoredNodes a list of favored nodes
@return a protocol buffer OpenRegionRequest
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/RequestConverter.java