Class InspectConfig.FindingLimits.Builder (3.39.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit>
Returns
TypeDescription
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
NameDescription
valueInspectConfig.FindingLimits.InfoTypeLimit
Returns
TypeDescription
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
NameDescription
builderForValueInspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInspectConfig.FindingLimits.InfoTypeLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InspectConfig.FindingLimits.InfoTypeLimit.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectConfig.FindingLimits build()
Returns
TypeDescription
InspectConfig.FindingLimits

buildPartial()

public InspectConfig.FindingLimits buildPartial()
Returns
TypeDescription
InspectConfig.FindingLimits

clear()

public InspectConfig.FindingLimits.Builder clear()
Returns
TypeDescription
InspectConfig.FindingLimits.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InspectConfig.FindingLimits.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InspectConfig.FindingLimits.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public InspectConfig.FindingLimits.Builder clone()
Returns
TypeDescription
InspectConfig.FindingLimits.Builder
Overrides

getDefaultInstanceForType()

public InspectConfig.FindingLimits getDefaultInstanceForType()
Returns
TypeDescription
InspectConfig.FindingLimits

getDescriptorForType()

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

The maxFindingsPerRequest.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InspectConfig.FindingLimits other)

public InspectConfig.FindingLimits.Builder mergeFrom(InspectConfig.FindingLimits other)
Parameter
NameDescription
otherInspectConfig.FindingLimits
Returns
TypeDescription
InspectConfig.FindingLimits.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InspectConfig.FindingLimits.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInspectConfig.FindingLimits.InfoTypeLimit
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInspectConfig.FindingLimits.InfoTypeLimit.Builder
Returns
TypeDescription
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
NameDescription
valueint

The maxFindingsPerItem to set.

Returns
TypeDescription
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
NameDescription
valueint

The maxFindingsPerRequest to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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