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
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
addFindings(Finding value)
public InspectResult.Builder addFindings(Finding value)
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Parameter
Returns
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
Returns
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
Returns
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
Returns
addFindingsBuilder()
public Finding.Builder addFindingsBuilder()
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Returns
addFindingsBuilder(int index)
public Finding.Builder addFindingsBuilder(int index)
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InspectResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InspectResult build()
Returns
buildPartial()
public InspectResult buildPartial()
Returns
clear()
public InspectResult.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InspectResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFindings()
public InspectResult.Builder clearFindings()
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public InspectResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public InspectResult.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InspectResult getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFindings(int index)
public Finding getFindings(int index)
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Parameter
Returns
getFindingsBuilder(int index)
public Finding.Builder getFindingsBuilder(int index)
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Parameter
Returns
getFindingsBuilderList()
public List<Finding.Builder> getFindingsBuilderList()
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Returns
getFindingsCount()
public int getFindingsCount()
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Returns
getFindingsList()
public List<Finding> getFindingsList()
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Returns
getFindingsOrBuilder(int index)
public FindingOrBuilder getFindingsOrBuilder(int index)
List of findings for an item.
repeated .google.privacy.dlp.v2.Finding findings = 1;
Parameter
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InspectResult other)
public InspectResult.Builder mergeFrom(InspectResult other)
Parameter
Returns
public InspectResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InspectResult.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InspectResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InspectResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InspectResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InspectResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides