public static GetRegionInfoRequest getGetRegionInfoRequest(final byte[] regionName)
    throws IOException {
    return org.apache.hadoop.hbase.client.RegionInfo.isEncodedRegionName(regionName)
      ? GetRegionInfoRequest.newBuilder()
        .setRegion(RequestConverter.buildRegionSpecifier(RegionSpecifierType.ENCODED_REGION_NAME,
          regionName))
        .build()
      : RequestConverter.buildGetRegionInfoRequest(regionName);
  }
Returns A GetRegionInfoRequest for the passed in regionName.
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java