public final class InspectConfig extends 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.v2beta1.InspectConfig
Modifier and Type | Class and Description |
---|---|
static class |
InspectConfig.Builder
Configuration description of the scanning process.
|
static class |
InspectConfig.InfoTypeLimit
Max findings configuration per info type, per content item or long running
operation.
|
static interface |
InspectConfig.InfoTypeLimitOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CUSTOM_INFO_TYPES_FIELD_NUMBER |
static int |
EXCLUDE_TYPES_FIELD_NUMBER |
static int |
INCLUDE_QUOTE_FIELD_NUMBER |
static int |
INFO_TYPE_LIMITS_FIELD_NUMBER |
static int |
INFO_TYPES_FIELD_NUMBER |
static int |
MAX_FINDINGS_FIELD_NUMBER |
static int |
MIN_LIKELIHOOD_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
CustomInfoType |
getCustomInfoTypes(int index)
Custom info types provided by the user.
|
int |
getCustomInfoTypesCount()
Custom info types provided by the user.
|
java.util.List<CustomInfoType> |
getCustomInfoTypesList()
Custom info types provided by the user.
|
CustomInfoTypeOrBuilder |
getCustomInfoTypesOrBuilder(int index)
Custom info types provided by the user.
|
java.util.List<? extends CustomInfoTypeOrBuilder> |
getCustomInfoTypesOrBuilderList()
Custom info types provided by the user.
|
static InspectConfig |
getDefaultInstance() |
InspectConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
boolean |
getExcludeTypes()
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.
|
InspectConfig.InfoTypeLimit |
getInfoTypeLimits(int index)
Configuration of findings limit given for specified info types.
|
int |
getInfoTypeLimitsCount()
Configuration of findings limit given for specified info types.
|
java.util.List<InspectConfig.InfoTypeLimit> |
getInfoTypeLimitsList()
Configuration of findings limit given for specified info types.
|
InspectConfig.InfoTypeLimitOrBuilder |
getInfoTypeLimitsOrBuilder(int index)
Configuration of findings limit given for specified info types.
|
java.util.List<? extends InspectConfig.InfoTypeLimitOrBuilder> |
getInfoTypeLimitsOrBuilderList()
Configuration of findings limit given for specified info types.
|
InfoType |
getInfoTypes(int index)
Restricts what info_types to look for.
|
int |
getInfoTypesCount()
Restricts what info_types to look for.
|
java.util.List<InfoType> |
getInfoTypesList()
Restricts what info_types to look for.
|
InfoTypeOrBuilder |
getInfoTypesOrBuilder(int index)
Restricts what info_types to look for.
|
java.util.List<? extends InfoTypeOrBuilder> |
getInfoTypesOrBuilderList()
Restricts what info_types to look for.
|
int |
getMaxFindings()
Limits the number of findings per content item or long running operation.
|
Likelihood |
getMinLikelihood()
Only returns findings equal or above this threshold.
|
int |
getMinLikelihoodValue()
Only returns findings equal or above this threshold.
|
Parser<InspectConfig> |
getParserForType() |
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InspectConfig.Builder |
newBuilder() |
static InspectConfig.Builder |
newBuilder(InspectConfig prototype) |
InspectConfig.Builder |
newBuilderForType() |
protected InspectConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static InspectConfig |
parseDelimitedFrom(java.io.InputStream input) |
static InspectConfig |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(byte[] data) |
static InspectConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(java.nio.ByteBuffer data) |
static InspectConfig |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(ByteString data) |
static InspectConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(CodedInputStream input) |
static InspectConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static InspectConfig |
parseFrom(java.io.InputStream input) |
static InspectConfig |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<InspectConfig> |
parser() |
InspectConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int INFO_TYPES_FIELD_NUMBER
public static final int MIN_LIKELIHOOD_FIELD_NUMBER
public static final int MAX_FINDINGS_FIELD_NUMBER
public static final int INCLUDE_QUOTE_FIELD_NUMBER
public static final int EXCLUDE_TYPES_FIELD_NUMBER
public static final int INFO_TYPE_LIMITS_FIELD_NUMBER
public static final int CUSTOM_INFO_TYPES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public java.util.List<InfoType> getInfoTypesList()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.
repeated .google.privacy.dlp.v2beta1.InfoType info_types = 1;
getInfoTypesList
in interface InspectConfigOrBuilder
public java.util.List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.
repeated .google.privacy.dlp.v2beta1.InfoType info_types = 1;
getInfoTypesOrBuilderList
in interface InspectConfigOrBuilder
public int getInfoTypesCount()
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.
repeated .google.privacy.dlp.v2beta1.InfoType info_types = 1;
getInfoTypesCount
in interface InspectConfigOrBuilder
public InfoType getInfoTypes(int index)
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.
repeated .google.privacy.dlp.v2beta1.InfoType info_types = 1;
getInfoTypes
in interface InspectConfigOrBuilder
public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)
Restricts what info_types to look for. The values must correspond to InfoType values returned by ListInfoTypes or found in documentation. Empty info_types runs all enabled detectors.
repeated .google.privacy.dlp.v2beta1.InfoType info_types = 1;
getInfoTypesOrBuilder
in interface InspectConfigOrBuilder
public int getMinLikelihoodValue()
Only returns findings equal or above this threshold.
.google.privacy.dlp.v2beta1.Likelihood min_likelihood = 2;
getMinLikelihoodValue
in interface InspectConfigOrBuilder
public Likelihood getMinLikelihood()
Only returns findings equal or above this threshold.
.google.privacy.dlp.v2beta1.Likelihood min_likelihood = 2;
getMinLikelihood
in interface InspectConfigOrBuilder
public int getMaxFindings()
Limits the number of findings per content item or long running operation.
int32 max_findings = 3;
getMaxFindings
in interface InspectConfigOrBuilder
public boolean getIncludeQuote()
When true, a contextual quote from the data that triggered a finding is included in the response; see Finding.quote.
bool include_quote = 4;
getIncludeQuote
in interface InspectConfigOrBuilder
public boolean getExcludeTypes()
When true, excludes type information of the findings.
bool exclude_types = 6;
getExcludeTypes
in interface InspectConfigOrBuilder
public java.util.List<InspectConfig.InfoTypeLimit> getInfoTypeLimitsList()
Configuration of findings limit given for specified info types.
repeated .google.privacy.dlp.v2beta1.InspectConfig.InfoTypeLimit info_type_limits = 7;
getInfoTypeLimitsList
in interface InspectConfigOrBuilder
public java.util.List<? extends InspectConfig.InfoTypeLimitOrBuilder> getInfoTypeLimitsOrBuilderList()
Configuration of findings limit given for specified info types.
repeated .google.privacy.dlp.v2beta1.InspectConfig.InfoTypeLimit info_type_limits = 7;
getInfoTypeLimitsOrBuilderList
in interface InspectConfigOrBuilder
public int getInfoTypeLimitsCount()
Configuration of findings limit given for specified info types.
repeated .google.privacy.dlp.v2beta1.InspectConfig.InfoTypeLimit info_type_limits = 7;
getInfoTypeLimitsCount
in interface InspectConfigOrBuilder
public InspectConfig.InfoTypeLimit getInfoTypeLimits(int index)
Configuration of findings limit given for specified info types.
repeated .google.privacy.dlp.v2beta1.InspectConfig.InfoTypeLimit info_type_limits = 7;
getInfoTypeLimits
in interface InspectConfigOrBuilder
public InspectConfig.InfoTypeLimitOrBuilder getInfoTypeLimitsOrBuilder(int index)
Configuration of findings limit given for specified info types.
repeated .google.privacy.dlp.v2beta1.InspectConfig.InfoTypeLimit info_type_limits = 7;
getInfoTypeLimitsOrBuilder
in interface InspectConfigOrBuilder
public java.util.List<CustomInfoType> getCustomInfoTypesList()
Custom info types provided by the user.
repeated .google.privacy.dlp.v2beta1.CustomInfoType custom_info_types = 8;
getCustomInfoTypesList
in interface InspectConfigOrBuilder
public java.util.List<? extends CustomInfoTypeOrBuilder> getCustomInfoTypesOrBuilderList()
Custom info types provided by the user.
repeated .google.privacy.dlp.v2beta1.CustomInfoType custom_info_types = 8;
getCustomInfoTypesOrBuilderList
in interface InspectConfigOrBuilder
public int getCustomInfoTypesCount()
Custom info types provided by the user.
repeated .google.privacy.dlp.v2beta1.CustomInfoType custom_info_types = 8;
getCustomInfoTypesCount
in interface InspectConfigOrBuilder
public CustomInfoType getCustomInfoTypes(int index)
Custom info types provided by the user.
repeated .google.privacy.dlp.v2beta1.CustomInfoType custom_info_types = 8;
getCustomInfoTypes
in interface InspectConfigOrBuilder
public CustomInfoTypeOrBuilder getCustomInfoTypesOrBuilder(int index)
Custom info types provided by the user.
repeated .google.privacy.dlp.v2beta1.CustomInfoType custom_info_types = 8;
getCustomInfoTypesOrBuilder
in interface InspectConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static InspectConfig parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InspectConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static InspectConfig parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static InspectConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static InspectConfig parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static InspectConfig parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static InspectConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public InspectConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static InspectConfig.Builder newBuilder()
public static InspectConfig.Builder newBuilder(InspectConfig prototype)
public InspectConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected InspectConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static InspectConfig getDefaultInstance()
public static Parser<InspectConfig> parser()
public Parser<InspectConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public InspectConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder