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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.lang.String getParent()
The parent resource name, for example projects/my-project-id.
string parent = 1;
getParent
in interface RedactImageRequestOrBuilder
public ByteString getParentBytes()
The parent resource name, for example projects/my-project-id.
string parent = 1;
getParentBytes
in interface RedactImageRequestOrBuilder
public boolean hasInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;
hasInspectConfig
in interface RedactImageRequestOrBuilder
public InspectConfig getInspectConfig()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;
getInspectConfig
in interface RedactImageRequestOrBuilder
public InspectConfigOrBuilder getInspectConfigOrBuilder()
Configuration for the inspector.
.google.privacy.dlp.v2beta2.InspectConfig inspect_config = 2;
getInspectConfigOrBuilder
in interface RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public ByteString getImageData()
The bytes of the image to redact.
bytes image_data = 4;
getImageData
in interface RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public 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 RedactImageRequestOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static RedactImageRequest parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static RedactImageRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RedactImageRequest parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RedactImageRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static RedactImageRequest parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static RedactImageRequest parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static RedactImageRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public RedactImageRequest.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static RedactImageRequest.Builder newBuilder()
public static RedactImageRequest.Builder newBuilder(RedactImageRequest prototype)
public RedactImageRequest.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected RedactImageRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static RedactImageRequest getDefaultInstance()
public static Parser<RedactImageRequest> parser()
public Parser<RedactImageRequest> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public RedactImageRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder