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 FieldTransformationOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.FieldTransformation) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. Input field(s) to apply the transformation to. 31 * When you have columns that reference their position within a list, 32 * omit the index from the FieldId. FieldId name matching ignores the index. 33 * For example, instead of "contact.nums[0].type", use "contact.nums.type". 34 * </pre> 35 * 36 * <code> 37 * repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; 38 * </code> 39 */ getFieldsList()40 java.util.List<com.google.privacy.dlp.v2.FieldId> getFieldsList(); 41 /** 42 * 43 * 44 * <pre> 45 * Required. Input field(s) to apply the transformation to. 46 * When you have columns that reference their position within a list, 47 * omit the index from the FieldId. FieldId name matching ignores the index. 48 * For example, instead of "contact.nums[0].type", use "contact.nums.type". 49 * </pre> 50 * 51 * <code> 52 * repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; 53 * </code> 54 */ getFields(int index)55 com.google.privacy.dlp.v2.FieldId getFields(int index); 56 /** 57 * 58 * 59 * <pre> 60 * Required. Input field(s) to apply the transformation to. 61 * When you have columns that reference their position within a list, 62 * omit the index from the FieldId. FieldId name matching ignores the index. 63 * For example, instead of "contact.nums[0].type", use "contact.nums.type". 64 * </pre> 65 * 66 * <code> 67 * repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; 68 * </code> 69 */ getFieldsCount()70 int getFieldsCount(); 71 /** 72 * 73 * 74 * <pre> 75 * Required. Input field(s) to apply the transformation to. 76 * When you have columns that reference their position within a list, 77 * omit the index from the FieldId. FieldId name matching ignores the index. 78 * For example, instead of "contact.nums[0].type", use "contact.nums.type". 79 * </pre> 80 * 81 * <code> 82 * repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; 83 * </code> 84 */ getFieldsOrBuilderList()85 java.util.List<? extends com.google.privacy.dlp.v2.FieldIdOrBuilder> getFieldsOrBuilderList(); 86 /** 87 * 88 * 89 * <pre> 90 * Required. Input field(s) to apply the transformation to. 91 * When you have columns that reference their position within a list, 92 * omit the index from the FieldId. FieldId name matching ignores the index. 93 * For example, instead of "contact.nums[0].type", use "contact.nums.type". 94 * </pre> 95 * 96 * <code> 97 * repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; 98 * </code> 99 */ getFieldsOrBuilder(int index)100 com.google.privacy.dlp.v2.FieldIdOrBuilder getFieldsOrBuilder(int index); 101 102 /** 103 * 104 * 105 * <pre> 106 * Only apply the transformation if the condition evaluates to true for the 107 * given `RecordCondition`. The conditions are allowed to reference fields 108 * that are not used in the actual transformation. 109 * Example Use Cases: 110 * - Apply a different bucket transformation to an age column if the zip code 111 * column for the same record is within a specific range. 112 * - Redact a field if the date of birth field is greater than 85. 113 * </pre> 114 * 115 * <code>.google.privacy.dlp.v2.RecordCondition condition = 3;</code> 116 * 117 * @return Whether the condition field is set. 118 */ hasCondition()119 boolean hasCondition(); 120 /** 121 * 122 * 123 * <pre> 124 * Only apply the transformation if the condition evaluates to true for the 125 * given `RecordCondition`. The conditions are allowed to reference fields 126 * that are not used in the actual transformation. 127 * Example Use Cases: 128 * - Apply a different bucket transformation to an age column if the zip code 129 * column for the same record is within a specific range. 130 * - Redact a field if the date of birth field is greater than 85. 131 * </pre> 132 * 133 * <code>.google.privacy.dlp.v2.RecordCondition condition = 3;</code> 134 * 135 * @return The condition. 136 */ getCondition()137 com.google.privacy.dlp.v2.RecordCondition getCondition(); 138 /** 139 * 140 * 141 * <pre> 142 * Only apply the transformation if the condition evaluates to true for the 143 * given `RecordCondition`. The conditions are allowed to reference fields 144 * that are not used in the actual transformation. 145 * Example Use Cases: 146 * - Apply a different bucket transformation to an age column if the zip code 147 * column for the same record is within a specific range. 148 * - Redact a field if the date of birth field is greater than 85. 149 * </pre> 150 * 151 * <code>.google.privacy.dlp.v2.RecordCondition condition = 3;</code> 152 */ getConditionOrBuilder()153 com.google.privacy.dlp.v2.RecordConditionOrBuilder getConditionOrBuilder(); 154 155 /** 156 * 157 * 158 * <pre> 159 * Apply the transformation to the entire field. 160 * </pre> 161 * 162 * <code>.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;</code> 163 * 164 * @return Whether the primitiveTransformation field is set. 165 */ hasPrimitiveTransformation()166 boolean hasPrimitiveTransformation(); 167 /** 168 * 169 * 170 * <pre> 171 * Apply the transformation to the entire field. 172 * </pre> 173 * 174 * <code>.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;</code> 175 * 176 * @return The primitiveTransformation. 177 */ getPrimitiveTransformation()178 com.google.privacy.dlp.v2.PrimitiveTransformation getPrimitiveTransformation(); 179 /** 180 * 181 * 182 * <pre> 183 * Apply the transformation to the entire field. 184 * </pre> 185 * 186 * <code>.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4;</code> 187 */ getPrimitiveTransformationOrBuilder()188 com.google.privacy.dlp.v2.PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder(); 189 190 /** 191 * 192 * 193 * <pre> 194 * Treat the contents of the field as free text, and selectively 195 * transform content that matches an `InfoType`. 196 * </pre> 197 * 198 * <code>.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;</code> 199 * 200 * @return Whether the infoTypeTransformations field is set. 201 */ hasInfoTypeTransformations()202 boolean hasInfoTypeTransformations(); 203 /** 204 * 205 * 206 * <pre> 207 * Treat the contents of the field as free text, and selectively 208 * transform content that matches an `InfoType`. 209 * </pre> 210 * 211 * <code>.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;</code> 212 * 213 * @return The infoTypeTransformations. 214 */ getInfoTypeTransformations()215 com.google.privacy.dlp.v2.InfoTypeTransformations getInfoTypeTransformations(); 216 /** 217 * 218 * 219 * <pre> 220 * Treat the contents of the field as free text, and selectively 221 * transform content that matches an `InfoType`. 222 * </pre> 223 * 224 * <code>.google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5;</code> 225 */ getInfoTypeTransformationsOrBuilder()226 com.google.privacy.dlp.v2.InfoTypeTransformationsOrBuilder getInfoTypeTransformationsOrBuilder(); 227 getTransformationCase()228 public com.google.privacy.dlp.v2.FieldTransformation.TransformationCase getTransformationCase(); 229 } 230