Package com.google.privacy.dlp.v2
Class ImageTransformations.ImageTransformation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImageTransformations.ImageTransformation.Builder>
com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.Builder
- All Implemented Interfaces:
ImageTransformations.ImageTransformationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImageTransformations.ImageTransformation
public static final class ImageTransformations.ImageTransformation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImageTransformations.ImageTransformation.Builder>
implements ImageTransformations.ImageTransformationOrBuilder
Configuration for determining how redaction of images should occur.Protobuf type
google.privacy.dlp.v2.ImageTransformations.ImageTransformation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all text that doesn't match an infoType.The color to use when redacting content from an image.Apply transformation to the selected info_types.Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all text that doesn't match an infoType.Apply transformation to all text that doesn't match an infoType.Apply transformation to all text that doesn't match an infoType.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe 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.Apply transformation to the selected info_types.Apply transformation to the selected info_types.Apply transformation to the selected info_types.booleanApply transformation to all findings not specified in other ImageTransformation's selected_info_types.booleanApply transformation to all text that doesn't match an infoType.booleanThe color to use when redacting content from an image.booleanApply transformation to the selected info_types.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanApply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all text that doesn't match an infoType.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRedactionColor(Color value) The color to use when redacting content from an image.Apply transformation to the selected info_types.Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all findings not specified in other ImageTransformation's selected_info_types.Apply transformation to all text that doesn't match an infoType.setAllText(ImageTransformations.ImageTransformation.AllText.Builder builderForValue) Apply transformation to all text that doesn't match an infoType.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.Apply transformation to the selected info_types.setSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder builderForValue) Apply transformation to the selected info_types.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<ImageTransformations.ImageTransformation.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<ImageTransformations.ImageTransformation.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<ImageTransformations.ImageTransformation.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
public ImageTransformations.ImageTransformation.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImageTransformations.ImageTransformation.Builder>
-
mergeFrom
public ImageTransformations.ImageTransformation.Builder mergeFrom(ImageTransformations.ImageTransformation other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImageTransformations.ImageTransformation.Builder>
-
mergeFrom
public ImageTransformations.ImageTransformation.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<ImageTransformations.ImageTransformation.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfaceImageTransformations.ImageTransformationOrBuilder
-
clearTarget
-
hasSelectedInfoTypes
public boolean hasSelectedInfoTypes()Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;- Specified by:
hasSelectedInfoTypesin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- Whether the selectedInfoTypes field is set.
-
getSelectedInfoTypes
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;- Specified by:
getSelectedInfoTypesin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- The selectedInfoTypes.
-
setSelectedInfoTypes
public ImageTransformations.ImageTransformation.Builder setSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes value) Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; -
setSelectedInfoTypes
public ImageTransformations.ImageTransformation.Builder setSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder builderForValue) Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; -
mergeSelectedInfoTypes
public ImageTransformations.ImageTransformation.Builder mergeSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes value) Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; -
clearSelectedInfoTypes
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; -
getSelectedInfoTypesBuilder
public ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder getSelectedInfoTypesBuilder()Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; -
getSelectedInfoTypesOrBuilder
public ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder getSelectedInfoTypesOrBuilder()Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;- Specified by:
getSelectedInfoTypesOrBuilderin interfaceImageTransformations.ImageTransformationOrBuilder
-
hasAllInfoTypes
public boolean hasAllInfoTypes()Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;- Specified by:
hasAllInfoTypesin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- Whether the allInfoTypes field is set.
-
getAllInfoTypes
Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;- Specified by:
getAllInfoTypesin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- The allInfoTypes.
-
setAllInfoTypes
public ImageTransformations.ImageTransformation.Builder setAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes value) Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; -
setAllInfoTypes
public ImageTransformations.ImageTransformation.Builder setAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes.Builder builderForValue) Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; -
mergeAllInfoTypes
public ImageTransformations.ImageTransformation.Builder mergeAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes value) Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; -
clearAllInfoTypes
Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; -
getAllInfoTypesBuilder
Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; -
getAllInfoTypesOrBuilder
Apply transformation to all findings not specified in other ImageTransformation's selected_info_types. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5;- Specified by:
getAllInfoTypesOrBuilderin interfaceImageTransformations.ImageTransformationOrBuilder
-
hasAllText
public boolean hasAllText()Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;- Specified by:
hasAllTextin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- Whether the allText field is set.
-
getAllText
Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;- Specified by:
getAllTextin interfaceImageTransformations.ImageTransformationOrBuilder- Returns:
- The allText.
-
setAllText
public ImageTransformations.ImageTransformation.Builder setAllText(ImageTransformations.ImageTransformation.AllText value) Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; -
setAllText
public ImageTransformations.ImageTransformation.Builder setAllText(ImageTransformations.ImageTransformation.AllText.Builder builderForValue) Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; -
mergeAllText
public ImageTransformations.ImageTransformation.Builder mergeAllText(ImageTransformations.ImageTransformation.AllText value) Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; -
clearAllText
Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; -
getAllTextBuilder
Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; -
getAllTextOrBuilder
Apply transformation to all text that doesn't match an infoType. Only one instance is allowed within the ImageTransformations message.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6;- Specified by:
getAllTextOrBuilderin interfaceImageTransformations.ImageTransformationOrBuilder
-
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 interfaceImageTransformations.ImageTransformationOrBuilder- 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 interfaceImageTransformations.ImageTransformationOrBuilder- 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 ImageTransformations.ImageTransformation.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 interfaceImageTransformations.ImageTransformationOrBuilder
-