public static Builder newBuilder() {
    return new AutoValue_DLPInspectText.Builder();
  }
@Test
  public void throwsExceptionWhenDelimiterIsSetAndHeadersAreNot() {
    assertThrows(
        "Column headers should be supplied when delimiter is present.",
        IllegalArgumentException.class,
        () ->
            DLPInspectText.newBuilder()
                .setProjectId(PROJECT_ID)
                .setBatchSizeBytes(BATCH_SIZE_SMALL)
                .setInspectTemplateName(TEMPLATE_NAME)
                .setColumnDelimiter(DELIMITER)
                .build());
  }