Package com.google.privacy.dlp.v2
Class DataProfileJobConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.privacy.dlp.v2.DataProfileJobConfig
-
- All Implemented Interfaces:
DataProfileJobConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class DataProfileJobConfig extends com.google.protobuf.GeneratedMessageV3 implements DataProfileJobConfigOrBuilder
Configuration for setting up a job to scan resources for profile generation. Only one data profile configuration may exist per organization, folder, or project. The generated data profiles are retained according to the [data retention policy] (https://cloud.google.com/dlp/docs/data-profiles#retention).
Protobuf typegoogle.privacy.dlp.v2.DataProfileJobConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataProfileJobConfig.BuilderConfiguration for setting up a job to scan resources for profile generation.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDATA_PROFILE_ACTIONS_FIELD_NUMBERstatic intINSPECT_TEMPLATES_FIELD_NUMBERstatic intLOCATION_FIELD_NUMBERstatic intPROJECT_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DataProfileActiongetDataProfileActions(int index)Actions to execute at the completion of the job.intgetDataProfileActionsCount()Actions to execute at the completion of the job.List<DataProfileAction>getDataProfileActionsList()Actions to execute at the completion of the job.DataProfileActionOrBuildergetDataProfileActionsOrBuilder(int index)Actions to execute at the completion of the job.List<? extends DataProfileActionOrBuilder>getDataProfileActionsOrBuilderList()Actions to execute at the completion of the job.static DataProfileJobConfiggetDefaultInstance()DataProfileJobConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetInspectTemplates(int index)Detection logic for profile generation.com.google.protobuf.ByteStringgetInspectTemplatesBytes(int index)Detection logic for profile generation.intgetInspectTemplatesCount()Detection logic for profile generation.com.google.protobuf.ProtocolStringListgetInspectTemplatesList()Detection logic for profile generation.DataProfileLocationgetLocation()The data to scan.DataProfileLocationOrBuildergetLocationOrBuilder()The data to scan.com.google.protobuf.Parser<DataProfileJobConfig>getParserForType()StringgetProjectId()The project that will run the scan.com.google.protobuf.ByteStringgetProjectIdBytes()The project that will run the scan.intgetSerializedSize()inthashCode()booleanhasLocation()The data to scan.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DataProfileJobConfig.BuildernewBuilder()static DataProfileJobConfig.BuildernewBuilder(DataProfileJobConfig prototype)DataProfileJobConfig.BuildernewBuilderForType()protected DataProfileJobConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DataProfileJobConfigparseDelimitedFrom(InputStream input)static DataProfileJobConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataProfileJobConfigparseFrom(byte[] data)static DataProfileJobConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataProfileJobConfigparseFrom(com.google.protobuf.ByteString data)static DataProfileJobConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataProfileJobConfigparseFrom(com.google.protobuf.CodedInputStream input)static DataProfileJobConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataProfileJobConfigparseFrom(InputStream input)static DataProfileJobConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataProfileJobConfigparseFrom(ByteBuffer data)static DataProfileJobConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DataProfileJobConfig>parser()DataProfileJobConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INSPECT_TEMPLATES_FIELD_NUMBER
public static final int INSPECT_TEMPLATES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_PROFILE_ACTIONS_FIELD_NUMBER
public static final int DATA_PROFILE_ACTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasLocation
public boolean hasLocation()
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
hasLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- Whether the location field is set.
-
getLocation
public DataProfileLocation getLocation()
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- The location.
-
getLocationOrBuilder
public DataProfileLocationOrBuilder getLocationOrBuilder()
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
getProjectId
public String getProjectId()
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.
string project_id = 5;- Specified by:
getProjectIdin interfaceDataProfileJobConfigOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()
The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.
string project_id = 5;- Specified by:
getProjectIdBytesin interfaceDataProfileJobConfigOrBuilder- Returns:
- The bytes for projectId.
-
getInspectTemplatesList
public com.google.protobuf.ProtocolStringList getInspectTemplatesList()
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency.
repeated string inspect_templates = 7;- Specified by:
getInspectTemplatesListin interfaceDataProfileJobConfigOrBuilder- Returns:
- A list containing the inspectTemplates.
-
getInspectTemplatesCount
public int getInspectTemplatesCount()
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency.
repeated string inspect_templates = 7;- Specified by:
getInspectTemplatesCountin interfaceDataProfileJobConfigOrBuilder- Returns:
- The count of inspectTemplates.
-
getInspectTemplates
public String getInspectTemplates(int index)
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency.
repeated string inspect_templates = 7;- Specified by:
getInspectTemplatesin interfaceDataProfileJobConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inspectTemplates at the given index.
-
getInspectTemplatesBytes
public com.google.protobuf.ByteString getInspectTemplatesBytes(int index)
Detection logic for profile generation. Not all template features are used by profiles. FindingLimits, include_quote and exclude_info_types have no impact on data profiling. Multiple templates may be provided if there is data in multiple regions. At most one template must be specified per-region (including "global"). Each region is scanned using the applicable template. If no region-specific template is specified, but a "global" template is specified, it will be copied to that region and used instead. If no global or region-specific template is provided for a region with data, that region's data will not be scanned. For more information, see https://cloud.google.com/dlp/docs/data-profiles#data_residency.
repeated string inspect_templates = 7;- Specified by:
getInspectTemplatesBytesin interfaceDataProfileJobConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inspectTemplates at the given index.
-
getDataProfileActionsList
public List<DataProfileAction> getDataProfileActionsList()
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsListin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsOrBuilderList
public List<? extends DataProfileActionOrBuilder> getDataProfileActionsOrBuilderList()
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsOrBuilderListin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsCount
public int getDataProfileActionsCount()
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsCountin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActions
public DataProfileAction getDataProfileActions(int index)
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsOrBuilder
public DataProfileActionOrBuilder getDataProfileActionsOrBuilder(int index)
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataProfileJobConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataProfileJobConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DataProfileJobConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DataProfileJobConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DataProfileJobConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DataProfileJobConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DataProfileJobConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DataProfileJobConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DataProfileJobConfig.Builder newBuilder()
-
newBuilder
public static DataProfileJobConfig.Builder newBuilder(DataProfileJobConfig prototype)
-
toBuilder
public DataProfileJobConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataProfileJobConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DataProfileJobConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DataProfileJobConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<DataProfileJobConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DataProfileJobConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-