Class DLPInspectText.Builder
java.lang.Object
org.apache.beam.sdk.extensions.ml.DLPInspectText.Builder
- Enclosing class:
DLPInspectText
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()abstract DLPInspectText.BuildersetBatchSizeBytes(int batchSize) Sets size of input elements batch to be sent to Cloud DLP service in one request.abstract DLPInspectText.BuildersetColumnDelimiter(String delimiter) Sets delimiter to be used when splitting values from input strings into columns.abstract DLPInspectText.BuildersetHeaderColumns(PCollectionView<List<String>> headerColumns) Sets list of column names if the input KV value is a delimited row.abstract DLPInspectText.BuildersetInspectConfig(com.google.privacy.dlp.v2.InspectConfig inspectConfig) Sets configuration object for data inspection.abstract DLPInspectText.BuildersetInspectTemplateName(String inspectTemplateName) Sets template name for data inspection.abstract DLPInspectText.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.
-
setInspectConfig
public abstract DLPInspectText.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.
-
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.
-
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.
-
setHeaderColumns
public abstract DLPInspectText.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.
-
build
-