Class DLPReidentifyText.Builder
- java.lang.Object
-
- org.apache.beam.sdk.extensions.ml.DLPReidentifyText.Builder
-
- Enclosing class:
- DLPReidentifyText
public abstract static class DLPReidentifyText.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DLPReidentifyTextbuild()abstract DLPReidentifyText.BuildersetBatchSizeBytes(int batchSize)Sets size of input elements batch to be sent to Cloud DLP service in one request.abstract DLPReidentifyText.BuildersetColumnDelimiter(java.lang.String delimiter)Sets delimiter to be used when splitting values from input strings into columns.abstract DLPReidentifyText.BuildersetHeaderColumns(org.apache.beam.sdk.values.PCollectionView<java.util.List<java.lang.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(java.lang.String inspectTemplateName)Sets template name for data inspection.abstract DLPReidentifyText.BuildersetProjectId(java.lang.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(java.lang.String reidentifyTemplateName)Sets template name for data deidentification.
-
-
-
Method Detail
-
setInspectTemplateName
public abstract DLPReidentifyText.Builder setInspectTemplateName(java.lang.String inspectTemplateName)
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
public abstract DLPReidentifyText.Builder setReidentifyTemplateName(java.lang.String reidentifyTemplateName)
Sets template name for data deidentification.- Parameters:
reidentifyTemplateName- Template name for data deidentification.
-
setBatchSizeBytes
public abstract DLPReidentifyText.Builder setBatchSizeBytes(int batchSize)
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(org.apache.beam.sdk.values.PCollectionView<java.util.List<java.lang.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
public abstract DLPReidentifyText.Builder setColumnDelimiter(java.lang.String delimiter)
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
public abstract DLPReidentifyText.Builder setProjectId(java.lang.String projectId)
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
public DLPReidentifyText build()
-
-