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