Class RedactImageResponse.Builder (3.46.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactImageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactImageResponse.Builder
Overrides

build()

public RedactImageResponse build()
Returns
Type Description
RedactImageResponse

buildPartial()

public RedactImageResponse buildPartial()
Returns
Type Description
RedactImageResponse

clear()

public RedactImageResponse.Builder clear()
Returns
Type Description
RedactImageResponse.Builder
Overrides

clearExtractedText()

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
Type Description
RedactImageResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RedactImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RedactImageResponse.Builder
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
Type Description
RedactImageResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactImageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RedactImageResponse.Builder
Overrides

clearRedactedImage()

public RedactImageResponse.Builder clearRedactedImage()

The redacted image. The type will be the same as the original image.

bytes redacted_image = 1;

Returns
Type Description
RedactImageResponse.Builder

This builder for chaining.

clone()

public RedactImageResponse.Builder clone()
Returns
Type Description
RedactImageResponse.Builder
Overrides

getDefaultInstanceForType()

public RedactImageResponse getDefaultInstanceForType()
Returns
Type Description
RedactImageResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExtractedText()

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.

getExtractedTextBytes()

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
Type Description
InspectResult

The inspectResult.

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
Type Description
InspectResult.Builder

getInspectResultOrBuilder()

public InspectResultOrBuilder getInspectResultOrBuilder()

The findings. Populated when include_findings in the request is true.

.google.privacy.dlp.v2.InspectResult inspect_result = 3;

Returns
Type Description
InspectResultOrBuilder

getRedactedImage()

public ByteString getRedactedImage()

The redacted image. The type will be the same as the original image.

bytes redacted_image = 1;

Returns
Type Description
ByteString

The redactedImage.

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RedactImageResponse other)

public RedactImageResponse.Builder mergeFrom(RedactImageResponse other)
Parameter
Name Description
other RedactImageResponse
Returns
Type Description
RedactImageResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RedactImageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RedactImageResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RedactImageResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RedactImageResponse.Builder
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
Name Description
value InspectResult
Returns
Type Description
RedactImageResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactImageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactImageResponse.Builder
Overrides

setExtractedText(String value)

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
Type Description
RedactImageResponse.Builder

This builder for chaining.

setExtractedTextBytes(ByteString value)

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
Type Description
RedactImageResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RedactImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RedactImageResponse.Builder
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
Name Description
value InspectResult
Returns
Type Description
RedactImageResponse.Builder

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
Name Description
builderForValue InspectResult.Builder
Returns
Type Description
RedactImageResponse.Builder

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
Type Description
RedactImageResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RedactImageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RedactImageResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactImageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RedactImageResponse.Builder
Overrides