Package com.google.privacy.dlp.v2
Class RedactImageRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.RedactImageRequest
- All Implemented Interfaces:
RedactImageRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RedactImageRequest
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest to search for potentially sensitive info in an image and redact it by covering it with a colored rectangle.static final classConfiguration for determining how redaction of images should occur.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe content must be PNG, JPEG, SVG or BMP.The content must be PNG, JPEG, SVG or BMP.static RedactImageRequestThe full resource name of the de-identification template to use.com.google.protobuf.ByteStringThe full resource name of the de-identification template to use.static final com.google.protobuf.Descriptors.DescriptorgetImageRedactionConfigs(int index) The configuration for specifying what content to redact from images.intThe configuration for specifying what content to redact from images.The configuration for specifying what content to redact from images.getImageRedactionConfigsOrBuilder(int index) The configuration for specifying what content to redact from images.The configuration for specifying what content to redact from images.booleanWhether the response should include findings along with the redacted image.Configuration for the inspector.Configuration for the inspector.The full resource name of the inspection template to use.com.google.protobuf.ByteStringThe full resource name of the inspection template to use.Deprecated.com.google.protobuf.ByteStringDeprecated.Parent resource name.com.google.protobuf.ByteStringParent resource name.com.google.protobuf.Parser<RedactImageRequest>intbooleanThe content must be PNG, JPEG, SVG or BMP.inthashCode()booleanConfiguration for the inspector.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RedactImageRequest.Builderstatic RedactImageRequest.BuildernewBuilder(RedactImageRequest prototype) protected RedactImageRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RedactImageRequestparseDelimitedFrom(InputStream input) static RedactImageRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RedactImageRequestparseFrom(byte[] data) static RedactImageRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RedactImageRequestparseFrom(com.google.protobuf.ByteString data) static RedactImageRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RedactImageRequestparseFrom(com.google.protobuf.CodedInputStream input) static RedactImageRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RedactImageRequestparseFrom(InputStream input) static RedactImageRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RedactImageRequestparseFrom(ByteBuffer data) static RedactImageRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RedactImageRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER- See Also:
-
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER- See Also:
-
INSPECT_CONFIG_FIELD_NUMBER
public static final int INSPECT_CONFIG_FIELD_NUMBER- See Also:
-
IMAGE_REDACTION_CONFIGS_FIELD_NUMBER
public static final int IMAGE_REDACTION_CONFIGS_FIELD_NUMBER- See Also:
-
INCLUDE_FINDINGS_FIELD_NUMBER
public static final int INCLUDE_FINDINGS_FIELD_NUMBER- See Also:
-
BYTE_ITEM_FIELD_NUMBER
public static final int BYTE_ITEM_FIELD_NUMBER- See Also:
-
INSPECT_TEMPLATE_FIELD_NUMBER
public static final int INSPECT_TEMPLATE_FIELD_NUMBER- See Also:
-
DEIDENTIFY_TEMPLATE_FIELD_NUMBER
public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getParent
Parent resource name. The format of this value varies depending on whether you have [specified a processing location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + Projects scope, no location specified (defaults to global): `projects/{project_id}` 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-west3string parent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceRedactImageRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public 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/sensitive-data-protection/docs/specifying-location): + Projects scope, location specified: `projects/{project_id}/locations/{location_id}` + Projects scope, no location specified (defaults to global): `projects/{project_id}` 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-west3string parent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceRedactImageRequestOrBuilder- Returns:
- The bytes for parent.
-
getLocationId
Deprecated. This field has no effect.
string location_id = 8;- Specified by:
getLocationIdin interfaceRedactImageRequestOrBuilder- Returns:
- The locationId.
-
getLocationIdBytes
public com.google.protobuf.ByteString getLocationIdBytes()Deprecated. This field has no effect.
string location_id = 8;- Specified by:
getLocationIdBytesin interfaceRedactImageRequestOrBuilder- Returns:
- The bytes for locationId.
-
hasInspectConfig
public boolean hasInspectConfig()Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;- Specified by:
hasInspectConfigin interfaceRedactImageRequestOrBuilder- Returns:
- Whether the inspectConfig field is set.
-
getInspectConfig
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;- Specified by:
getInspectConfigin interfaceRedactImageRequestOrBuilder- Returns:
- The inspectConfig.
-
getInspectConfigOrBuilder
Configuration for the inspector.
.google.privacy.dlp.v2.InspectConfig inspect_config = 2;- Specified by:
getInspectConfigOrBuilderin interfaceRedactImageRequestOrBuilder
-
getImageRedactionConfigsList
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;- Specified by:
getImageRedactionConfigsListin interfaceRedactImageRequestOrBuilder
-
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;- Specified by:
getImageRedactionConfigsOrBuilderListin interfaceRedactImageRequestOrBuilder
-
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;- Specified by:
getImageRedactionConfigsCountin interfaceRedactImageRequestOrBuilder
-
getImageRedactionConfigs
The configuration for specifying what content to redact from images.
repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;- Specified by:
getImageRedactionConfigsin interfaceRedactImageRequestOrBuilder
-
getImageRedactionConfigsOrBuilder
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;- Specified by:
getImageRedactionConfigsOrBuilderin interfaceRedactImageRequestOrBuilder
-
getIncludeFindings
public boolean getIncludeFindings()Whether the response should include findings along with the redacted image.
bool include_findings = 6;- Specified by:
getIncludeFindingsin interfaceRedactImageRequestOrBuilder- Returns:
- The includeFindings.
-
hasByteItem
public boolean hasByteItem()The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;- Specified by:
hasByteItemin interfaceRedactImageRequestOrBuilder- Returns:
- Whether the byteItem field is set.
-
getByteItem
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;- Specified by:
getByteItemin interfaceRedactImageRequestOrBuilder- Returns:
- The byteItem.
-
getByteItemOrBuilder
The content must be PNG, JPEG, SVG or BMP.
.google.privacy.dlp.v2.ByteContentItem byte_item = 7;- Specified by:
getByteItemOrBuilderin interfaceRedactImageRequestOrBuilder
-
getInspectTemplate
The full resource name of the inspection template to use. Settings in the main `inspect_config` field override the corresponding settings in this inspection template. The merge behavior is as follows: - Singular field: The main field's value replaces the value of the corresponding field in the template. - Repeated fields: The field values are appended to the list defined in the template. - Sub-messages and groups: The fields are recursively merged.
string inspect_template = 9;- Specified by:
getInspectTemplatein interfaceRedactImageRequestOrBuilder- Returns:
- The inspectTemplate.
-
getInspectTemplateBytes
public com.google.protobuf.ByteString getInspectTemplateBytes()The full resource name of the inspection template to use. Settings in the main `inspect_config` field override the corresponding settings in this inspection template. The merge behavior is as follows: - Singular field: The main field's value replaces the value of the corresponding field in the template. - Repeated fields: The field values are appended to the list defined in the template. - Sub-messages and groups: The fields are recursively merged.
string inspect_template = 9;- Specified by:
getInspectTemplateBytesin interfaceRedactImageRequestOrBuilder- Returns:
- The bytes for inspectTemplate.
-
getDeidentifyTemplate
The full resource name of the de-identification template to use. Settings in the main `image_redaction_configs` field override the corresponding settings in this de-identification template. The request fails if the type of the template's deidentify_config is not image_transformations.
string deidentify_template = 10;- Specified by:
getDeidentifyTemplatein interfaceRedactImageRequestOrBuilder- Returns:
- The deidentifyTemplate.
-
getDeidentifyTemplateBytes
public com.google.protobuf.ByteString getDeidentifyTemplateBytes()The full resource name of the de-identification template to use. Settings in the main `image_redaction_configs` field override the corresponding settings in this de-identification template. The request fails if the type of the template's deidentify_config is not image_transformations.
string deidentify_template = 10;- Specified by:
getDeidentifyTemplateBytesin interfaceRedactImageRequestOrBuilder- Returns:
- The bytes for deidentifyTemplate.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RedactImageRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RedactImageRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RedactImageRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RedactImageRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RedactImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RedactImageRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RedactImageRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RedactImageRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RedactImageRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RedactImageRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RedactImageRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-