Class InspectConfig.FindingLimits (3.28.0)

public static final class InspectConfig.FindingLimits extends GeneratedMessageV3 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 Fields

MAX_FINDINGS_PER_INFO_TYPE_FIELD_NUMBER

public static final int MAX_FINDINGS_PER_INFO_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_FINDINGS_PER_ITEM_FIELD_NUMBER

public static final int MAX_FINDINGS_PER_ITEM_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_FINDINGS_PER_REQUEST_FIELD_NUMBER

public static final int MAX_FINDINGS_PER_REQUEST_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InspectConfig.FindingLimits getDefaultInstance()
Returns
TypeDescription
InspectConfig.FindingLimits

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static InspectConfig.FindingLimits.Builder newBuilder()
Returns
TypeDescription
InspectConfig.FindingLimits.Builder

newBuilder(InspectConfig.FindingLimits prototype)

public static InspectConfig.FindingLimits.Builder newBuilder(InspectConfig.FindingLimits prototype)
Parameter
NameDescription
prototypeInspectConfig.FindingLimits
Returns
TypeDescription
InspectConfig.FindingLimits.Builder

parseDelimitedFrom(InputStream input)

public static InspectConfig.FindingLimits parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static InspectConfig.FindingLimits parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InspectConfig.FindingLimits parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InspectConfig.FindingLimits parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static InspectConfig.FindingLimits parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static InspectConfig.FindingLimits parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InspectConfig.FindingLimits parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InspectConfig.FindingLimits
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<InspectConfig.FindingLimits> parser()
Returns
TypeDescription
Parser<FindingLimits>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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

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 will be returned for each item scanned. When set within InspectJobConfig, the maximum returned is 2000 regardless if this is set higher. When set within InspectContentRequest, this field is ignored.

int32 max_findings_per_item = 1;

Returns
TypeDescription
int

The maxFindingsPerItem.

getMaxFindingsPerRequest()

public int getMaxFindingsPerRequest()

Max number of findings that will be returned per request/job. When set within InspectContentRequest, the maximum returned is 2000 regardless if this is set higher.

int32 max_findings_per_request = 2;

Returns
TypeDescription
int

The maxFindingsPerRequest.

getParserForType()

public Parser<InspectConfig.FindingLimits> getParserForType()
Returns
TypeDescription
Parser<FindingLimits>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public InspectConfig.FindingLimits.Builder newBuilderForType()
Returns
TypeDescription
InspectConfig.FindingLimits.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InspectConfig.FindingLimits.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
InspectConfig.FindingLimits.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public InspectConfig.FindingLimits.Builder toBuilder()
Returns
TypeDescription
InspectConfig.FindingLimits.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException