public boolean add()

in src/main/java/com/google/cloud/solutions/autotokenize/dlp/BatchColumnsForDlp.java [124:137]


      public boolean add(Value value) {

        var tempTable = accumulatedTable.toBuilder().addRows(makeValueRow(value)).build();

        if (tempTable.getSerializedSize() > DLP_MAX_BATCH_PAYLOAD_SIZE
            || (accumulatedElementsCount + 1) >= DLP_MAX_ELEMENTS_COUNT) {
          return false;
        }

        accumulatedTable = tempTable;
        accumulatedElementsCount++;

        return true;
      }