Package com.google.privacy.dlp.v2
Interface RedactImageRequest.ImageRedactionConfigOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RedactImageRequest.ImageRedactionConfig
,RedactImageRequest.ImageRedactionConfig.Builder
- Enclosing class:
- RedactImageRequest
public static interface RedactImageRequest.ImageRedactionConfigOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InfoType
getInfoType()
Only one per info_type should be provided per request.InfoTypeOrBuilder
getInfoTypeOrBuilder()
Only one per info_type should be provided per request.boolean
getRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted.Color
getRedactionColor()
The color to use when redacting content from an image.ColorOrBuilder
getRedactionColorOrBuilder()
The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.TargetCase
getTargetCase()
boolean
hasInfoType()
Only one per info_type should be provided per request.boolean
hasRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted.boolean
hasRedactionColor()
The color to use when redacting content from an image.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasInfoType
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:
- Whether the infoType field is set.
-
getInfoType
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:
- The infoType.
-
getInfoTypeOrBuilder
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;
-
hasRedactAllText
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:
- Whether the redactAllText field is set.
-
getRedactAllText
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:
- The redactAllText.
-
hasRedactionColor
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:
- Whether the redactionColor field is set.
-
getRedactionColor
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:
- The redactionColor.
-
getRedactionColorOrBuilder
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;
-
getTargetCase
RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
-
-