1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/privacy/dlp/v2/dlp.proto 18 19 package com.google.privacy.dlp.v2; 20 21 public interface TransformationConfigOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.TransformationConfig) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * De-identify template. 31 * If this template is specified, it will serve as the default de-identify 32 * template. This template cannot contain `record_transformations` since it 33 * can be used for unstructured content such as free-form text files. If this 34 * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to 35 * de-identify unstructured content. 36 * </pre> 37 * 38 * <code>string deidentify_template = 1;</code> 39 * 40 * @return The deidentifyTemplate. 41 */ getDeidentifyTemplate()42 java.lang.String getDeidentifyTemplate(); 43 /** 44 * 45 * 46 * <pre> 47 * De-identify template. 48 * If this template is specified, it will serve as the default de-identify 49 * template. This template cannot contain `record_transformations` since it 50 * can be used for unstructured content such as free-form text files. If this 51 * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to 52 * de-identify unstructured content. 53 * </pre> 54 * 55 * <code>string deidentify_template = 1;</code> 56 * 57 * @return The bytes for deidentifyTemplate. 58 */ getDeidentifyTemplateBytes()59 com.google.protobuf.ByteString getDeidentifyTemplateBytes(); 60 61 /** 62 * 63 * 64 * <pre> 65 * Structured de-identify template. 66 * If this template is specified, it will serve as the de-identify template 67 * for structured content such as delimited files and tables. If this template 68 * is not set but the `deidentify_template` is set, then `deidentify_template` 69 * will also apply to the structured content. If neither template is set, a 70 * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured 71 * content. 72 * </pre> 73 * 74 * <code>string structured_deidentify_template = 2;</code> 75 * 76 * @return The structuredDeidentifyTemplate. 77 */ getStructuredDeidentifyTemplate()78 java.lang.String getStructuredDeidentifyTemplate(); 79 /** 80 * 81 * 82 * <pre> 83 * Structured de-identify template. 84 * If this template is specified, it will serve as the de-identify template 85 * for structured content such as delimited files and tables. If this template 86 * is not set but the `deidentify_template` is set, then `deidentify_template` 87 * will also apply to the structured content. If neither template is set, a 88 * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured 89 * content. 90 * </pre> 91 * 92 * <code>string structured_deidentify_template = 2;</code> 93 * 94 * @return The bytes for structuredDeidentifyTemplate. 95 */ getStructuredDeidentifyTemplateBytes()96 com.google.protobuf.ByteString getStructuredDeidentifyTemplateBytes(); 97 98 /** 99 * 100 * 101 * <pre> 102 * Image redact template. 103 * If this template is specified, it will serve as the de-identify template 104 * for images. If this template is not set, all findings in the image will be 105 * redacted with a black box. 106 * </pre> 107 * 108 * <code>string image_redact_template = 4;</code> 109 * 110 * @return The imageRedactTemplate. 111 */ getImageRedactTemplate()112 java.lang.String getImageRedactTemplate(); 113 /** 114 * 115 * 116 * <pre> 117 * Image redact template. 118 * If this template is specified, it will serve as the de-identify template 119 * for images. If this template is not set, all findings in the image will be 120 * redacted with a black box. 121 * </pre> 122 * 123 * <code>string image_redact_template = 4;</code> 124 * 125 * @return The bytes for imageRedactTemplate. 126 */ getImageRedactTemplateBytes()127 com.google.protobuf.ByteString getImageRedactTemplateBytes(); 128 } 129