@Override
  public byte[] toByteArray() {
    FilterProtos.InclusiveStopFilter.Builder builder =
      FilterProtos.InclusiveStopFilter.newBuilder();
    if (this.stopRowKey != null)
      builder.setStopRowKey(UnsafeByteOperations.unsafeWrap(this.stopRowKey));
    return builder.build().toByteArray();
  }
Returns The filter serialized using pb
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/InclusiveStopFilter.java