Interface RedactImageRequest.ImageRedactionConfigOrBuilder (3.8.0)

public static interface RedactImageRequest.ImageRedactionConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInfoType()

public abstract InfoType getInfoType()

Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoType

The infoType.

getInfoTypeOrBuilder()

public abstract InfoTypeOrBuilder getInfoTypeOrBuilder()

Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoTypeOrBuilder

getRedactAllText()

public abstract boolean getRedactAllText()

If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

bool redact_all_text = 2;

Returns
TypeDescription
boolean

The redactAllText.

getRedactionColor()

public abstract Color getRedactionColor()

The color to use when redacting content from an image. If not specified, the default is black.

.google.privacy.dlp.v2.Color redaction_color = 3;

Returns
TypeDescription
Color

The redactionColor.

getRedactionColorOrBuilder()

public abstract ColorOrBuilder getRedactionColorOrBuilder()

The color to use when redacting content from an image. If not specified, the default is black.

.google.privacy.dlp.v2.Color redaction_color = 3;

Returns
TypeDescription
ColorOrBuilder

getTargetCase()

public abstract RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
Returns
TypeDescription
RedactImageRequest.ImageRedactionConfig.TargetCase

hasInfoType()

public abstract boolean hasInfoType()

Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
boolean

Whether the infoType field is set.

hasRedactAllText()

public abstract boolean hasRedactAllText()

If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.

bool redact_all_text = 2;

Returns
TypeDescription
boolean

Whether the redactAllText field is set.

hasRedactionColor()

public abstract boolean hasRedactionColor()

The color to use when redacting content from an image. If not specified, the default is black.

.google.privacy.dlp.v2.Color redaction_color = 3;

Returns
TypeDescription
boolean

Whether the redactionColor field is set.