public static GetRegionInfoRequest buildGetRegionInfoRequest(final byte[] regionName,
    final boolean includeCompactionState, boolean includeBestSplitRow) {
    GetRegionInfoRequest.Builder builder = GetRegionInfoRequest.newBuilder();
    RegionSpecifier region = buildRegionSpecifier(RegionSpecifierType.REGION_NAME, regionName);
    builder.setRegion(region);
    if (includeCompactionState) {
      builder.setCompactionState(includeCompactionState);
    }
    if (includeBestSplitRow) {
      builder.setBestSplitRow(includeBestSplitRow);
    }
    return builder.build();
  }
Create a protocol buffer GetRegionInfoRequest,
@param regionName             the name of the region to get info
@param includeCompactionState indicate if the compaction state is requested
@param includeBestSplitRow    indicate if the bestSplitRow is requested
@return protocol buffer GetRegionInfoRequest
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/RequestConverter.java