public static DLPReidentifyText.Builder newBuilder() {
    return new AutoValue_DLPReidentifyText.Builder();
  }
@Test
  public void throwsExceptionWhenDelimiterIsNullAndHeadersAreSet() {
    PCollectionView<List<String>> header =
        testPipeline.apply(Create.of("header")).apply(View.asList());
    assertThrows(
        "Column delimiter should be set if headers are present.",
        IllegalArgumentException.class,
        () ->
            DLPReidentifyText.newBuilder()
                .setProjectId(PROJECT_ID)
                .setBatchSizeBytes(BATCH_SIZE_SMALL)
                .setReidentifyTemplateName(TEMPLATE_NAME)
                .setHeaderColumns(header)
                .build());
    testPipeline.run().waitUntilFinish();
  }