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
Static Fields
public static final int ALL_INFO_TYPES_FIELD_NUMBER
Field Value
ALL_TEXT_FIELD_NUMBER
public static final int ALL_TEXT_FIELD_NUMBER
Field Value
public static final int REDACTION_COLOR_FIELD_NUMBER
Field Value
public static final int SELECTED_INFO_TYPES_FIELD_NUMBER
Field Value
Static Methods
public static ImageTransformations.ImageTransformation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ImageTransformations.ImageTransformation.Builder newBuilder()
Returns
public static ImageTransformations.ImageTransformation.Builder newBuilder(ImageTransformations.ImageTransformation prototype)
Parameter
Returns
public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ImageTransformations.ImageTransformation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ImageTransformations.ImageTransformation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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
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
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
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
public ImageTransformations.ImageTransformation getDefaultInstanceForType()
Returns
public Parser<ImageTransformations.ImageTransformation> getParserForType()
Returns
Overrides
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.
|
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
public ImageTransformations.ImageTransformation.SelectedInfoTypes getSelectedInfoTypes()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
Returns
public ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder getSelectedInfoTypesOrBuilder()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
Returns
public int getSerializedSize()
Returns
Overrides
public ImageTransformations.ImageTransformation.TargetCase getTargetCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
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.
|
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ImageTransformations.ImageTransformation.Builder newBuilderForType()
Returns
protected ImageTransformations.ImageTransformation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ImageTransformations.ImageTransformation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions