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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder> implements RedactImageRequest.ImageRedactionConfigOrBuilder
Configuration for determining how redaction of images should occur.
Protobuf typegoogle.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(RedactImageRequest.ImageRedactionConfig other)
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
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 value)
Only one per info_type should be provided per request.RedactImageRequest.ImageRedactionConfig.Builder
setInfoType(InfoType.Builder builderForValue)
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 value)
The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.Builder
setRedactionColor(Color.Builder builderForValue)
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clear
public RedactImageRequest.ImageRedactionConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
getDefaultInstanceForType
public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RedactImageRequest.ImageRedactionConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RedactImageRequest.ImageRedactionConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RedactImageRequest.ImageRedactionConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
setField
public RedactImageRequest.ImageRedactionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clearField
public RedactImageRequest.ImageRedactionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clearOneof
public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
setRepeatedField
public RedactImageRequest.ImageRedactionConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
addRepeatedField
public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(RedactImageRequest.ImageRedactionConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
- Throws:
IOException
-
getTargetCase
public RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
- Specified by:
getTargetCase
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-
clearTarget
public RedactImageRequest.ImageRedactionConfig.Builder 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:
hasInfoType
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
- Returns:
- Whether the infoType field is set.
-
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;
- Specified by:
getInfoType
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
- Returns:
- The infoType.
-
setInfoType
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
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
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;
-
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;
-
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;
- Specified by:
getInfoTypeOrBuilder
in 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:
hasRedactAllText
in 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:
getRedactAllText
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
- Returns:
- The redactAllText.
-
setRedactAllText
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;
- Parameters:
value
- The redactAllText to set.- Returns:
- This builder for chaining.
-
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;
- 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:
hasRedactionColor
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
- Returns:
- Whether the redactionColor field is set.
-
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;
- Specified by:
getRedactionColor
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
- Returns:
- The redactionColor.
-
setRedactionColor
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;
-
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
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;
-
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;
-
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;
- Specified by:
getRedactionColorOrBuilder
in interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-
setUnknownFields
public final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeUnknownFields
public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
-