Skip to content

DLP should use default Java java.awt.Color class and not redefine a Color class with limited functionalities #2321

@jabubake

Description

@jabubake
ImageRedactionConfig imageRedactionConfig = ImageRedactionConfig.newBuilder()
          .setInfoType(infoType)
          .setRedactionColor(Color.newBuilder().setBlue())
          .build();

setRedactionColor takes in a custom com.google.privacy.dlp.v2beta1.Color.class : requiring the use of builders to set RGB values :
This is a painful user experience.

Metadata

Metadata

Assignees

Labels

api: dlpIssues related to the Sensitive Data Protection API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions