Class InspectResult.Builder (3.51.0)

public static final class InspectResult.Builder extends GeneratedMessageV3.Builder<InspectResult.Builder> implements InspectResultOrBuilder

All the findings for a single scanned item.

Protobuf type google.privacy.dlp.v2.InspectResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFindings(Iterable<? extends Finding> values)

public InspectResult.Builder addAllFindings(Iterable<? extends Finding> values)

List of findings for an item.

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

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.Finding>
Returns
Type Description
InspectResult.Builder

addFindings(Finding value)

public InspectResult.Builder addFindings(Finding value)

List of findings for an item.

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

Parameter
Name Description
value Finding
Returns
Type Description
InspectResult.Builder

addFindings(Finding.Builder builderForValue)

public InspectResult.Builder addFindings(Finding.Builder builderForValue)

List of findings for an item.

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

Parameter
Name Description
builderForValue Finding.Builder
Returns
Type Description
InspectResult.Builder

addFindings(int index, Finding value)

public InspectResult.Builder addFindings(int index, Finding value)

List of findings for an item.

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

Parameters
Name Description
index int
value Finding
Returns
Type Description
InspectResult.Builder

addFindings(int index, Finding.Builder builderForValue)

public InspectResult.Builder addFindings(int index, Finding.Builder builderForValue)

List of findings for an item.

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

Parameters
Name Description
index int
builderForValue Finding.Builder
Returns
Type Description
InspectResult.Builder

addFindingsBuilder()

public Finding.Builder addFindingsBuilder()

List of findings for an item.

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

Returns
Type Description
Finding.Builder

addFindingsBuilder(int index)

public Finding.Builder addFindingsBuilder(int index)

List of findings for an item.

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

Parameter
Name Description
index int
Returns
Type Description
Finding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InspectResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InspectResult.Builder
Overrides

build()

public InspectResult build()
Returns
Type Description
InspectResult

buildPartial()

public InspectResult buildPartial()
Returns
Type Description
InspectResult

clear()

public InspectResult.Builder clear()
Returns
Type Description
InspectResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InspectResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InspectResult.Builder
Overrides

clearFindings()

public InspectResult.Builder clearFindings()

List of findings for an item.

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

Returns
Type Description
InspectResult.Builder

clearFindingsTruncated()

public InspectResult.Builder clearFindingsTruncated()

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
Type Description
InspectResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InspectResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InspectResult.Builder
Overrides

clone()

public InspectResult.Builder clone()
Returns
Type Description
InspectResult.Builder
Overrides

getDefaultInstanceForType()

public InspectResult getDefaultInstanceForType()
Returns
Type Description
InspectResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFindings(int index)

public Finding getFindings(int index)

List of findings for an item.

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

Parameter
Name Description
index int
Returns
Type Description
Finding

getFindingsBuilder(int index)

public Finding.Builder getFindingsBuilder(int index)

List of findings for an item.

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

Parameter
Name Description
index int
Returns
Type Description
Finding.Builder

getFindingsBuilderList()

public List<Finding.Builder> getFindingsBuilderList()

List of findings for an item.

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

Returns
Type Description
List<Builder>

getFindingsCount()

public int getFindingsCount()

List of findings for an item.

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

Returns
Type Description
int

getFindingsList()

public List<Finding> getFindingsList()

List of findings for an item.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
FindingOrBuilder

getFindingsOrBuilderList()

public List<? extends FindingOrBuilder> getFindingsOrBuilderList()

List of findings for an item.

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

Returns
Type Description
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
Type Description
boolean

The findingsTruncated.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InspectResult other)

public InspectResult.Builder mergeFrom(InspectResult other)
Parameter
Name Description
other InspectResult
Returns
Type Description
InspectResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InspectResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InspectResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InspectResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InspectResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InspectResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InspectResult.Builder
Overrides

removeFindings(int index)

public InspectResult.Builder removeFindings(int index)

List of findings for an item.

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

Parameter
Name Description
index int
Returns
Type Description
InspectResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InspectResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InspectResult.Builder
Overrides

setFindings(int index, Finding value)

public InspectResult.Builder setFindings(int index, Finding value)

List of findings for an item.

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

Parameters
Name Description
index int
value Finding
Returns
Type Description
InspectResult.Builder

setFindings(int index, Finding.Builder builderForValue)

public InspectResult.Builder setFindings(int index, Finding.Builder builderForValue)

List of findings for an item.

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

Parameters
Name Description
index int
builderForValue Finding.Builder
Returns
Type Description
InspectResult.Builder

setFindingsTruncated(boolean value)

public InspectResult.Builder setFindingsTruncated(boolean value)

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;

Parameter
Name Description
value boolean

The findingsTruncated to set.

Returns
Type Description
InspectResult.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InspectResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InspectResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InspectResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InspectResult.Builder
Overrides