Class DLPReidentifyText.Builder
java.lang.Object
org.apache.beam.sdk.extensions.ml.DLPReidentifyText.Builder
- Enclosing class:
DLPReidentifyText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()abstract DLPReidentifyText.BuildersetBatchSizeBytes(int batchSize) Sets size of input elements batch to be sent to Cloud DLP service in one request.abstract DLPReidentifyText.BuildersetColumnDelimiter(String delimiter) Sets delimiter to be used when splitting values from input strings into columns.abstract DLPReidentifyText.BuildersetHeaderColumns(PCollectionView<List<String>> headerColumns) Sets list of column names if the input KV value is a delimited row.abstract DLPReidentifyText.BuildersetInspectConfig(com.google.privacy.dlp.v2.InspectConfig inspectConfig) Sets configuration object for data inspection.abstract DLPReidentifyText.BuildersetInspectTemplateName(String inspectTemplateName) Sets template name for data inspection.abstract DLPReidentifyText.BuildersetProjectId(String projectId) Sets ID of Google Cloud project to be used when deidentifying data.abstract DLPReidentifyText.BuildersetReidentifyConfig(com.google.privacy.dlp.v2.DeidentifyConfig reidentifyConfig) Sets configuration object for data deidentification.abstract DLPReidentifyText.BuildersetReidentifyTemplateName(String reidentifyTemplateName) Sets template name for data deidentification.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setInspectTemplateName
Sets template name for data inspection.- Parameters:
inspectTemplateName- Template name for data inspection.
-
setInspectConfig
public abstract DLPReidentifyText.Builder setInspectConfig(com.google.privacy.dlp.v2.InspectConfig inspectConfig) Sets configuration object for data inspection.- Parameters:
inspectConfig- Configuration object for data inspection. If present, supersedes the template settings.
-
setReidentifyConfig
public abstract DLPReidentifyText.Builder setReidentifyConfig(com.google.privacy.dlp.v2.DeidentifyConfig reidentifyConfig) Sets configuration object for data deidentification.- Parameters:
reidentifyConfig- Configuration object for data deidentification. If present, supersedes the template settings.
-
setReidentifyTemplateName
Sets template name for data deidentification.- Parameters:
reidentifyTemplateName- Template name for data deidentification.
-
setBatchSizeBytes
Sets size of input elements batch to be sent to Cloud DLP service in one request.- Parameters:
batchSize- Size of input elements batch to be sent to Cloud DLP service in one request.
-
setHeaderColumns
public abstract DLPReidentifyText.Builder setHeaderColumns(PCollectionView<List<String>> headerColumns) Sets list of column names if the input KV value is a delimited row.- Parameters:
headerColumns- List of column names if the input KV value is a delimited row.
-
setColumnDelimiter
Sets delimiter to be used when splitting values from input strings into columns.- Parameters:
delimiter- Delimiter to be used when splitting values from input strings into columns.
-
setProjectId
Sets ID of Google Cloud project to be used when deidentifying data.- Parameters:
projectId- ID of Google Cloud project to be used when deidentifying data.
-
build
-