@@ -512,7 +512,6 @@ protected DeidentifyPdfRequest getDeidentifyPdfRequest(DeidentifyFileRequest req
512512 Optional <List <EntityType >> entityUniqueCounter = Optional .empty ();
513513 Optional <List <String >> allowRegex = Optional .ofNullable (request .getAllowRegexList ());
514514 Optional <List <String >> restrictRegex = Optional .ofNullable (request .getRestrictRegexList ());
515- Optional <Transformations > transformations = Optional .ofNullable (getTransformations (request .getTransformations ()));
516515
517516 if (tokenFormat != null ) {
518517 if (tokenFormat .getEntityOnly () != null && !tokenFormat .getEntityOnly ().isEmpty ()) {
@@ -540,13 +539,12 @@ protected DeidentifyPdfRequest getDeidentifyPdfRequest(DeidentifyFileRequest req
540539 return DeidentifyPdfRequest .builder ()
541540 .vaultId (vaultId )
542541 .file (file )
543- .density (request .getPixelDensity () != null ? request .getPixelDensity ().intValue () : null )
544- .maxResolution (request .getMaxResolution () != null ? request .getMaxResolution ().intValue () : null )
542+ .density (request .getPixelDensity () != null ? request .getPixelDensity ().doubleValue () : null )
543+ .maxResolution (request .getMaxResolution () != null ? request .getMaxResolution ().doubleValue () : null )
545544 .entityTypes (mappedEntityTypes )
546545 .tokenType (tokenType )
547546 .allowRegex (allowRegex )
548547 .restrictRegex (restrictRegex )
549- .transformations (transformations )
550548 .build ();
551549 }
552550
@@ -558,7 +556,6 @@ protected DeidentifyImageRequest getDeidentifyImageRequest(DeidentifyFileRequest
558556 Optional <List <EntityType >> entityUniqueCounter = Optional .empty ();
559557 Optional <List <String >> allowRegex = Optional .ofNullable (request .getAllowRegexList ());
560558 Optional <List <String >> restrictRegex = Optional .ofNullable (request .getRestrictRegexList ());
561- Optional <Transformations > transformations = Optional .ofNullable (getTransformations (request .getTransformations ()));
562559
563560 TokenTypeWithoutVault tokenType = buildTokenType (tokenFormat , entityTypes , entityUniqueCounter );
564561
@@ -580,7 +577,6 @@ protected DeidentifyImageRequest getDeidentifyImageRequest(DeidentifyFileRequest
580577 .tokenType (tokenType )
581578 .allowRegex (allowRegex )
582579 .restrictRegex (restrictRegex )
583- .transformations (transformations )
584580 .outputProcessedImage (request .getOutputProcessedImage ())
585581 .outputOcrText (request .getOutputOcrText ())
586582 .build ();
@@ -594,7 +590,6 @@ protected DeidentifyPresentationRequest getDeidentifyPresentationRequest(Deident
594590 Optional <List <EntityType >> entityUniqueCounter = Optional .empty ();
595591 Optional <List <String >> allowRegex = Optional .ofNullable (request .getAllowRegexList ());
596592 Optional <List <String >> restrictRegex = Optional .ofNullable (request .getRestrictRegexList ());
597- Optional <Transformations > transformations = Optional .ofNullable (getTransformations (request .getTransformations ()));
598593
599594 TokenTypeWithoutVault tokenType = buildTokenType (tokenFormat , entityTypes , entityUniqueCounter );
600595
@@ -610,7 +605,6 @@ protected DeidentifyPresentationRequest getDeidentifyPresentationRequest(Deident
610605 .tokenType (tokenType )
611606 .allowRegex (allowRegex )
612607 .restrictRegex (restrictRegex )
613- .transformations (transformations )
614608 .build ();
615609 }
616610
@@ -622,7 +616,6 @@ protected DeidentifySpreadsheetRequest getDeidentifySpreadsheetRequest(Deidentif
622616 Optional <List <EntityType >> entityUniqueCounter = Optional .empty ();
623617 Optional <List <String >> allowRegex = Optional .ofNullable (request .getAllowRegexList ());
624618 Optional <List <String >> restrictRegex = Optional .ofNullable (request .getRestrictRegexList ());
625- Optional <Transformations > transformations = Optional .ofNullable (getTransformations (request .getTransformations ()));
626619
627620 TokenTypeWithoutVault tokenType = buildTokenType (tokenFormat , entityTypes , entityUniqueCounter );
628621
@@ -638,7 +631,6 @@ protected DeidentifySpreadsheetRequest getDeidentifySpreadsheetRequest(Deidentif
638631 .tokenType (tokenType )
639632 .allowRegex (allowRegex )
640633 .restrictRegex (restrictRegex )
641- .transformations (transformations )
642634 .build ();
643635 }
644636
@@ -678,7 +670,6 @@ protected DeidentifyDocumentRequest getDeidentifyDocumentRequest(DeidentifyFileR
678670 Optional <List <EntityType >> entityUniqueCounter = Optional .empty ();
679671 Optional <List <String >> allowRegex = Optional .ofNullable (request .getAllowRegexList ());
680672 Optional <List <String >> restrictRegex = Optional .ofNullable (request .getRestrictRegexList ());
681- Optional <Transformations > transformations = Optional .ofNullable (getTransformations (request .getTransformations ()));
682673
683674 TokenTypeWithoutVault tokenType = buildTokenType (tokenFormat , entityTypes , entityUniqueCounter );
684675
@@ -694,7 +685,6 @@ protected DeidentifyDocumentRequest getDeidentifyDocumentRequest(DeidentifyFileR
694685 .tokenType (tokenType )
695686 .allowRegex (allowRegex )
696687 .restrictRegex (restrictRegex )
697- .transformations (transformations )
698688 .build ();
699689 }
700690
0 commit comments