Package com.google.privacy.dlp.v2
Class DataProfileJobConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class DataProfileJobConfig
extends com.google.protobuf.GeneratedMessage
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/sensitive-data-protection/docs/data-profiles#retention).Protobuf type
google.privacy.dlp.v2.DataProfileJobConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for setting up a job to scan resources for profile generation.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDataProfileActions(int index) Actions to execute at the completion of the job.intActions to execute at the completion of the job.Actions to execute at the completion of the job.getDataProfileActionsOrBuilder(int index) Actions to execute at the completion of the job.List<? extends DataProfileActionOrBuilder>Actions to execute at the completion of the job.static DataProfileJobConfigstatic final com.google.protobuf.Descriptors.DescriptorgetInspectTemplates(int index) Detection logic for profile generation.com.google.protobuf.ByteStringgetInspectTemplatesBytes(int index) Detection logic for profile generation.intDetection logic for profile generation.com.google.protobuf.ProtocolStringListDetection logic for profile generation.The data to scan.The data to scan.Must be set only when scanning other clouds.Must be set only when scanning other clouds.com.google.protobuf.Parser<DataProfileJobConfig>The project that will run the scan.com.google.protobuf.ByteStringThe project that will run the scan.intinthashCode()booleanThe data to scan.booleanMust be set only when scanning other clouds.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DataProfileJobConfig.Builderstatic DataProfileJobConfig.BuildernewBuilder(DataProfileJobConfig prototype) protected DataProfileJobConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER- See Also:
-
OTHER_CLOUD_STARTING_LOCATION_FIELD_NUMBER
public static final int OTHER_CLOUD_STARTING_LOCATION_FIELD_NUMBER- See Also:
-
INSPECT_TEMPLATES_FIELD_NUMBER
public static final int INSPECT_TEMPLATES_FIELD_NUMBER- See Also:
-
DATA_PROFILE_ACTIONS_FIELD_NUMBER
public static final int DATA_PROFILE_ACTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- The location.
-
getLocationOrBuilder
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;- Specified by:
getLocationOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
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 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 DLP API must be enabled.
string project_id = 5;- Specified by:
getProjectIdBytesin interfaceDataProfileJobConfigOrBuilder- Returns:
- The bytes for projectId.
-
hasOtherCloudStartingLocation
public boolean hasOtherCloudStartingLocation()Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;- Specified by:
hasOtherCloudStartingLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- Whether the otherCloudStartingLocation field is set.
-
getOtherCloudStartingLocation
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;- Specified by:
getOtherCloudStartingLocationin interfaceDataProfileJobConfigOrBuilder- Returns:
- The otherCloudStartingLocation.
-
getOtherCloudStartingLocationOrBuilder
Must be set only when scanning other clouds.
.google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8;- Specified by:
getOtherCloudStartingLocationOrBuilderin interfaceDataProfileJobConfigOrBuilder
-
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/sensitive-data-protection/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/sensitive-data-protection/docs/data-profiles#data-residency.
repeated string inspect_templates = 7;- Specified by:
getInspectTemplatesCountin interfaceDataProfileJobConfigOrBuilder- Returns:
- The count of inspectTemplates.
-
getInspectTemplates
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/sensitive-data-protection/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/sensitive-data-protection/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
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsListin interfaceDataProfileJobConfigOrBuilder
-
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
Actions to execute at the completion of the job.
repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;- Specified by:
getDataProfileActionsin interfaceDataProfileJobConfigOrBuilder
-
getDataProfileActionsOrBuilder
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static DataProfileJobConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataProfileJobConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-