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.v2beta2.RedactImageRequest.ImageRedactionConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public RedactImageRequest.ImageRedactionConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public RedactImageRequest.ImageRedactionConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public RedactImageRequest.ImageRedactionConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
java.io.IOException
public RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
getTargetCase
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
public RedactImageRequest.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.v2beta2.InfoType info_type = 1;
hasInfoType
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
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.v2beta2.InfoType info_type = 1;
getInfoType
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
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.v2beta2.InfoType info_type = 1;
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.v2beta2.InfoType info_type = 1;
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.v2beta2.InfoType info_type = 1;
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.v2beta2.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.v2beta2.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.v2beta2.InfoType info_type = 1;
getInfoTypeOrBuilder
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
public 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 RedactImageRequest.ImageRedactionConfigOrBuilder
public RedactImageRequest.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 RedactImageRequest.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.v2beta2.Color redaction_color = 3;
hasRedactionColor
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
public Color getRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2beta2.Color redaction_color = 3;
getRedactionColor
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
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.v2beta2.Color redaction_color = 3;
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.v2beta2.Color redaction_color = 3;
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.v2beta2.Color redaction_color = 3;
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.v2beta2.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.v2beta2.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.v2beta2.Color redaction_color = 3;
getRedactionColorOrBuilder
in interface RedactImageRequest.ImageRedactionConfigOrBuilder
public final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>