public static final class RedactImageRequest.ImageRedactionConfig extends com.google.protobuf.GeneratedMessageV3 implements RedactImageRequest.ImageRedactionConfigOrBuilder
Configuration for determining how redaction of images should occur.Protobuf type
google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig| Modifier and Type | Class and Description |
|---|---|
static class |
RedactImageRequest.ImageRedactionConfig.Builder
Configuration for determining how redaction of images should occur.
|
static class |
RedactImageRequest.ImageRedactionConfig.TargetCase |
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 |
INFO_TYPE_FIELD_NUMBER |
static int |
REDACT_ALL_TEXT_FIELD_NUMBER |
static int |
REDACTION_COLOR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RedactImageRequest.ImageRedactionConfig |
getDefaultInstance() |
RedactImageRequest.ImageRedactionConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
InfoType |
getInfoType()
Only one per info_type should be provided per request.
|
InfoTypeOrBuilder |
getInfoTypeOrBuilder()
Only one per info_type should be provided per request.
|
com.google.protobuf.Parser<RedactImageRequest.ImageRedactionConfig> |
getParserForType() |
boolean |
getRedactAllText()
If true, all text found in the image, regardless whether it matches an
info_type, is redacted.
|
Color |
getRedactionColor()
The color to use when redacting content from an image.
|
ColorOrBuilder |
getRedactionColorOrBuilder()
The color to use when redacting content from an image.
|
int |
getSerializedSize() |
RedactImageRequest.ImageRedactionConfig.TargetCase |
getTargetCase() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasInfoType()
Only one per info_type should be provided per request.
|
boolean |
hasRedactAllText()
If true, all text found in the image, regardless whether it matches an
info_type, is redacted.
|
boolean |
hasRedactionColor()
The color to use when redacting content from an image.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RedactImageRequest.ImageRedactionConfig.Builder |
newBuilder() |
static RedactImageRequest.ImageRedactionConfig.Builder |
newBuilder(RedactImageRequest.ImageRedactionConfig prototype) |
RedactImageRequest.ImageRedactionConfig.Builder |
newBuilderForType() |
protected RedactImageRequest.ImageRedactionConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RedactImageRequest.ImageRedactionConfig |
parseDelimitedFrom(InputStream input) |
static RedactImageRequest.ImageRedactionConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(byte[] data) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(ByteBuffer data) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(com.google.protobuf.ByteString data) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(InputStream input) |
static RedactImageRequest.ImageRedactionConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RedactImageRequest.ImageRedactionConfig> |
parser() |
RedactImageRequest.ImageRedactionConfig.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 INFO_TYPE_FIELD_NUMBER
public static final int REDACT_ALL_TEXT_FIELD_NUMBER
public static final int REDACTION_COLOR_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 RedactImageRequest.ImageRedactionConfig.TargetCase getTargetCase()
getTargetCase in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic boolean hasInfoType()
Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.
.google.privacy.dlp.v2.InfoType info_type = 1;hasInfoType in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic InfoType getInfoType()
Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.
.google.privacy.dlp.v2.InfoType info_type = 1;getInfoType in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic InfoTypeOrBuilder getInfoTypeOrBuilder()
Only one per info_type should be provided per request. If not specified, and redact_all_text is false, the DLP API will redact all text that it matches against all info_types that are found, but not specified in another ImageRedactionConfig.
.google.privacy.dlp.v2.InfoType info_type = 1;getInfoTypeOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic boolean hasRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.
bool redact_all_text = 2;hasRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic boolean getRedactAllText()
If true, all text found in the image, regardless whether it matches an info_type, is redacted. Only one should be provided.
bool redact_all_text = 2;getRedactAllText in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic boolean hasRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2.Color redaction_color = 3;hasRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic Color getRedactionColor()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2.Color redaction_color = 3;getRedactionColor in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic ColorOrBuilder getRedactionColorOrBuilder()
The color to use when redacting content from an image. If not specified, the default is black.
.google.privacy.dlp.v2.Color redaction_color = 3;getRedactionColorOrBuilder in interface RedactImageRequest.ImageRedactionConfigOrBuilderpublic 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.ImageRedactionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RedactImageRequest.ImageRedactionConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RedactImageRequest.ImageRedactionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RedactImageRequest.ImageRedactionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RedactImageRequest.ImageRedactionConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RedactImageRequest.ImageRedactionConfig.Builder newBuilder()
public static RedactImageRequest.ImageRedactionConfig.Builder newBuilder(RedactImageRequest.ImageRedactionConfig prototype)
public RedactImageRequest.ImageRedactionConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RedactImageRequest.ImageRedactionConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RedactImageRequest.ImageRedactionConfig getDefaultInstance()
public static com.google.protobuf.Parser<RedactImageRequest.ImageRedactionConfig> parser()
public com.google.protobuf.Parser<RedactImageRequest.ImageRedactionConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RedactImageRequest.ImageRedactionConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.