public static Builder newBuilder() {
    return new AutoValue_DLPInspectText.Builder();
  }
@Test
  public void throwsExceptionWhenBatchSizeIsTooLarge() {
    assertThrows(
        String.format(
            "Batch size is too large! It should be smaller or equal than %d.",
            DLPInspectText.DLP_PAYLOAD_LIMIT_BYTES),
        IllegalArgumentException.class,
        () ->
            DLPInspectText.newBuilder()
                .setProjectId(PROJECT_ID)
                .setBatchSizeBytes(Integer.MAX_VALUE)
                .setInspectTemplateName(TEMPLATE_NAME)
                .setColumnDelimiter(DELIMITER)
                .build());
  }