Class DLPDeidentifyText.Builder

  • Enclosing class:
    DLPDeidentifyText

    public abstract static class DLPDeidentifyText.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setInspectTemplateName

        public abstract DLPDeidentifyText.Builder setInspectTemplateName​(java.lang.String inspectTemplateName)
        Sets template name for data inspection.
        Parameters:
        inspectTemplateName - Template name for data inspection.
      • setHeaderColumns

        public abstract DLPDeidentifyText.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 DLPDeidentifyText.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.
      • setBatchSizeBytes

        public abstract DLPDeidentifyText.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.
      • setProjectId

        public abstract DLPDeidentifyText.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.
      • setDeidentifyTemplateName

        public abstract DLPDeidentifyText.Builder setDeidentifyTemplateName​(java.lang.String deidentifyTemplateName)
        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.