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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
BYTE_ITEM_FIELD_NUMBER
public static final int BYTE_ITEM_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INCLUDE_FINDINGS_FIELD_NUMBER
public static final int INCLUDE_FINDINGS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
INSPECT_CONFIG_FIELD_NUMBER
public static final int INSPECT_CONFIG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RedactImageRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RedactImageRequest.Builder newBuilder()
newBuilder(RedactImageRequest prototype)
public static RedactImageRequest.Builder newBuilder(RedactImageRequest prototype)
public static RedactImageRequest parseDelimitedFrom(InputStream input)
public static RedactImageRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RedactImageRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RedactImageRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(CodedInputStream input)
public static RedactImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(InputStream input)
public static RedactImageRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RedactImageRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RedactImageRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RedactImageRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getByteItem()
public ByteContentItem getByteItem()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;
getByteItemOrBuilder()
public ByteContentItemOrBuilder getByteItemOrBuilder()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;
getDefaultInstanceForType()
public RedactImageRequest getDefaultInstanceForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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;
getInspectConfigOrBuilder()
public InspectConfigOrBuilder getInspectConfigOrBuilder()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
getParserForType()
public Parser<RedactImageRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RedactImageRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RedactImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RedactImageRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides