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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RedactImageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RedactImageResponse build()
buildPartial()
public RedactImageResponse buildPartial()
clear()
public RedactImageResponse.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public RedactImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public RedactImageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRedactedImage()
public RedactImageResponse.Builder clearRedactedImage()
The redacted image. The type will be the same as the original image.
bytes redacted_image = 1;
clone()
public RedactImageResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public RedactImageResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
getInspectResultBuilder()
public InspectResult.Builder getInspectResultBuilder()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
getInspectResultOrBuilder()
public InspectResultOrBuilder getInspectResultOrBuilder()
The findings. Populated when include_findings in the request is true.
.google.privacy.dlp.v2.InspectResult inspect_result = 3;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RedactImageResponse other)
public RedactImageResponse.Builder mergeFrom(RedactImageResponse other)
public RedactImageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RedactImageResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public RedactImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RedactImageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RedactImageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides