public final class SdpRedactResult extends GeneratedMessage implements SdpRedactResultOrBuilder
Sensitive Data Protection Redaction Result.
Protobuf type google.cloud.modelarmor.v1.SdpRedactResult
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
EXECUTION_STATE_FIELD_NUMBER
public static final int EXECUTION_STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int EXTRACTED_IMAGE_TEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FINDINGS_FIELD_NUMBER
public static final int FINDINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MATCH_STATE_FIELD_NUMBER
public static final int MATCH_STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MESSAGE_ITEMS_FIELD_NUMBER
public static final int MESSAGE_ITEMS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REDACTED_IMAGE_FIELD_NUMBER
public static final int REDACTED_IMAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SdpRedactResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SdpRedactResult.Builder newBuilder()
newBuilder(SdpRedactResult prototype)
public static SdpRedactResult.Builder newBuilder(SdpRedactResult prototype)
public static SdpRedactResult parseDelimitedFrom(InputStream input)
public static SdpRedactResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SdpRedactResult parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SdpRedactResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SdpRedactResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SdpRedactResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SdpRedactResult parseFrom(CodedInputStream input)
public static SdpRedactResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SdpRedactResult parseFrom(InputStream input)
public static SdpRedactResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SdpRedactResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SdpRedactResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SdpRedactResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SdpRedactResult getDefaultInstanceForType()
getExecutionState()
public FilterExecutionState getExecutionState()
Output only. Reports whether Sensitive Data Protection redaction was
successfully executed or not.
.google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExecutionStateValue()
public int getExecutionStateValue()
Output only. Reports whether Sensitive Data Protection redaction was
successfully executed or not.
.google.cloud.modelarmor.v1.FilterExecutionState execution_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for executionState.
|
public String getExtractedImageText()
The extracted text from the image.
string extracted_image_text = 6;
| Returns |
| Type |
Description |
String |
The extractedImageText.
|
public ByteString getExtractedImageTextBytes()
The extracted text from the image.
string extracted_image_text = 6;
| Returns |
| Type |
Description |
ByteString |
The bytes for extractedImageText.
|
getFindings(int index)
public SdpFinding getFindings(int index)
Output only. The findings. This field is populated in the response only
when include_findings in the SDP template is set to true.
repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getFindingsCount()
public int getFindingsCount()
Output only. The findings. This field is populated in the response only
when include_findings in the SDP template is set to true.
repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getFindingsList()
public List<SdpFinding> getFindingsList()
Output only. The findings. This field is populated in the response only
when include_findings in the SDP template is set to true.
repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFindingsOrBuilder(int index)
public SdpFindingOrBuilder getFindingsOrBuilder(int index)
Output only. The findings. This field is populated in the response only
when include_findings in the SDP template is set to true.
repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getFindingsOrBuilderList()
public List<? extends SdpFindingOrBuilder> getFindingsOrBuilderList()
Output only. The findings. This field is populated in the response only
when include_findings in the SDP template is set to true.
repeated .google.cloud.modelarmor.v1.SdpFinding findings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.modelarmor.v1.SdpFindingOrBuilder> |
|
getMatchState()
public FilterMatchState getMatchState()
Output only. Match state for Sensitive Data Protection Redaction.
Value is MATCH_FOUND if content is redacted.
.google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMatchStateValue()
public int getMatchStateValue()
Output only. Match state for Sensitive Data Protection Redaction.
Value is MATCH_FOUND if content is redacted.
.google.cloud.modelarmor.v1.FilterMatchState match_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for matchState.
|
getMessageItems(int index)
public MessageItem getMessageItems(int index)
Output only. Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.
repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getMessageItemsCount()
public int getMessageItemsCount()
Output only. Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.
repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getMessageItemsList()
public List<MessageItem> getMessageItemsList()
Output only. Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.
repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getMessageItemsOrBuilder(int index)
public MessageItemOrBuilder getMessageItemsOrBuilder(int index)
Output only. Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.
repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getMessageItemsOrBuilderList()
public List<? extends MessageItemOrBuilder> getMessageItemsOrBuilderList()
Output only. Optional messages corresponding to the result.
A message can provide warnings or error details.
For example, if execution state is skipped then this field provides
related reason/explanation.
repeated .google.cloud.modelarmor.v1.MessageItem message_items = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.modelarmor.v1.MessageItemOrBuilder> |
|
getParserForType()
public Parser<SdpRedactResult> getParserForType()
Overrides
getRedactedImage()
public ByteString getRedactedImage()
Output only. The redacted image. The type will be the same as the original
image.
bytes redacted_image = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The redactedImage.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SdpRedactResult.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected SdpRedactResult.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public SdpRedactResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides