Package com.google.privacy.dlp.v2
Class RedactImageRequest.ImageRedactionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
com.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig.Builder
- All Implemented Interfaces:
RedactImageRequest.ImageRedactionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RedactImageRequest.ImageRedactionConfig
public static final class RedactImageRequest.ImageRedactionConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
implements RedactImageRequest.ImageRedactionConfigOrBuilder
Configuration for determining how redaction of images should occur.Protobuf type
google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Only one per info_type should be provided per request.If true, all text found in the image, regardless whether it matches an info_type, is redacted.The color to use when redacting content from an image.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOnly one per info_type should be provided per request.Only one per info_type should be provided per request.Only one per info_type should be provided per request.booleanIf true, all text found in the image, regardless whether it matches an info_type, is redacted.The color to use when redacting content from an image.The color to use when redacting content from an image.The color to use when redacting content from an image.booleanOnly one per info_type should be provided per request.booleanIf true, all text found in the image, regardless whether it matches an info_type, is redacted.booleanThe color to use when redacting content from an image.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInfoType(InfoType value) Only one per info_type should be provided per request.mergeRedactionColor(Color value) The color to use when redacting content from an image.setInfoType(InfoType value) Only one per info_type should be provided per request.setInfoType(InfoType.Builder builderForValue) Only one per info_type should be provided per request.setRedactAllText(boolean value) If true, all text found in the image, regardless whether it matches an info_type, is redacted.setRedactionColor(Color value) The color to use when redacting content from an image.setRedactionColor(Color.Builder builderForValue) The color to use when redacting content from an image.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-
clearTarget
-
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;- Specified by:
hasInfoTypein interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- Whether the infoType field is set.
-
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;- Specified by:
getInfoTypein interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- The infoType.
-
setInfoType
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
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; -
mergeInfoType
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; -
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; -
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
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;- Specified by:
getInfoTypeOrBuilderin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-
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;- Specified by:
hasRedactAllTextin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- Whether the redactAllText field is set.
-
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;- Specified by:
getRedactAllTextin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- The redactAllText.
-
setRedactAllText
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;- Parameters:
value- The redactAllText to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasRedactionColorin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- Whether the redactionColor field is set.
-
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;- Specified by:
getRedactionColorin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder- Returns:
- The redactionColor.
-
setRedactionColor
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; -
setRedactionColor
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; -
mergeRedactionColor
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; -
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; -
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
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;- Specified by:
getRedactionColorOrBuilderin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-