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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public ImageTransformations.ImageTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ImageTransformations.ImageTransformation build()
public ImageTransformations.ImageTransformation buildPartial()
public ImageTransformations.ImageTransformation.Builder clear()
Overrides
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;
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;
public ImageTransformations.ImageTransformation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ImageTransformations.ImageTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public ImageTransformations.ImageTransformation.Builder clearSelectedInfoTypes()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
public ImageTransformations.ImageTransformation.Builder clearTarget()
public ImageTransformations.ImageTransformation.Builder clone()
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;
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;
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;
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;
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;
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;
public ImageTransformations.ImageTransformation getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 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;
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;
public ImageTransformations.ImageTransformation.SelectedInfoTypes getSelectedInfoTypes()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
public ImageTransformations.ImageTransformation.SelectedInfoTypes.Builder getSelectedInfoTypesBuilder()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
public ImageTransformations.ImageTransformation.SelectedInfoTypesOrBuilder getSelectedInfoTypesOrBuilder()
Apply transformation to the selected info_types.
.google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4;
public ImageTransformations.ImageTransformation.TargetCase getTargetCase()
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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;
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;
public ImageTransformations.ImageTransformation.Builder mergeFrom(ImageTransformations.ImageTransformation other)
public ImageTransformations.ImageTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ImageTransformations.ImageTransformation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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 |
---|
Name | Description |
value | Color
|
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;
public final ImageTransformations.ImageTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
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;
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;
public ImageTransformations.ImageTransformation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
---|
Name | Description |
value | Color
|
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;
public ImageTransformations.ImageTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
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;
public final ImageTransformations.ImageTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides