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 DeidentifyContentRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DeidentifyContentRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Parent resource name. 31 * The format of this value varies depending on whether you have [specified a 32 * processing 33 * location](https://cloud.google.com/dlp/docs/specifying-location): 34 * + Projects scope, location specified:<br/> 35 * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> 36 * + Projects scope, no location specified (defaults to global):<br/> 37 * `projects/`<var>PROJECT_ID</var> 38 * The following example `parent` string specifies a parent project with the 39 * identifier `example-project`, and specifies the `europe-west3` location 40 * for processing data: 41 * parent=projects/example-project/locations/europe-west3 42 * </pre> 43 * 44 * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code> 45 * 46 * @return The parent. 47 */ getParent()48 java.lang.String getParent(); 49 /** 50 * 51 * 52 * <pre> 53 * Parent resource name. 54 * The format of this value varies depending on whether you have [specified a 55 * processing 56 * location](https://cloud.google.com/dlp/docs/specifying-location): 57 * + Projects scope, location specified:<br/> 58 * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> 59 * + Projects scope, no location specified (defaults to global):<br/> 60 * `projects/`<var>PROJECT_ID</var> 61 * The following example `parent` string specifies a parent project with the 62 * identifier `example-project`, and specifies the `europe-west3` location 63 * for processing data: 64 * parent=projects/example-project/locations/europe-west3 65 * </pre> 66 * 67 * <code>string parent = 1 [(.google.api.resource_reference) = { ... }</code> 68 * 69 * @return The bytes for parent. 70 */ getParentBytes()71 com.google.protobuf.ByteString getParentBytes(); 72 73 /** 74 * 75 * 76 * <pre> 77 * Configuration for the de-identification of the content item. 78 * Items specified here will override the template referenced by the 79 * deidentify_template_name argument. 80 * </pre> 81 * 82 * <code>.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;</code> 83 * 84 * @return Whether the deidentifyConfig field is set. 85 */ hasDeidentifyConfig()86 boolean hasDeidentifyConfig(); 87 /** 88 * 89 * 90 * <pre> 91 * Configuration for the de-identification of the content item. 92 * Items specified here will override the template referenced by the 93 * deidentify_template_name argument. 94 * </pre> 95 * 96 * <code>.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;</code> 97 * 98 * @return The deidentifyConfig. 99 */ getDeidentifyConfig()100 com.google.privacy.dlp.v2.DeidentifyConfig getDeidentifyConfig(); 101 /** 102 * 103 * 104 * <pre> 105 * Configuration for the de-identification of the content item. 106 * Items specified here will override the template referenced by the 107 * deidentify_template_name argument. 108 * </pre> 109 * 110 * <code>.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2;</code> 111 */ getDeidentifyConfigOrBuilder()112 com.google.privacy.dlp.v2.DeidentifyConfigOrBuilder getDeidentifyConfigOrBuilder(); 113 114 /** 115 * 116 * 117 * <pre> 118 * Configuration for the inspector. 119 * Items specified here will override the template referenced by the 120 * inspect_template_name argument. 121 * </pre> 122 * 123 * <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 3;</code> 124 * 125 * @return Whether the inspectConfig field is set. 126 */ hasInspectConfig()127 boolean hasInspectConfig(); 128 /** 129 * 130 * 131 * <pre> 132 * Configuration for the inspector. 133 * Items specified here will override the template referenced by the 134 * inspect_template_name argument. 135 * </pre> 136 * 137 * <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 3;</code> 138 * 139 * @return The inspectConfig. 140 */ getInspectConfig()141 com.google.privacy.dlp.v2.InspectConfig getInspectConfig(); 142 /** 143 * 144 * 145 * <pre> 146 * Configuration for the inspector. 147 * Items specified here will override the template referenced by the 148 * inspect_template_name argument. 149 * </pre> 150 * 151 * <code>.google.privacy.dlp.v2.InspectConfig inspect_config = 3;</code> 152 */ getInspectConfigOrBuilder()153 com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilder(); 154 155 /** 156 * 157 * 158 * <pre> 159 * The item to de-identify. Will be treated as text. 160 * This value must be of type 161 * [Table][google.privacy.dlp.v2.Table] if your 162 * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] 163 * is a 164 * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] 165 * object. 166 * </pre> 167 * 168 * <code>.google.privacy.dlp.v2.ContentItem item = 4;</code> 169 * 170 * @return Whether the item field is set. 171 */ hasItem()172 boolean hasItem(); 173 /** 174 * 175 * 176 * <pre> 177 * The item to de-identify. Will be treated as text. 178 * This value must be of type 179 * [Table][google.privacy.dlp.v2.Table] if your 180 * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] 181 * is a 182 * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] 183 * object. 184 * </pre> 185 * 186 * <code>.google.privacy.dlp.v2.ContentItem item = 4;</code> 187 * 188 * @return The item. 189 */ getItem()190 com.google.privacy.dlp.v2.ContentItem getItem(); 191 /** 192 * 193 * 194 * <pre> 195 * The item to de-identify. Will be treated as text. 196 * This value must be of type 197 * [Table][google.privacy.dlp.v2.Table] if your 198 * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] 199 * is a 200 * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] 201 * object. 202 * </pre> 203 * 204 * <code>.google.privacy.dlp.v2.ContentItem item = 4;</code> 205 */ getItemOrBuilder()206 com.google.privacy.dlp.v2.ContentItemOrBuilder getItemOrBuilder(); 207 208 /** 209 * 210 * 211 * <pre> 212 * Template to use. Any configuration directly specified in 213 * inspect_config will override those set in the template. Singular fields 214 * that are set in this request will replace their corresponding fields in the 215 * template. Repeated fields are appended. Singular sub-messages and groups 216 * are recursively merged. 217 * </pre> 218 * 219 * <code>string inspect_template_name = 5;</code> 220 * 221 * @return The inspectTemplateName. 222 */ getInspectTemplateName()223 java.lang.String getInspectTemplateName(); 224 /** 225 * 226 * 227 * <pre> 228 * Template to use. Any configuration directly specified in 229 * inspect_config will override those set in the template. Singular fields 230 * that are set in this request will replace their corresponding fields in the 231 * template. Repeated fields are appended. Singular sub-messages and groups 232 * are recursively merged. 233 * </pre> 234 * 235 * <code>string inspect_template_name = 5;</code> 236 * 237 * @return The bytes for inspectTemplateName. 238 */ getInspectTemplateNameBytes()239 com.google.protobuf.ByteString getInspectTemplateNameBytes(); 240 241 /** 242 * 243 * 244 * <pre> 245 * Template to use. Any configuration directly specified in 246 * deidentify_config will override those set in the template. Singular fields 247 * that are set in this request will replace their corresponding fields in the 248 * template. Repeated fields are appended. Singular sub-messages and groups 249 * are recursively merged. 250 * </pre> 251 * 252 * <code>string deidentify_template_name = 6;</code> 253 * 254 * @return The deidentifyTemplateName. 255 */ getDeidentifyTemplateName()256 java.lang.String getDeidentifyTemplateName(); 257 /** 258 * 259 * 260 * <pre> 261 * Template to use. Any configuration directly specified in 262 * deidentify_config will override those set in the template. Singular fields 263 * that are set in this request will replace their corresponding fields in the 264 * template. Repeated fields are appended. Singular sub-messages and groups 265 * are recursively merged. 266 * </pre> 267 * 268 * <code>string deidentify_template_name = 6;</code> 269 * 270 * @return The bytes for deidentifyTemplateName. 271 */ getDeidentifyTemplateNameBytes()272 com.google.protobuf.ByteString getDeidentifyTemplateNameBytes(); 273 274 /** 275 * 276 * 277 * <pre> 278 * Deprecated. This field has no effect. 279 * </pre> 280 * 281 * <code>string location_id = 7;</code> 282 * 283 * @return The locationId. 284 */ getLocationId()285 java.lang.String getLocationId(); 286 /** 287 * 288 * 289 * <pre> 290 * Deprecated. This field has no effect. 291 * </pre> 292 * 293 * <code>string location_id = 7;</code> 294 * 295 * @return The bytes for locationId. 296 */ getLocationIdBytes()297 com.google.protobuf.ByteString getLocationIdBytes(); 298 } 299