public final class InspectConfig extends com.google.protobuf.GeneratedMessageV3 implements InspectConfigOrBuilder
Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.Protobuf type
google.privacy.dlp.v2.InspectConfig| Modifier and Type | Class and Description |
|---|---|
static class |
InspectConfig.Builder
Configuration description of the scanning process.
|
static class |
InspectConfig.FindingLimits
Configuration to control the number of findings returned for inspection.
|
static interface |
InspectConfig.FindingLimitsOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENT_OPTIONS_FIELD_NUMBER |
static int |
CUSTOM_INFO_TYPES_FIELD_NUMBER |
static int |
EXCLUDE_INFO_TYPES_FIELD_NUMBER |
static int |
INCLUDE_QUOTE_FIELD_NUMBER |
static int |
INFO_TYPES_FIELD_NUMBER |
static int |
LIMITS_FIELD_NUMBER |
static int |
MIN_LIKELIHOOD_FIELD_NUMBER |
static int |
RULE_SET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ContentOption |
getContentOptions(int index)
Deprecated and unused.
|
int |
getContentOptionsCount()
Deprecated and unused.
|
List<ContentOption> |
getContentOptionsList()
Deprecated and unused.
|
int |
getContentOptionsValue(int index)
Deprecated and unused.
|
List<Integer> |
getContentOptionsValueList()
Deprecated and unused.
|
CustomInfoType |
getCustomInfoTypes(int index)
CustomInfoTypes provided by the user.
|
int |
getCustomInfoTypesCount()
CustomInfoTypes provided by the user.
|
List<CustomInfoType> |
getCustomInfoTypesList()
CustomInfoTypes provided by the user.
|
CustomInfoTypeOrBuilder |
getCustomInfoTypesOrBuilder(int index)
CustomInfoTypes provided by the user.
|
List<? extends CustomInfoTypeOrBuilder> |
getCustomInfoTypesOrBuilderList()
CustomInfoTypes provided by the user.
|
static InspectConfig |
getDefaultInstance() |
InspectConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getExcludeInfoTypes()
When true, excludes type information of the findings.
|
boolean |
getIncludeQuote()
When true, a contextual quote from the data that triggered a finding is
included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
|
InfoType |
getInfoTypes(int index)
Restricts what info_types to look for.
|
int |
getInfoTypesCount()
Restricts what info_types to look for.
|
List<InfoType> |
getInfoTypesList()
Restricts what info_types to look for.
|
InfoTypeOrBuilder |
getInfoTypesOrBuilder(int index)
Restricts what info_types to look for.
|
List<? extends InfoTypeOrBuilder> |
getInfoTypesOrBuilderList()
Restricts what info_types to look for.
|
InspectConfig.FindingLimits |
getLimits()
Configuration to control the number of findings returned.
|
InspectConfig.FindingLimitsOrBuilder |
getLimitsOrBuilder()
Configuration to control the number of findings returned.
|
Likelihood |
getMinLikelihood()
Only returns findings equal or above this threshold.
|
int |
getMinLikelihoodValue()
Only returns findings equal or above this threshold.
|
com.google.protobuf.Parser<InspectConfig> |
getParserForType() |
InspectionRuleSet |
getRuleSet(int index)
Set of rules to apply to the findings for this InspectConfig.
|
int |
getRuleSetCount()
Set of rules to apply to the findings for this InspectConfig.
|
List<InspectionRuleSet> |
getRuleSetList()
Set of rules to apply to the findings for this InspectConfig.
|
InspectionRuleSetOrBuilder |
getRuleSetOrBuilder(int index)
Set of rules to apply to the findings for this InspectConfig.
|
List<? extends InspectionRuleSetOrBuilder> |
getRuleSetOrBuilderList()
Set of rules to apply to the findings for this InspectConfig.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLimits()
Configuration to control the number of findings returned.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InspectConfig.Builder |
newBuilder() |
static InspectConfig.Builder |
newBuilder(InspectConfig prototype) |
InspectConfig.Builder |
newBuilderForType() |
protected InspectConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InspectConfig |
parseDelimitedFrom(InputStream input) |
static InspectConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(byte[] data) |
static InspectConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(ByteBuffer data) |
static InspectConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(com.google.protobuf.ByteString data) |
static InspectConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InspectConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(InputStream input) |
static InspectConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InspectConfig> |
parser() |
InspectConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INFO_TYPES_FIELD_NUMBER
public static final int MIN_LIKELIHOOD_FIELD_NUMBER
public static final int LIMITS_FIELD_NUMBER
public static final int INCLUDE_QUOTE_FIELD_NUMBER
public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
public static final int CUSTOM_INFO_TYPES_FIELD_NUMBER
public static final int CONTENT_OPTIONS_FIELD_NUMBER
public static final int RULE_SET_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<InfoType> getInfoTypesList()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;getInfoTypesList in interface InspectConfigOrBuilderpublic List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;getInfoTypesOrBuilderList in interface InspectConfigOrBuilderpublic int getInfoTypesCount()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;getInfoTypesCount in interface InspectConfigOrBuilderpublic InfoType getInfoTypes(int index)
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;getInfoTypes in interface InspectConfigOrBuilderpublic InfoTypeOrBuilder getInfoTypesOrBuilder(int index)
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or listed at https://cloud.google.com/dlp/docs/infotypes-reference. When no InfoTypes or CustomInfoTypes are specified in a request, the system may automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. If you need precise control and predictability as to what detectors are run you should specify specific InfoTypes listed in the reference, otherwise a default list will be used, which may change over time.
repeated .google.privacy.dlp.v2.InfoType info_types = 1;getInfoTypesOrBuilder in interface InspectConfigOrBuilderpublic int getMinLikelihoodValue()
Only returns findings equal or above this threshold. The default is POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more.
.google.privacy.dlp.v2.Likelihood min_likelihood = 2;getMinLikelihoodValue in interface InspectConfigOrBuilderpublic Likelihood getMinLikelihood()
Only returns findings equal or above this threshold. The default is POSSIBLE. See https://cloud.google.com/dlp/docs/likelihood to learn more.
.google.privacy.dlp.v2.Likelihood min_likelihood = 2;getMinLikelihood in interface InspectConfigOrBuilderpublic boolean hasLimits()
Configuration to control the number of findings returned. This is not used for 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][google.privacy.dlp.v2.DlpService.RedactImage] requests. Otherwise, Cloud DLP returns an error.
.google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;hasLimits in interface InspectConfigOrBuilderpublic InspectConfig.FindingLimits getLimits()
Configuration to control the number of findings returned. This is not used for 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][google.privacy.dlp.v2.DlpService.RedactImage] requests. Otherwise, Cloud DLP returns an error.
.google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;getLimits in interface InspectConfigOrBuilderpublic InspectConfig.FindingLimitsOrBuilder getLimitsOrBuilder()
Configuration to control the number of findings returned. This is not used for 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][google.privacy.dlp.v2.DlpService.RedactImage] requests. Otherwise, Cloud DLP returns an error.
.google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3;getLimitsOrBuilder in interface InspectConfigOrBuilderpublic boolean getIncludeQuote()
When true, a contextual quote from the data that triggered a finding is included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for data profiling.
bool include_quote = 4;getIncludeQuote in interface InspectConfigOrBuilderpublic boolean getExcludeInfoTypes()
When true, excludes type information of the findings. This is not used for data profiling.
bool exclude_info_types = 5;getExcludeInfoTypes in interface InspectConfigOrBuilderpublic List<CustomInfoType> getCustomInfoTypesList()
CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;getCustomInfoTypesList in interface InspectConfigOrBuilderpublic List<? extends CustomInfoTypeOrBuilder> getCustomInfoTypesOrBuilderList()
CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;getCustomInfoTypesOrBuilderList in interface InspectConfigOrBuilderpublic int getCustomInfoTypesCount()
CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;getCustomInfoTypesCount in interface InspectConfigOrBuilderpublic CustomInfoType getCustomInfoTypes(int index)
CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;getCustomInfoTypes in interface InspectConfigOrBuilderpublic CustomInfoTypeOrBuilder getCustomInfoTypesOrBuilder(int index)
CustomInfoTypes provided by the user. See https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;getCustomInfoTypesOrBuilder in interface InspectConfigOrBuilderpublic List<ContentOption> getContentOptionsList()
Deprecated and unused.
repeated .google.privacy.dlp.v2.ContentOption content_options = 8;getContentOptionsList in interface InspectConfigOrBuilderpublic int getContentOptionsCount()
Deprecated and unused.
repeated .google.privacy.dlp.v2.ContentOption content_options = 8;getContentOptionsCount in interface InspectConfigOrBuilderpublic ContentOption getContentOptions(int index)
Deprecated and unused.
repeated .google.privacy.dlp.v2.ContentOption content_options = 8;getContentOptions in interface InspectConfigOrBuilderindex - The index of the element to return.public List<Integer> getContentOptionsValueList()
Deprecated and unused.
repeated .google.privacy.dlp.v2.ContentOption content_options = 8;getContentOptionsValueList in interface InspectConfigOrBuilderpublic int getContentOptionsValue(int index)
Deprecated and unused.
repeated .google.privacy.dlp.v2.ContentOption content_options = 8;getContentOptionsValue in interface InspectConfigOrBuilderindex - The index of the value to return.public List<InspectionRuleSet> getRuleSetList()
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.
repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;getRuleSetList in interface InspectConfigOrBuilderpublic List<? extends InspectionRuleSetOrBuilder> getRuleSetOrBuilderList()
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.
repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;getRuleSetOrBuilderList in interface InspectConfigOrBuilderpublic int getRuleSetCount()
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.
repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;getRuleSetCount in interface InspectConfigOrBuilderpublic InspectionRuleSet getRuleSet(int index)
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.
repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;getRuleSet in interface InspectConfigOrBuilderpublic InspectionRuleSetOrBuilder getRuleSetOrBuilder(int index)
Set of rules to apply to the findings for this InspectConfig. Exclusion rules, contained in the set are executed in the end, other rules are executed in the order they are specified for each info type.
repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;getRuleSetOrBuilder in interface InspectConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static InspectConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InspectConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static InspectConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InspectConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InspectConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InspectConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InspectConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InspectConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InspectConfig.Builder newBuilder()
public static InspectConfig.Builder newBuilder(InspectConfig prototype)
public InspectConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InspectConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InspectConfig getDefaultInstance()
public static com.google.protobuf.Parser<InspectConfig> parser()
public com.google.protobuf.Parser<InspectConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InspectConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.