Send feedback
Class RedactImageResponse.Builder (3.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.6.0 keyboard_arrow_down
public static final class RedactImageResponse . Builder extends GeneratedMessageV3 . Builder<RedactImageResponse . Builder > implements RedactImageResponseOrBuilder
Results of redacting an image.
Protobuf type google.privacy.dlp.v2.RedactImageResponse
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RedactImageResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public RedactImageResponse build ()
Returns
buildPartial()
public RedactImageResponse buildPartial ()
Returns
clear()
public RedactImageResponse . Builder clear ()
Returns
Overrides
public RedactImageResponse . Builder 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
clearField(Descriptors.FieldDescriptor field)
public RedactImageResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearInspectResult()
public RedactImageResponse . Builder clearInspectResult ()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public RedactImageResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearRedactedImage()
public RedactImageResponse . Builder clearRedactedImage ()
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;
Returns
clone()
public RedactImageResponse . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public RedactImageResponse getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public String 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;
Returns
Type Description String The extractedText.
public 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;
Returns
Type Description ByteString The bytes for extractedText.
getInspectResult()
public InspectResult getInspectResult ()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
getInspectResultBuilder()
public InspectResult . Builder getInspectResultBuilder ()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
getInspectResultOrBuilder()
public InspectResultOrBuilder getInspectResultOrBuilder ()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
getRedactedImage()
public ByteString getRedactedImage ()
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;
Returns
hasInspectResult()
public boolean hasInspectResult ()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
Type Description boolean Whether the inspectResult field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(RedactImageResponse other)
public RedactImageResponse . Builder mergeFrom ( RedactImageResponse other )
Parameter
Returns
public RedactImageResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public RedactImageResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeInspectResult(InspectResult value)
public RedactImageResponse . Builder mergeInspectResult ( InspectResult value )
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public RedactImageResponse . Builder 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.
string extracted_text = 2;
Parameter
Name Description value String
The extractedText to set.
Returns
public RedactImageResponse . Builder setExtractedTextBytes ( 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.
string extracted_text = 2;
Parameter
Name Description value ByteString
The bytes for extractedText to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public RedactImageResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setInspectResult(InspectResult value)
public RedactImageResponse . Builder setInspectResult ( InspectResult value )
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Parameter
Returns
setInspectResult(InspectResult.Builder builderForValue)
public RedactImageResponse . Builder setInspectResult ( InspectResult . Builder builderForValue )
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Parameter
Returns
setRedactedImage(ByteString value)
public RedactImageResponse . Builder setRedactedImage ( ByteString value )
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;
Parameter
Name Description value ByteString
The redactedImage to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RedactImageResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]