public final class RedactImageRequest extends GeneratedMessageV3 implements RedactImageRequestOrBuilder
Request to search for potentially sensitive info in an image and redact it
by covering it with a colored rectangle.
Protobuf type google.privacy.dlp.v2.RedactImageRequest
Static Fields
BYTE_ITEM_FIELD_NUMBER
public static final int BYTE_ITEM_FIELD_NUMBER
Field Value
IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
Field Value
INCLUDE_FINDINGS_FIELD_NUMBER
public static final int INCLUDE_FINDINGS_FIELD_NUMBER
Field Value
INSPECT_CONFIG_FIELD_NUMBER
public static final int INSPECT_CONFIG_FIELD_NUMBER
Field Value
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RedactImageRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RedactImageRequest.Builder newBuilder()
Returns
newBuilder(RedactImageRequest prototype)
public static RedactImageRequest.Builder newBuilder(RedactImageRequest prototype)
Parameter
Returns
public static RedactImageRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RedactImageRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RedactImageRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RedactImageRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RedactImageRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RedactImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RedactImageRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RedactImageRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RedactImageRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RedactImageRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getByteItem()
public ByteContentItem getByteItem()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;
Returns
getByteItemOrBuilder()
public ByteContentItemOrBuilder getByteItemOrBuilder()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;
Returns
getDefaultInstanceForType()
public RedactImageRequest getDefaultInstanceForType()
Returns
getImageRedactionConfigs(int index)
public RedactImageRequest.ImageRedactionConfig getImageRedactionConfigs(int index)
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
Parameter
Returns
getImageRedactionConfigsCount()
public int getImageRedactionConfigsCount()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
Returns
getImageRedactionConfigsList()
public List<RedactImageRequest.ImageRedactionConfig> getImageRedactionConfigsList()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
Returns
getImageRedactionConfigsOrBuilder(int index)
public RedactImageRequest.ImageRedactionConfigOrBuilder getImageRedactionConfigsOrBuilder(int index)
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
Parameter
Returns
getImageRedactionConfigsOrBuilderList()
public List<? extends RedactImageRequest.ImageRedactionConfigOrBuilder> getImageRedactionConfigsOrBuilderList()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
Returns
Type | Description |
List<? extends com.google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfigOrBuilder> | |
getIncludeFindings()
public boolean getIncludeFindings()
Whether the response should include findings along with the redacted
image.
bool include_findings = 6;
Returns
Type | Description |
boolean | The includeFindings.
|
getInspectConfig()
public InspectConfig getInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
Returns
getInspectConfigOrBuilder()
public InspectConfigOrBuilder getInspectConfigOrBuilder()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
Returns
getLocationId()
public String getLocationId()
Deprecated. This field has no effect.
string location_id = 8;
Returns
Type | Description |
String | The locationId.
|
getLocationIdBytes()
public ByteString getLocationIdBytes()
Deprecated. This field has no effect.
string location_id = 8;
Returns
Type | Description |
ByteString | The bytes for locationId.
|
getParent()
public String getParent()
Parent resource name.
The format of this value varies depending on whether you have specified a
processing
location:
- Projects scope, location specified:<br/>
projects/
<var>PROJECT_ID</var>/locations/
<var>LOCATION_ID</var>
- Projects scope, no location specified (defaults to global):<br/>
projects/
<var>PROJECT_ID</var>
The following example parent
string specifies a parent project with the
identifier example-project
, and specifies the europe-west3
location
for processing data:
parent=projects/example-project/locations/europe-west3
string parent = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Parent resource name.
The format of this value varies depending on whether you have specified a
processing
location:
- Projects scope, location specified:<br/>
projects/
<var>PROJECT_ID</var>/locations/
<var>LOCATION_ID</var>
- Projects scope, no location specified (defaults to global):<br/>
projects/
<var>PROJECT_ID</var>
The following example parent
string specifies a parent project with the
identifier example-project
, and specifies the europe-west3
location
for processing data:
parent=projects/example-project/locations/europe-west3
string parent = 1 [(.google.api.resource_reference) = { ... }
Returns
getParserForType()
public Parser<RedactImageRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasByteItem()
public boolean hasByteItem()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;
Returns
Type | Description |
boolean | Whether the byteItem field is set.
|
hasInspectConfig()
public boolean hasInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
Returns
Type | Description |
boolean | Whether the inspectConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RedactImageRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RedactImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RedactImageRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions