public static final class RedactImageRequest.ImageRedactionConfig.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
RedactImageRequest.ImageRedactionConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedactImageRequest.ImageRedactionConfig |
build() |
RedactImageRequest.ImageRedactionConfig |
buildPartial() |
RedactImageRequest.ImageRedactionConfig.Builder |
clear() |
RedactImageRequest.ImageRedactionConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RedactImageRequest.ImageRedactionConfig.Builder |
clearInfoType()
Only one per info_type should be provided per request.
|
RedactImageRequest.ImageRedactionConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RedactImageRequest.ImageRedactionConfig.Builder |
clearRedactAllText()
If true, all text found in the image, regardless whether it matches an
info_type, is redacted.
|
RedactImageRequest.ImageRedactionConfig.Builder |
clearRedactionColor()
The color to use when redacting content from an image.
|
RedactImageRequest.ImageRedactionConfig.Builder |
clearTarget() |
RedactImageRequest.ImageRedactionConfig.Builder |
clone() |
RedactImageRequest.ImageRedactionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
InfoType |
getInfoType()
Only one per info_type should be provided per request.
|
InfoType.Builder |
getInfoTypeBuilder()
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.
|
Color.Builder |
getRedactionColorBuilder()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RedactImageRequest.ImageRedactionConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RedactImageRequest.ImageRedactionConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
RedactImageRequest.ImageRedactionConfig.Builder |
mergeFrom(RedactImageRequest.ImageRedactionConfig other) |
RedactImageRequest.ImageRedactionConfig.Builder |
mergeInfoType(InfoType value)
Only one per info_type should be provided per request.
|
RedactImageRequest.ImageRedactionConfig.Builder |
mergeRedactionColor(Color value)
The color to use when redacting content from an image.
|
RedactImageRequest.ImageRedactionConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RedactImageRequest.ImageRedactionConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RedactImageRequest.ImageRedactionConfig.Builder |
setInfoType(InfoType.Builder builderForValue)
Only one per info_type should be provided per request.
|
RedactImageRequest.ImageRedactionConfig.Builder |
setInfoType(InfoType value)
Only one per info_type should be provided per request.
|
RedactImageRequest.ImageRedactionConfig.Builder |
setRedactAllText(boolean value)
If true, all text found in the image, regardless whether it matches an
info_type, is redacted.
|
RedactImageRequest.ImageRedactionConfig.Builder |
setRedactionColor(Color.Builder builderForValue)
The color to use when redacting content from an image.
|
RedactImageRequest.ImageRedactionConfig.Builder |
setRedactionColor(Color value)
The color to use when redacting content from an image.
|
RedactImageRequest.ImageRedactionConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RedactImageRequest.ImageRedactionConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RedactImageRequest.ImageRedactionConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RedactImageRequest.ImageRedactionConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RedactImageRequest.ImageRedactionConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>IOExceptionpublic RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
getTargetCase in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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.v2.InfoType info_type = 1;hasInfoType in interface RedactImageRequest.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.v2.InfoType info_type = 1;getInfoType in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;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;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;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;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;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;getInfoTypeOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;hasRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;getRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;value - The redactAllText to set.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;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;hasRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;getRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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;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;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;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;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;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;getRedactionColorOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>Copyright © 2022 Google LLC. All rights reserved.