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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedactImageRequest.ImageRedactionConfigbuild()RedactImageRequest.ImageRedactionConfigbuildPartial()RedactImageRequest.ImageRedactionConfig.Builderclear()RedactImageRequest.ImageRedactionConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RedactImageRequest.ImageRedactionConfig.BuilderclearInfoType()Only one per info_type should be provided per request.RedactImageRequest.ImageRedactionConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RedactImageRequest.ImageRedactionConfig.BuilderclearRedactAllText()If true, all text found in the image, regardless whether it matches an info_type, is redacted.RedactImageRequest.ImageRedactionConfig.BuilderclearRedactionColor()The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.BuilderclearTarget()RedactImageRequest.ImageRedactionConfig.Builderclone()RedactImageRequest.ImageRedactionConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InfoTypegetInfoType()Only one per info_type should be provided per request.InfoType.BuildergetInfoTypeBuilder()Only one per info_type should be provided per request.InfoTypeOrBuildergetInfoTypeOrBuilder()Only one per info_type should be provided per request.booleangetRedactAllText()If true, all text found in the image, regardless whether it matches an info_type, is redacted.ColorgetRedactionColor()The color to use when redacting content from an image.Color.BuildergetRedactionColorBuilder()The color to use when redacting content from an image.ColorOrBuildergetRedactionColorOrBuilder()The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.TargetCasegetTargetCase()booleanhasInfoType()Only one per info_type should be provided per request.booleanhasRedactAllText()If true, all text found in the image, regardless whether it matches an info_type, is redacted.booleanhasRedactionColor()The color to use when redacting content from an image.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RedactImageRequest.ImageRedactionConfig.BuildermergeFrom(RedactImageRequest.ImageRedactionConfig other)RedactImageRequest.ImageRedactionConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RedactImageRequest.ImageRedactionConfig.BuildermergeFrom(com.google.protobuf.Message other)RedactImageRequest.ImageRedactionConfig.BuildermergeInfoType(InfoType value)Only one per info_type should be provided per request.RedactImageRequest.ImageRedactionConfig.BuildermergeRedactionColor(Color value)The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RedactImageRequest.ImageRedactionConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RedactImageRequest.ImageRedactionConfig.BuildersetInfoType(InfoType value)Only one per info_type should be provided per request.RedactImageRequest.ImageRedactionConfig.BuildersetInfoType(InfoType.Builder builderForValue)Only one per info_type should be provided per request.RedactImageRequest.ImageRedactionConfig.BuildersetRedactAllText(boolean value)If true, all text found in the image, regardless whether it matches an info_type, is redacted.RedactImageRequest.ImageRedactionConfig.BuildersetRedactionColor(Color value)The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.BuildersetRedactionColor(Color.Builder builderForValue)The color to use when redacting content from an image.RedactImageRequest.ImageRedactionConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RedactImageRequest.ImageRedactionConfig.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
getDefaultInstanceForType
public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RedactImageRequest.ImageRedactionConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RedactImageRequest.ImageRedactionConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RedactImageRequest.ImageRedactionConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
setField
public RedactImageRequest.ImageRedactionConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clearField
public RedactImageRequest.ImageRedactionConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
clearOneof
public RedactImageRequest.ImageRedactionConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
addRepeatedField
public RedactImageRequest.ImageRedactionConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeFrom
public RedactImageRequest.ImageRedactionConfig.Builder mergeFrom(com.google.protobuf.Message other)
- 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.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:
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
public RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
- Specified by:
getTargetCasein 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:
hasInfoTypein 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:
getInfoTypein 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:
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
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:
hasRedactionColorin 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:
getRedactionColorin 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:
getRedactionColorOrBuilderin interfaceRedactImageRequest.ImageRedactionConfigOrBuilder
-
setUnknownFields
public final RedactImageRequest.ImageRedactionConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
mergeUnknownFields
public final RedactImageRequest.ImageRedactionConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RedactImageRequest.ImageRedactionConfig.Builder>
-
-