Class RedactImageResponse (3.7.2)

public final class RedactImageResponse extends GeneratedMessageV3 implements RedactImageResponseOrBuilder

Results of redacting an image.

Protobuf type google.privacy.dlp.v2.RedactImageResponse

Static Fields

EXTRACTED_TEXT_FIELD_NUMBER

public static final int EXTRACTED_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

INSPECT_RESULT_FIELD_NUMBER

public static final int INSPECT_RESULT_FIELD_NUMBER
Field Value
TypeDescription
int

REDACTED_IMAGE_FIELD_NUMBER

public static final int REDACTED_IMAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RedactImageResponse getDefaultInstance()
Returns
TypeDescription
RedactImageResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RedactImageResponse.Builder newBuilder()
Returns
TypeDescription
RedactImageResponse.Builder

newBuilder(RedactImageResponse prototype)

public static RedactImageResponse.Builder newBuilder(RedactImageResponse prototype)
Parameter
NameDescription
prototypeRedactImageResponse
Returns
TypeDescription
RedactImageResponse.Builder

parseDelimitedFrom(InputStream input)

public static RedactImageResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RedactImageResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RedactImageResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RedactImageResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RedactImageResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RedactImageResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RedactImageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RedactImageResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RedactImageResponse> parser()
Returns
TypeDescription
Parser<RedactImageResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RedactImageResponse getDefaultInstanceForType()
Returns
TypeDescription
RedactImageResponse

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.

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

getParserForType()

public Parser<RedactImageResponse> getParserForType()
Returns
TypeDescription
Parser<RedactImageResponse>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RedactImageResponse.Builder newBuilderForType()
Returns
TypeDescription
RedactImageResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RedactImageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RedactImageResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RedactImageResponse.Builder toBuilder()
Returns
TypeDescription
RedactImageResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException