public final class RedactImageRequest extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
RedactImageRequest.Builder
Request to search for potentially sensitive info in an image and redact it
by covering it with a colored rectangle.
|
static class |
RedactImageRequest.ImageRedactionConfig
Configuration for determining how redaction of images should occur.
|
static interface |
RedactImageRequest.ImageRedactionConfigOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_ITEM_FIELD_NUMBER |
static int |
IMAGE_REDACTION_CONFIGS_FIELD_NUMBER |
static int |
INCLUDE_FINDINGS_FIELD_NUMBER |
static int |
INSPECT_CONFIG_FIELD_NUMBER |
static int |
LOCATION_ID_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ByteContentItem |
getByteItem()
The content must be PNG, JPEG, SVG or BMP.
|
ByteContentItemOrBuilder |
getByteItemOrBuilder()
The content must be PNG, JPEG, SVG or BMP.
|
static RedactImageRequest |
getDefaultInstance() |
RedactImageRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
RedactImageRequest.ImageRedactionConfig |
getImageRedactionConfigs(int index)
The configuration for specifying what content to redact from images.
|
int |
getImageRedactionConfigsCount()
The configuration for specifying what content to redact from images.
|
List<RedactImageRequest.ImageRedactionConfig> |
getImageRedactionConfigsList()
The configuration for specifying what content to redact from images.
|
RedactImageRequest.ImageRedactionConfigOrBuilder |
getImageRedactionConfigsOrBuilder(int index)
The configuration for specifying what content to redact from images.
|
List<? extends RedactImageRequest.ImageRedactionConfigOrBuilder> |
getImageRedactionConfigsOrBuilderList()
The configuration for specifying what content to redact from images.
|
boolean |
getIncludeFindings()
Whether the response should include findings along with the redacted
image.
|
InspectConfig |
getInspectConfig()
Configuration for the inspector.
|
InspectConfigOrBuilder |
getInspectConfigOrBuilder()
Configuration for the inspector.
|
String |
getLocationId()
Deprecated.
|
com.google.protobuf.ByteString |
getLocationIdBytes()
Deprecated.
|
String |
getParent()
Parent resource name.
|
com.google.protobuf.ByteString |
getParentBytes()
Parent resource name.
|
com.google.protobuf.Parser<RedactImageRequest> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasByteItem()
The content must be PNG, JPEG, SVG or BMP.
|
int |
hashCode() |
boolean |
hasInspectConfig()
Configuration for the inspector.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RedactImageRequest.Builder |
newBuilder() |
static RedactImageRequest.Builder |
newBuilder(RedactImageRequest prototype) |
RedactImageRequest.Builder |
newBuilderForType() |
protected RedactImageRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RedactImageRequest |
parseDelimitedFrom(InputStream input) |
static RedactImageRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest |
parseFrom(byte[] data) |
static RedactImageRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest |
parseFrom(ByteBuffer data) |
static RedactImageRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest |
parseFrom(com.google.protobuf.ByteString data) |
static RedactImageRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RedactImageRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest |
parseFrom(InputStream input) |
static RedactImageRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RedactImageRequest> |
parser() |
RedactImageRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PARENT_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
public static final int INSPECT_CONFIG_FIELD_NUMBER
public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
public static final int INCLUDE_FINDINGS_FIELD_NUMBER
public static final int BYTE_ITEM_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getParent()
Parent resource name.
The format of this value varies depending on whether you have [specified a
processing
location](https://cloud.google.com/dlp/docs/specifying-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) = { ... }getParent in interface RedactImageRequestOrBuilderpublic com.google.protobuf.ByteString getParentBytes()
Parent resource name.
The format of this value varies depending on whether you have [specified a
processing
location](https://cloud.google.com/dlp/docs/specifying-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) = { ... }getParentBytes in interface RedactImageRequestOrBuilderpublic String getLocationId()
Deprecated. This field has no effect.
string location_id = 8;getLocationId in interface RedactImageRequestOrBuilderpublic com.google.protobuf.ByteString getLocationIdBytes()
Deprecated. This field has no effect.
string location_id = 8;getLocationIdBytes in interface RedactImageRequestOrBuilderpublic boolean hasInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;hasInspectConfig in interface RedactImageRequestOrBuilderpublic InspectConfig getInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;getInspectConfig in interface RedactImageRequestOrBuilderpublic InspectConfigOrBuilder getInspectConfigOrBuilder()
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;getInspectConfigOrBuilder in interface RedactImageRequestOrBuilderpublic 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;
getImageRedactionConfigsList in interface RedactImageRequestOrBuilderpublic 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;
getImageRedactionConfigsOrBuilderList in interface RedactImageRequestOrBuilderpublic int getImageRedactionConfigsCount()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
getImageRedactionConfigsCount in interface RedactImageRequestOrBuilderpublic 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;
getImageRedactionConfigs in interface RedactImageRequestOrBuilderpublic 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;
getImageRedactionConfigsOrBuilder in interface RedactImageRequestOrBuilderpublic boolean getIncludeFindings()
Whether the response should include findings along with the redacted image.
bool include_findings = 6;getIncludeFindings in interface RedactImageRequestOrBuilderpublic boolean hasByteItem()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;hasByteItem in interface RedactImageRequestOrBuilderpublic ByteContentItem getByteItem()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;getByteItem in interface RedactImageRequestOrBuilderpublic ByteContentItemOrBuilder getByteItemOrBuilder()
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;getByteItemOrBuilder in interface RedactImageRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RedactImageRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static RedactImageRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RedactImageRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RedactImageRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RedactImageRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RedactImageRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RedactImageRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RedactImageRequest.Builder newBuilder()
public static RedactImageRequest.Builder newBuilder(RedactImageRequest prototype)
public RedactImageRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RedactImageRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RedactImageRequest getDefaultInstance()
public static com.google.protobuf.Parser<RedactImageRequest> parser()
public com.google.protobuf.Parser<RedactImageRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RedactImageRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.