public static final class RedactImageRequest.ImageRedactionConfig.Builder extends GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder> implements RedactImageRequest.ImageRedactionConfigOrBuilder
Configuration for determining how redaction of images should occur.
Protobuf type google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public RedactImageRequest.ImageRedactionConfig build()
Returns
buildPartial()
public RedactImageRequest.ImageRedactionConfig buildPartial()
Returns
clear()
public RedactImageRequest.ImageRedactionConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public RedactImageRequest.ImageRedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInfoType()
public RedactImageRequest.ImageRedactionConfig.Builder clearInfoType()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRedactAllText()
public RedactImageRequest.ImageRedactionConfig.Builder clearRedactAllText()
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
clearRedactionColor()
public RedactImageRequest.ImageRedactionConfig.Builder clearRedactionColor()
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
clearTarget()
public RedactImageRequest.ImageRedactionConfig.Builder clearTarget()
Returns
clone()
public RedactImageRequest.ImageRedactionConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInfoType()
public 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
getInfoTypeBuilder()
public InfoType.Builder getInfoTypeBuilder()
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
getInfoTypeOrBuilder()
public 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
getRedactAllText()
public 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
Type | Description |
boolean | The redactAllText.
|
getRedactionColor()
public 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
Type | Description |
Color | The redactionColor.
|
getRedactionColorBuilder()
public Color.Builder getRedactionColorBuilder()
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
getRedactionColorOrBuilder()
public 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
getTargetCase()
public RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
Returns
hasInfoType()
public 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
Type | Description |
boolean | Whether the infoType field is set.
|
hasRedactAllText()
public 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
Type | Description |
boolean | Whether the redactAllText field is set.
|
hasRedactionColor()
public 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
Type | Description |
boolean | Whether the redactionColor field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(RedactImageRequest.ImageRedactionConfig other)
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other)
Parameter
Returns
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeInfoType(InfoType value)
public RedactImageRequest.ImageRedactionConfig.Builder mergeInfoType(InfoType value)
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;
Parameter
Returns
mergeRedactionColor(Color value)
public RedactImageRequest.ImageRedactionConfig.Builder mergeRedactionColor(Color value)
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;
Parameter
Name | Description |
value | Color
|
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setInfoType(InfoType value)
public RedactImageRequest.ImageRedactionConfig.Builder setInfoType(InfoType value)
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;
Parameter
Returns
setInfoType(InfoType.Builder builderForValue)
public RedactImageRequest.ImageRedactionConfig.Builder setInfoType(InfoType.Builder builderForValue)
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;
Parameter
Returns
setRedactAllText(boolean value)
public RedactImageRequest.ImageRedactionConfig.Builder setRedactAllText(boolean value)
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;
Parameter
Name | Description |
value | boolean
The redactAllText to set.
|
Returns
setRedactionColor(Color value)
public RedactImageRequest.ImageRedactionConfig.Builder setRedactionColor(Color value)
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;
Parameter
Name | Description |
value | Color
|
Returns
setRedactionColor(Color.Builder builderForValue)
public RedactImageRequest.ImageRedactionConfig.Builder setRedactionColor(Color.Builder builderForValue)
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;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides