Package com.google.privacy.dlp.v2
Class RedactImageResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder>
com.google.privacy.dlp.v2.RedactImageResponse.Builder
- All Implemented Interfaces:
RedactImageResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RedactImageResponse
public static final class RedactImageResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder>
implements RedactImageResponseOrBuilder
Results of redacting an image.Protobuf type
google.privacy.dlp.v2.RedactImageResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.The findings.The redacted image.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.com.google.protobuf.ByteStringIf an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.The findings.The findings.The findings.com.google.protobuf.ByteStringThe redacted image.booleanThe findings.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(RedactImageResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInspectResult(InspectResult value) The findings.setExtractedText(String value) If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.setExtractedTextBytes(com.google.protobuf.ByteString value) If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.setInspectResult(InspectResult value) The findings.setInspectResult(InspectResult.Builder builderForValue) The findings.setRedactedImage(com.google.protobuf.ByteString value) The redacted image.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<RedactImageResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedactImageResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RedactImageResponse.Builder>
-
mergeFrom
public RedactImageResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RedactImageResponse.Builder>- Throws:
IOException
-
getRedactedImage
public com.google.protobuf.ByteString getRedactedImage()The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;- Specified by:
getRedactedImagein interfaceRedactImageResponseOrBuilder- Returns:
- The redactedImage.
-
setRedactedImage
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;- Parameters:
value- The redactedImage to set.- Returns:
- This builder for chaining.
-
clearRedactedImage
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;- Returns:
- This builder for chaining.
-
getExtractedText
If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.
string extracted_text = 2;- Specified by:
getExtractedTextin interfaceRedactImageResponseOrBuilder- Returns:
- The extractedText.
-
getExtractedTextBytes
public com.google.protobuf.ByteString getExtractedTextBytes()If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.
string extracted_text = 2;- Specified by:
getExtractedTextBytesin interfaceRedactImageResponseOrBuilder- Returns:
- The bytes for extractedText.
-
setExtractedText
If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.
string extracted_text = 2;- Parameters:
value- The extractedText to set.- Returns:
- This builder for chaining.
-
clearExtractedText
If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.
string extracted_text = 2;- Returns:
- This builder for chaining.
-
setExtractedTextBytes
If an image was being inspected and the InspectConfig's include_quote was set to true, then this field will include all text, if any, that was found in the image.
string extracted_text = 2;- Parameters:
value- The bytes for extractedText to set.- Returns:
- This builder for chaining.
-
hasInspectResult
public boolean hasInspectResult()The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;- Specified by:
hasInspectResultin interfaceRedactImageResponseOrBuilder- Returns:
- Whether the inspectResult field is set.
-
getInspectResult
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;- Specified by:
getInspectResultin interfaceRedactImageResponseOrBuilder- Returns:
- The inspectResult.
-
setInspectResult
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3; -
setInspectResult
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3; -
mergeInspectResult
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3; -
clearInspectResult
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3; -
getInspectResultBuilder
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3; -
getInspectResultOrBuilder
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;- Specified by:
getInspectResultOrBuilderin interfaceRedactImageResponseOrBuilder
-