Class InspectConfig.FindingLimits.Builder (3.58.0)

public static final class InspectConfig.FindingLimits.Builder extends GeneratedMessageV3.Builder<InspectConfig.FindingLimits.Builder> implements InspectConfig.FindingLimitsOrBuilder

Configuration to control the number of findings returned for inspection. This is not used for de-identification or data profiling.

When redacting sensitive data from images, finding limits don't apply. They can cause unexpected or inconsistent results, where only some data is redacted. Don't include finding limits in RedactImage requests. Otherwise, Cloud DLP returns an error.

Protobuf type google.privacy.dlp.v2.InspectConfig.FindingLimits

Static Methods

getDescriptor()

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

Methods

addAllMaxFindingsPerInfoType(Iterable<? extends InspectConfig.FindingLimits.InfoTypeLimit> values)

public InspectConfig.FindingLimits.Builder addAllMaxFindingsPerInfoType(Iterable<? extends InspectConfig.FindingLimits.InfoTypeLimit> values)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit>
Returns
Type Description
InspectConfig.FindingLimits.Builder

addMaxFindingsPerInfoType(InspectConfig.FindingLimits.InfoTypeLimit value)

public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(InspectConfig.FindingLimits.InfoTypeLimit value)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
value InspectConfig.FindingLimits.InfoTypeLimit
Returns
Type Description
InspectConfig.FindingLimits.Builder

addMaxFindingsPerInfoType(InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
builderForValue InspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
Type Description
InspectConfig.FindingLimits.Builder

addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)

public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameters
Name Description
index int
value InspectConfig.FindingLimits.InfoTypeLimit
Returns
Type Description
InspectConfig.FindingLimits.Builder

addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

public InspectConfig.FindingLimits.Builder addMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameters
Name Description
index int
builderForValue InspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
Type Description
InspectConfig.FindingLimits.Builder

addMaxFindingsPerInfoTypeBuilder()

public InspectConfig.FindingLimits.InfoTypeLimit.Builder addMaxFindingsPerInfoTypeBuilder()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
InspectConfig.FindingLimits.InfoTypeLimit.Builder

addMaxFindingsPerInfoTypeBuilder(int index)

public InspectConfig.FindingLimits.InfoTypeLimit.Builder addMaxFindingsPerInfoTypeBuilder(int index)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
index int
Returns
Type Description
InspectConfig.FindingLimits.InfoTypeLimit.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectConfig.FindingLimits build()
Returns
Type Description
InspectConfig.FindingLimits

buildPartial()

public InspectConfig.FindingLimits buildPartial()
Returns
Type Description
InspectConfig.FindingLimits

clear()

public InspectConfig.FindingLimits.Builder clear()
Returns
Type Description
InspectConfig.FindingLimits.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearMaxFindingsPerInfoType()

public InspectConfig.FindingLimits.Builder clearMaxFindingsPerInfoType()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
InspectConfig.FindingLimits.Builder

clearMaxFindingsPerItem()

public InspectConfig.FindingLimits.Builder clearMaxFindingsPerItem()

Max number of findings that are returned for each item scanned.

When set within an InspectContentRequest, this field is ignored.

This value isn't a hard limit. If the number of findings for an item reaches this limit, the inspection of that item ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns for the item can be multiple times higher than this value.

int32 max_findings_per_item = 1;

Returns
Type Description
InspectConfig.FindingLimits.Builder

This builder for chaining.

clearMaxFindingsPerRequest()

public InspectConfig.FindingLimits.Builder clearMaxFindingsPerRequest()

Max number of findings that are returned per request or job.

If you set this field in an InspectContentRequest, the resulting maximum value is the value that you set or 3,000, whichever is lower.

This value isn't a hard limit. If an inspection reaches this limit, the inspection ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than this value.

int32 max_findings_per_request = 2;

Returns
Type Description
InspectConfig.FindingLimits.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public InspectConfig.FindingLimits.Builder clone()
Returns
Type Description
InspectConfig.FindingLimits.Builder
Overrides

getDefaultInstanceForType()

public InspectConfig.FindingLimits getDefaultInstanceForType()
Returns
Type Description
InspectConfig.FindingLimits

getDescriptorForType()

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

getMaxFindingsPerInfoType(int index)

public InspectConfig.FindingLimits.InfoTypeLimit getMaxFindingsPerInfoType(int index)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
index int
Returns
Type Description
InspectConfig.FindingLimits.InfoTypeLimit

getMaxFindingsPerInfoTypeBuilder(int index)

public InspectConfig.FindingLimits.InfoTypeLimit.Builder getMaxFindingsPerInfoTypeBuilder(int index)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
index int
Returns
Type Description
InspectConfig.FindingLimits.InfoTypeLimit.Builder

getMaxFindingsPerInfoTypeBuilderList()

public List<InspectConfig.FindingLimits.InfoTypeLimit.Builder> getMaxFindingsPerInfoTypeBuilderList()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
List<Builder>

getMaxFindingsPerInfoTypeCount()

public int getMaxFindingsPerInfoTypeCount()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
int

getMaxFindingsPerInfoTypeList()

public List<InspectConfig.FindingLimits.InfoTypeLimit> getMaxFindingsPerInfoTypeList()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
List<InfoTypeLimit>

getMaxFindingsPerInfoTypeOrBuilder(int index)

public InspectConfig.FindingLimits.InfoTypeLimitOrBuilder getMaxFindingsPerInfoTypeOrBuilder(int index)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
index int
Returns
Type Description
InspectConfig.FindingLimits.InfoTypeLimitOrBuilder

getMaxFindingsPerInfoTypeOrBuilderList()

public List<? extends InspectConfig.FindingLimits.InfoTypeLimitOrBuilder> getMaxFindingsPerInfoTypeOrBuilderList()

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimitOrBuilder>

getMaxFindingsPerItem()

public int getMaxFindingsPerItem()

Max number of findings that are returned for each item scanned.

When set within an InspectContentRequest, this field is ignored.

This value isn't a hard limit. If the number of findings for an item reaches this limit, the inspection of that item ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns for the item can be multiple times higher than this value.

int32 max_findings_per_item = 1;

Returns
Type Description
int

The maxFindingsPerItem.

getMaxFindingsPerRequest()

public int getMaxFindingsPerRequest()

Max number of findings that are returned per request or job.

If you set this field in an InspectContentRequest, the resulting maximum value is the value that you set or 3,000, whichever is lower.

This value isn't a hard limit. If an inspection reaches this limit, the inspection ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than this value.

int32 max_findings_per_request = 2;

Returns
Type Description
int

The maxFindingsPerRequest.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InspectConfig.FindingLimits other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMaxFindingsPerInfoType(int index)

public InspectConfig.FindingLimits.Builder removeMaxFindingsPerInfoType(int index)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameter
Name Description
index int
Returns
Type Description
InspectConfig.FindingLimits.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)

public InspectConfig.FindingLimits.Builder setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit value)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameters
Name Description
index int
value InspectConfig.FindingLimits.InfoTypeLimit
Returns
Type Description
InspectConfig.FindingLimits.Builder

setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

public InspectConfig.FindingLimits.Builder setMaxFindingsPerInfoType(int index, InspectConfig.FindingLimits.InfoTypeLimit.Builder builderForValue)

Configuration of findings limit given for specified infoTypes.

repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;

Parameters
Name Description
index int
builderForValue InspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
Type Description
InspectConfig.FindingLimits.Builder

setMaxFindingsPerItem(int value)

public InspectConfig.FindingLimits.Builder setMaxFindingsPerItem(int value)

Max number of findings that are returned for each item scanned.

When set within an InspectContentRequest, this field is ignored.

This value isn't a hard limit. If the number of findings for an item reaches this limit, the inspection of that item ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns for the item can be multiple times higher than this value.

int32 max_findings_per_item = 1;

Parameter
Name Description
value int

The maxFindingsPerItem to set.

Returns
Type Description
InspectConfig.FindingLimits.Builder

This builder for chaining.

setMaxFindingsPerRequest(int value)

public InspectConfig.FindingLimits.Builder setMaxFindingsPerRequest(int value)

Max number of findings that are returned per request or job.

If you set this field in an InspectContentRequest, the resulting maximum value is the value that you set or 3,000, whichever is lower.

This value isn't a hard limit. If an inspection reaches this limit, the inspection ends gradually, not abruptly. Therefore, the actual number of findings that Cloud DLP returns can be multiple times higher than this value.

int32 max_findings_per_request = 2;

Parameter
Name Description
value int

The maxFindingsPerRequest to set.

Returns
Type Description
InspectConfig.FindingLimits.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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