Class ImageTransformations.ImageTransformation (3.47.0)

public static final class ImageTransformations.ImageTransformation extends GeneratedMessageV3 implements ImageTransformations.ImageTransformationOrBuilder

Configuration for determining how redaction of images should occur.

Protobuf type google.privacy.dlp.v2.ImageTransformations.ImageTransformation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ImageTransformations.ImageTransformation

Static Fields

ALL_INFO_TYPES_FIELD_NUMBER

public static final int ALL_INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

ALL_TEXT_FIELD_NUMBER

public static final int ALL_TEXT_FIELD_NUMBER
Field Value
Type Description
int

REDACTION_COLOR_FIELD_NUMBER

public static final int REDACTION_COLOR_FIELD_NUMBER
Field Value
Type Description
int

SELECTED_INFO_TYPES_FIELD_NUMBER

public static final int SELECTED_INFO_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImageTransformations.ImageTransformation getDefaultInstance()
Returns
Type Description
ImageTransformations.ImageTransformation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ImageTransformations.ImageTransformation.Builder newBuilder()
Returns
Type Description
ImageTransformations.ImageTransformation.Builder

newBuilder(ImageTransformations.ImageTransformation prototype)

public static ImageTransformations.ImageTransformation.Builder newBuilder(ImageTransformations.ImageTransformation prototype)
Parameter
Name Description
prototype ImageTransformations.ImageTransformation
Returns
Type Description
ImageTransformations.ImageTransformation.Builder

parseDelimitedFrom(InputStream input)

public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImageTransformations.ImageTransformation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageTransformations.ImageTransformation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImageTransformations.ImageTransformation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageTransformations.ImageTransformation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImageTransformations.ImageTransformation> parser()
Returns
Type Description
Parser<ImageTransformation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllInfoTypes()

public ImageTransformations.ImageTransformation.AllInfoTypes 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;

Returns
Type Description
ImageTransformations.ImageTransformation.AllInfoTypes

The allInfoTypes.

getAllInfoTypesOrBuilder()

public ImageTransformations.ImageTransformation.AllInfoTypesOrBuilder 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;

Returns
Type Description
ImageTransformations.ImageTransformation.AllInfoTypesOrBuilder

getAllText()

public ImageTransformations.ImageTransformation.AllText 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;

Returns
Type Description
ImageTransformations.ImageTransformation.AllText

The allText.

getAllTextOrBuilder()

public ImageTransformations.ImageTransformation.AllTextOrBuilder 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;

Returns
Type Description
ImageTransformations.ImageTransformation.AllTextOrBuilder

getDefaultInstanceForType()

public ImageTransformations.ImageTransformation getDefaultInstanceForType()
Returns
Type Description
ImageTransformations.ImageTransformation

getParserForType()

public Parser<ImageTransformations.ImageTransformation> getParserForType()
Returns
Type Description
Parser<ImageTransformation>
Overrides

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;

Returns
Type Description
Color

The redactionColor.

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;

Returns
Type Description
ColorOrBuilder

getSelectedInfoTypes()

public ImageTransformations.ImageTransformation.SelectedInfoTypes getSelectedInfoTypes()

Apply transformation to the selected info_types.

.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;

Returns
Type Description
ImageTransformations.ImageTransformation.SelectedInfoTypes

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;

Returns
Type Description
ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetCase()

public ImageTransformations.ImageTransformation.TargetCase getTargetCase()
Returns
Type Description
ImageTransformations.ImageTransformation.TargetCase

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;

Returns
Type Description
boolean

Whether the allInfoTypes field is set.

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;

Returns
Type Description
boolean

Whether the allText field is set.

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;

Returns
Type Description
boolean

Whether the redactionColor field is set.

hasSelectedInfoTypes()

public boolean hasSelectedInfoTypes()

Apply transformation to the selected info_types.

.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;

Returns
Type Description
boolean

Whether the selectedInfoTypes field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImageTransformations.ImageTransformation.Builder newBuilderForType()
Returns
Type Description
ImageTransformations.ImageTransformation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImageTransformations.ImageTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImageTransformations.ImageTransformation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ImageTransformations.ImageTransformation.Builder toBuilder()
Returns
Type Description
ImageTransformations.ImageTransformation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException