public final class RedactImageRequest extends GeneratedMessageV3 implements RedactImageRequestOrBuilder
Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.Protobuf type
google.privacy.dlp.v2beta2.RedactImageRequest| Modifier and Type | Class and Description |
|---|---|
static class |
RedactImageRequest.Builder
Request to search for potentially sensitive info in a list of items
and replace it with a default or provided content.
|
static class |
RedactImageRequest.ImageRedactionConfig
Configuration for determining how redaction of images should occur.
|
static interface |
RedactImageRequest.ImageRedactionConfigOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
IMAGE_DATA_FIELD_NUMBER |
static int |
IMAGE_REDACTION_CONFIGS_FIELD_NUMBER |
static int |
IMAGE_TYPE_FIELD_NUMBER |
static int |
INSPECT_CONFIG_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PARENT_FIELD_NUMBER
public static final int INSPECT_CONFIG_FIELD_NUMBER
public static final int IMAGE_TYPE_FIELD_NUMBER
public static final int IMAGE_DATA_FIELD_NUMBER
public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getParent()
The parent resource name, for example projects/my-project-id.
string parent = 1;getParent in interface RedactImageRequestOrBuilderpublic ByteString getParentBytes()
The parent resource name, for example projects/my-project-id.
string parent = 1;getParentBytes in interface RedactImageRequestOrBuilderpublic boolean hasInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;hasInspectConfig in interface RedactImageRequestOrBuilderpublic InspectConfig getInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;getInspectConfig in interface RedactImageRequestOrBuilderpublic InspectConfigOrBuilder getInspectConfigOrBuilder()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;getInspectConfigOrBuilder in interface RedactImageRequestOrBuilderpublic java.lang.String getImageType()
Type of the content, as defined in Content-Type HTTP header. Supported types are: PNG, JPEG, SVG, & BMP.
string image_type = 3;getImageType in interface RedactImageRequestOrBuilderpublic ByteString getImageTypeBytes()
Type of the content, as defined in Content-Type HTTP header. Supported types are: PNG, JPEG, SVG, & BMP.
string image_type = 3;getImageTypeBytes in interface RedactImageRequestOrBuilderpublic ByteString getImageData()
The bytes of the image to redact.
bytes image_data = 4;getImageData in interface RedactImageRequestOrBuilderpublic java.util.List<RedactImageRequest.ImageRedactionConfig> getImageRedactionConfigsList()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2beta2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;getImageRedactionConfigsList in interface RedactImageRequestOrBuilderpublic java.util.List<? extends RedactImageRequest.ImageRedactionConfigOrBuilder> getImageRedactionConfigsOrBuilderList()
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2beta2.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.v2beta2.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.v2beta2.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.v2beta2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;getImageRedactionConfigsOrBuilder in interface RedactImageRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static RedactImageRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RedactImageRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RedactImageRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RedactImageRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RedactImageRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RedactImageRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RedactImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic RedactImageRequest.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static RedactImageRequest.Builder newBuilder()
public static RedactImageRequest.Builder newBuilder(RedactImageRequest prototype)
public RedactImageRequest.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected RedactImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static RedactImageRequest getDefaultInstance()
public static Parser<RedactImageRequest> parser()
public Parser<RedactImageRequest> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public RedactImageRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder