Class RedactImageResponse.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RedactImageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RedactImageResponse.Builder
Overrides

build()

public RedactImageResponse build()
Returns
TypeDescription
RedactImageResponse

buildPartial()

public RedactImageResponse buildPartial()
Returns
TypeDescription
RedactImageResponse

clear()

public RedactImageResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
RedactImageResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RedactImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RedactImageResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RedactImageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RedactImageResponse.Builder

This builder for chaining.

clone()

public RedactImageResponse.Builder clone()
Returns
TypeDescription
RedactImageResponse.Builder
Overrides

getDefaultInstanceForType()

public RedactImageResponse getDefaultInstanceForType()
Returns
TypeDescription
RedactImageResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InspectResultOrBuilder

getRedactedImage()

public ByteString getRedactedImage()

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

bytes redacted_image = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the inspectResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RedactImageResponse other)

public RedactImageResponse.Builder mergeFrom(RedactImageResponse other)
Parameter
NameDescription
otherRedactImageResponse
Returns
TypeDescription
RedactImageResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RedactImageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RedactImageResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueInspectResult
Returns
TypeDescription
RedactImageResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RedactImageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The extractedText to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for extractedText to set.

Returns
TypeDescription
RedactImageResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RedactImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInspectResult
Returns
TypeDescription
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
NameDescription
builderForValueInspectResult.Builder
Returns
TypeDescription
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
NameDescription
valueByteString

The redactedImage to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RedactImageResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RedactImageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RedactImageResponse.Builder
Overrides