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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RedactImageRequest.ImageRedactionConfig build()
buildPartial()
public RedactImageRequest.ImageRedactionConfig buildPartial()
clear()
public RedactImageRequest.ImageRedactionConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RedactImageRequest.ImageRedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clearTarget()
public RedactImageRequest.ImageRedactionConfig.Builder clearTarget()
clone()
public RedactImageRequest.ImageRedactionConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
InfoType | The infoType.
|
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;
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;
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;
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;
getTargetCase()
public RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RedactImageRequest.ImageRedactionConfig other)
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other)
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
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
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
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
|
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RedactImageRequest.ImageRedactionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides