code: public static <T> QueryParameterValue array(T[] array, StandardSQLTypeName type) {
      List<QueryParameterValue> listValues = new ArrayList<>();
      for (T obj : array) {
        listValues.add(QueryParameterValue.of(obj, type));
      }
      return QueryParameterValue.newBuilder()
          .setArrayValues(listValues)
          .setType(StandardSQLTypeName.ARRAY)
          .setArrayType(type)
          .build();
    }
docs: Creates a {@code QueryParameterValue} object with a type of ARRAY the given array element type.