Package com.google.privacy.dlp.v2
Class ImageTransformations.ImageTransformation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation
- All Implemented Interfaces:
ImageTransformations.ImageTransformationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ImageTransformations
public static final class ImageTransformations.ImageTransformation
extends com.google.protobuf.GeneratedMessage
implements ImageTransformations.ImageTransformationOrBuilder
Configuration for determining how redaction of images should occur.Protobuf type
google.privacy.dlp.v2.ImageTransformations.ImageTransformation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classApply transformation to all findings.static interfacestatic final classApply to all text.static interfacestatic final classConfiguration for determining how redaction of images should occur.static final classApply transformation to the selected info_types.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanApply 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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ImageTransformations.ImageTransformation>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.intbooleanApply transformation to all findings not specified in other ImageTransformation's selected_info_types.booleanApply transformation to all text that doesn't match an infoType.inthashCode()booleanThe color to use when redacting content from an image.booleanApply transformation to the selected info_types.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ImageTransformations.ImageTransformation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SELECTED_INFO_TYPES_FIELD_NUMBER
public static final int SELECTED_INFO_TYPES_FIELD_NUMBER- See Also:
-
ALL_INFO_TYPES_FIELD_NUMBER
public static final int ALL_INFO_TYPES_FIELD_NUMBER- See Also:
-
ALL_TEXT_FIELD_NUMBER
public static final int ALL_TEXT_FIELD_NUMBER- See Also:
-
REDACTION_COLOR_FIELD_NUMBER
public static final int REDACTION_COLOR_FIELD_NUMBER- See Also:
-
-
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
-
getTargetCase
- Specified by:
getTargetCasein interfaceImageTransformations.ImageTransformationOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ImageTransformations.ImageTransformation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static ImageTransformations.ImageTransformation.Builder newBuilder(ImageTransformations.ImageTransformation prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ImageTransformations.ImageTransformation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-