public final class RedactImageResponse extends GeneratedMessageV3 implements RedactImageResponseOrBuilder
Results of redacting an image.
Protobuf type google.privacy.dlp.v2.RedactImageResponse
Static Fields
public static final int EXTRACTED_TEXT_FIELD_NUMBER
Field Value
INSPECT_RESULT_FIELD_NUMBER
public static final int INSPECT_RESULT_FIELD_NUMBER
Field Value
REDACTED_IMAGE_FIELD_NUMBER
public static final int REDACTED_IMAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RedactImageResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RedactImageResponse.Builder newBuilder()
Returns
newBuilder(RedactImageResponse prototype)
public static RedactImageResponse.Builder newBuilder(RedactImageResponse prototype)
Parameter
Returns
public static RedactImageResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RedactImageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RedactImageResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RedactImageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RedactImageResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RedactImageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RedactImageResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RedactImageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RedactImageResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RedactImageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RedactImageResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RedactImageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RedactImageResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public RedactImageResponse getDefaultInstanceForType()
Returns
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
getInspectResultOrBuilder()
public InspectResultOrBuilder getInspectResultOrBuilder()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
Returns
getParserForType()
public Parser<RedactImageResponse> getParserForType()
Returns
Overrides
getRedactedImage()
public ByteString getRedactedImage()
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
boolean | Whether the inspectResult field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RedactImageResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RedactImageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RedactImageResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions