Class InspectResult (3.20.0)

public final class InspectResult extends GeneratedMessageV3 implements InspectResultOrBuilder

All the findings for a single scanned item.

Protobuf type google.privacy.dlp.v2.InspectResult

Static Fields

FINDINGS_FIELD_NUMBER

public static final int FINDINGS_FIELD_NUMBER
Field Value
TypeDescription
int

FINDINGS_TRUNCATED_FIELD_NUMBER

public static final int FINDINGS_TRUNCATED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InspectResult getDefaultInstance()
Returns
TypeDescription
InspectResult

getDescriptor()

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

newBuilder()

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

newBuilder(InspectResult prototype)

public static InspectResult.Builder newBuilder(InspectResult prototype)
Parameter
NameDescription
prototypeInspectResult
Returns
TypeDescription
InspectResult.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InspectResult getDefaultInstanceForType()
Returns
TypeDescription
InspectResult

getFindings(int index)

public Finding getFindings(int index)

List of findings for an item.

repeated .google.privacy.dlp.v2.Finding findings = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Finding

getFindingsCount()

public int getFindingsCount()

List of findings for an item.

repeated .google.privacy.dlp.v2.Finding findings = 1;

Returns
TypeDescription
int

getFindingsList()

public List<Finding> getFindingsList()

List of findings for an item.

repeated .google.privacy.dlp.v2.Finding findings = 1;

Returns
TypeDescription
List<Finding>

getFindingsOrBuilder(int index)

public FindingOrBuilder getFindingsOrBuilder(int index)

List of findings for an item.

repeated .google.privacy.dlp.v2.Finding findings = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FindingOrBuilder

getFindingsOrBuilderList()

public List<? extends FindingOrBuilder> getFindingsOrBuilderList()

List of findings for an item.

repeated .google.privacy.dlp.v2.Finding findings = 1;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.FindingOrBuilder>

getFindingsTruncated()

public boolean getFindingsTruncated()

If true, then this item might have more findings than were returned, and the findings returned are an arbitrary subset of all findings. The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call. For best results, divide the input into smaller batches.

bool findings_truncated = 2;

Returns
TypeDescription
boolean

The findingsTruncated.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 InspectResult.Builder newBuilderForType()
Returns
TypeDescription
InspectResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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