code: public static TimePartitioning of(Type type, long expirationMs) {
      return newBuilder(type).setExpirationMs(expirationMs).build();
    }
docs: Returns a {@code TimePartitioning} object given the time partitioning type and the partition's
  expiration in milliseconds.
  
  @param type the time partitioning type. Currently, the only type supported is {@link Type#DAY},
  which will generate one partition per day based on data loading time.
  @param expirationMs the number of milliseconds for which to keep the storage for a partition