Class ImageTransformations.ImageTransformation (3.40.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
TypeDescription
int

ALL_TEXT_FIELD_NUMBER

public static final int ALL_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

REDACTION_COLOR_FIELD_NUMBER

public static final int REDACTION_COLOR_FIELD_NUMBER
Field Value
TypeDescription
int

SELECTED_INFO_TYPES_FIELD_NUMBER

public static final int SELECTED_INFO_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImageTransformations.ImageTransformation getDefaultInstance()
Returns
TypeDescription
ImageTransformations.ImageTransformation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImageTransformations.ImageTransformation.Builder newBuilder()
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

newBuilder(ImageTransformations.ImageTransformation prototype)

public static ImageTransformations.ImageTransformation.Builder newBuilder(ImageTransformations.ImageTransformation prototype)
Parameter
NameDescription
prototypeImageTransformations.ImageTransformation
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

parseDelimitedFrom(InputStream input)

public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImageTransformations.ImageTransformation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageTransformations.ImageTransformation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImageTransformations.ImageTransformation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImageTransformations.ImageTransformation.AllTextOrBuilder

getDefaultInstanceForType()

public ImageTransformations.ImageTransformation getDefaultInstanceForType()
Returns
TypeDescription
ImageTransformations.ImageTransformation

getParserForType()

public Parser<ImageTransformations.ImageTransformation> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetCase()

public ImageTransformations.ImageTransformation.TargetCase getTargetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the selectedInfoTypes field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImageTransformations.ImageTransformation.Builder newBuilderForType()
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImageTransformations.ImageTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ImageTransformations.ImageTransformation.Builder toBuilder()
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException