Class InspectResult.Builder (3.6.4)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.Finding>
Returns
TypeDescription
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
NameDescription
valueFinding
Returns
TypeDescription
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
NameDescription
builderForValueFinding.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueFinding
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFinding.Builder
Returns
TypeDescription
InspectResult.Builder

addFindingsBuilder()

public Finding.Builder addFindingsBuilder()

List of findings for an item.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Finding.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InspectResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InspectResult.Builder
Overrides

build()

public InspectResult build()
Returns
TypeDescription
InspectResult

buildPartial()

public InspectResult buildPartial()
Returns
TypeDescription
InspectResult

clear()

public InspectResult.Builder clear()
Returns
TypeDescription
InspectResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InspectResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InspectResult.Builder
Overrides

clearFindings()

public InspectResult.Builder clearFindings()

List of findings for an item.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InspectResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InspectResult.Builder
Overrides

clone()

public InspectResult.Builder clone()
Returns
TypeDescription
InspectResult.Builder
Overrides

getDefaultInstanceForType()

public InspectResult getDefaultInstanceForType()
Returns
TypeDescription
InspectResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Finding.Builder

getFindingsBuilderList()

public List<Finding.Builder> getFindingsBuilderList()

List of findings for an item.

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

Returns
TypeDescription
List<Builder>

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InspectResult other)

public InspectResult.Builder mergeFrom(InspectResult other)
Parameter
NameDescription
otherInspectResult
Returns
TypeDescription
InspectResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InspectResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InspectResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InspectResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InspectResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InspectResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InspectResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueFinding
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFinding.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The findingsTruncated to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InspectResult.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InspectResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InspectResult.Builder
Overrides