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 class
DataProfileJobConfig.Builder
Configuration 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 int
DATA_PROFILE_ACTIONS_FIELD_NUMBER
static int
INSPECT_TEMPLATES_FIELD_NUMBER
static int
LOCATION_FIELD_NUMBER
static int
PROJECT_ID_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
DataProfileAction
getDataProfileActions(int index)
Actions to execute at the completion of the job.int
getDataProfileActionsCount()
Actions to execute at the completion of the job.List<DataProfileAction>
getDataProfileActionsList()
Actions to execute at the completion of the job.DataProfileActionOrBuilder
getDataProfileActionsOrBuilder(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 DataProfileJobConfig
getDefaultInstance()
DataProfileJobConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getInspectTemplates(int index)
Detection logic for profile generation.com.google.protobuf.ByteString
getInspectTemplatesBytes(int index)
Detection logic for profile generation.int
getInspectTemplatesCount()
Detection logic for profile generation.com.google.protobuf.ProtocolStringList
getInspectTemplatesList()
Detection logic for profile generation.DataProfileLocation
getLocation()
The data to scan.DataProfileLocationOrBuilder
getLocationOrBuilder()
The data to scan.com.google.protobuf.Parser<DataProfileJobConfig>
getParserForType()
String
getProjectId()
The project that will run the scan.com.google.protobuf.ByteString
getProjectIdBytes()
The project that will run the scan.int
getSerializedSize()
int
hashCode()
boolean
hasLocation()
The data to scan.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static DataProfileJobConfig.Builder
newBuilder()
static DataProfileJobConfig.Builder
newBuilder(DataProfileJobConfig prototype)
DataProfileJobConfig.Builder
newBuilderForType()
protected DataProfileJobConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static DataProfileJobConfig
parseDelimitedFrom(InputStream input)
static DataProfileJobConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DataProfileJobConfig
parseFrom(byte[] data)
static DataProfileJobConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DataProfileJobConfig
parseFrom(com.google.protobuf.ByteString data)
static DataProfileJobConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DataProfileJobConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static DataProfileJobConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DataProfileJobConfig
parseFrom(InputStream input)
static DataProfileJobConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static DataProfileJobConfig
parseFrom(ByteBuffer data)
static DataProfileJobConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<DataProfileJobConfig>
parser()
DataProfileJobConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasLocation
public boolean hasLocation()
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;
- Specified by:
hasLocation
in 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:
getLocation
in interfaceDataProfileJobConfigOrBuilder
- Returns:
- The location.
-
getLocationOrBuilder
public DataProfileLocationOrBuilder getLocationOrBuilder()
The data to scan.
.google.privacy.dlp.v2.DataProfileLocation location = 1;
- Specified by:
getLocationOrBuilder
in 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:
getProjectId
in 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:
getProjectIdBytes
in 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:
getInspectTemplatesList
in 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:
getInspectTemplatesCount
in 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:
getInspectTemplates
in 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:
getInspectTemplatesBytes
in 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:
getDataProfileActionsList
in 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:
getDataProfileActionsOrBuilderList
in 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:
getDataProfileActionsCount
in 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:
getDataProfileActions
in 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:
getDataProfileActionsOrBuilder
in interfaceDataProfileJobConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataProfileJobConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DataProfileJobConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-