public static SnapshotType createSnapshotType(SnapshotProtos.SnapshotDescription.Type type) {
    return SnapshotType.valueOf(type.toString());
  }
Creates {@link SnapshotType} from the {@link SnapshotProtos.SnapshotDescription.Type}
@param type the snapshot description type
@return the protobuf SnapshotDescription type
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java