Class ImageTransformations.ImageTransformation.Builder (3.8.0)

public static final class ImageTransformations.ImageTransformation.Builder extends GeneratedMessageV3.Builder<ImageTransformations.ImageTransformation.Builder> implements ImageTransformations.ImageTransformationOrBuilder

Configuration for determining how redaction of images should occur.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageTransformations.ImageTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

build()

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

buildPartial()

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

clear()

public ImageTransformations.ImageTransformation.Builder clear()
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

clearAllInfoTypes()

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

clearAllText()

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

clearField(Descriptors.FieldDescriptor field)

public ImageTransformations.ImageTransformation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageTransformations.ImageTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

clearRedactionColor()

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

clearSelectedInfoTypes()

public ImageTransformations.ImageTransformation.Builder clearSelectedInfoTypes()

Apply transformation to the selected info_types.

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

clearTarget()

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

clone()

public ImageTransformations.ImageTransformation.Builder clone()
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
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.

getAllInfoTypesBuilder()

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.AllInfoTypes.Builder

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.

getAllTextBuilder()

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

Returns
TypeDescription
ImageTransformations.ImageTransformation.AllText.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

getRedactionColorBuilder()

public Color.Builder 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;

Returns
TypeDescription
Color.Builder

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.

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;

Returns
TypeDescription
ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder

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

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.AllInfoTypes
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

mergeAllText(ImageTransformations.ImageTransformation.AllText value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.AllText
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

mergeFrom(ImageTransformations.ImageTransformation other)

public ImageTransformations.ImageTransformation.Builder mergeFrom(ImageTransformations.ImageTransformation other)
Parameter
NameDescription
otherImageTransformations.ImageTransformation
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageTransformations.ImageTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImageTransformations.ImageTransformation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

mergeRedactionColor(Color value)

public ImageTransformations.ImageTransformation.Builder mergeRedactionColor(Color value)

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;

Parameter
NameDescription
valueColor
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

mergeSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.SelectedInfoTypes
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageTransformations.ImageTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

setAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.AllInfoTypes
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setAllInfoTypes(ImageTransformations.ImageTransformation.AllInfoTypes.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueImageTransformations.ImageTransformation.AllInfoTypes.Builder
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setAllText(ImageTransformations.ImageTransformation.AllText value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.AllText
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setAllText(ImageTransformations.ImageTransformation.AllText.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueImageTransformations.ImageTransformation.AllText.Builder
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ImageTransformations.ImageTransformation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

setRedactionColor(Color value)

public ImageTransformations.ImageTransformation.Builder setRedactionColor(Color value)

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;

Parameter
NameDescription
valueColor
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setRedactionColor(Color.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueColor.Builder
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImageTransformations.ImageTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides

setSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes value)

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;

Parameter
NameDescription
valueImageTransformations.ImageTransformation.SelectedInfoTypes
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setSelectedInfoTypes(ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueImageTransformations.ImageTransformation.SelectedInfoTypes.Builder
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageTransformations.ImageTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageTransformations.ImageTransformation.Builder
Overrides