public static final class RedactContentRequest.ImageRedactionConfig.Builder extends GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder> implements RedactContentRequest.ImageRedactionConfigOrBuilder
Configuration for determining how redaction of images should occur.Protobuf type
google.privacy.dlp.v2beta1.RedactContentRequest.ImageRedactionConfiggetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic RedactContentRequest.ImageRedactionConfig build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic RedactContentRequest.ImageRedactionConfig buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic RedactContentRequest.ImageRedactionConfig.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder mergeFrom(RedactContentRequest.ImageRedactionConfig other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public RedactContentRequest.ImageRedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<RedactContentRequest.ImageRedactionConfig.Builder>java.io.IOExceptionpublic RedactContentRequest.ImageRedactionConfig.TargetCase getTargetCase()
getTargetCase in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic RedactContentRequest.ImageRedactionConfig.Builder clearTarget()
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.v2beta1.InfoType info_type = 1;hasInfoType in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic 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.v2beta1.InfoType info_type = 1;getInfoType in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic RedactContentRequest.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.v2beta1.InfoType info_type = 1;public RedactContentRequest.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.v2beta1.InfoType info_type = 1;public RedactContentRequest.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.v2beta1.InfoType info_type = 1;public RedactContentRequest.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.v2beta1.InfoType info_type = 1;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.v2beta1.InfoType info_type = 1;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.v2beta1.InfoType info_type = 1;getInfoTypeOrBuilder in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic boolean getRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted.
bool redact_all_text = 2;getRedactAllText in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic RedactContentRequest.ImageRedactionConfig.Builder setRedactAllText(boolean value)
If true, all text found in the image, regardless whether it matches an info_type, is redacted.
bool redact_all_text = 2;public RedactContentRequest.ImageRedactionConfig.Builder clearRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted.
bool redact_all_text = 2;public boolean hasRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta1.Color redaction_color = 3;hasRedactionColor in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic Color getRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta1.Color redaction_color = 3;getRedactionColor in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic RedactContentRequest.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.v2beta1.Color redaction_color = 3;public RedactContentRequest.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.v2beta1.Color redaction_color = 3;public RedactContentRequest.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.v2beta1.Color redaction_color = 3;public RedactContentRequest.ImageRedactionConfig.Builder clearRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta1.Color redaction_color = 3;public Color.Builder getRedactionColorBuilder()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta1.Color redaction_color = 3;public ColorOrBuilder getRedactionColorOrBuilder()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta1.Color redaction_color = 3;getRedactionColorOrBuilder in interface RedactContentRequest.ImageRedactionConfigOrBuilderpublic final RedactContentRequest.ImageRedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>public final RedactContentRequest.ImageRedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<RedactContentRequest.ImageRedactionConfig.Builder>