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 ExclusionRuleOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ExclusionRule) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Dictionary which defines the rule. 31 * </pre> 32 * 33 * <code>.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;</code> 34 * 35 * @return Whether the dictionary field is set. 36 */ hasDictionary()37 boolean hasDictionary(); 38 /** 39 * 40 * 41 * <pre> 42 * Dictionary which defines the rule. 43 * </pre> 44 * 45 * <code>.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;</code> 46 * 47 * @return The dictionary. 48 */ getDictionary()49 com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary(); 50 /** 51 * 52 * 53 * <pre> 54 * Dictionary which defines the rule. 55 * </pre> 56 * 57 * <code>.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;</code> 58 */ getDictionaryOrBuilder()59 com.google.privacy.dlp.v2.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder(); 60 61 /** 62 * 63 * 64 * <pre> 65 * Regular expression which defines the rule. 66 * </pre> 67 * 68 * <code>.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;</code> 69 * 70 * @return Whether the regex field is set. 71 */ hasRegex()72 boolean hasRegex(); 73 /** 74 * 75 * 76 * <pre> 77 * Regular expression which defines the rule. 78 * </pre> 79 * 80 * <code>.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;</code> 81 * 82 * @return The regex. 83 */ getRegex()84 com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex(); 85 /** 86 * 87 * 88 * <pre> 89 * Regular expression which defines the rule. 90 * </pre> 91 * 92 * <code>.google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;</code> 93 */ getRegexOrBuilder()94 com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder(); 95 96 /** 97 * 98 * 99 * <pre> 100 * Set of infoTypes for which findings would affect this rule. 101 * </pre> 102 * 103 * <code>.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;</code> 104 * 105 * @return Whether the excludeInfoTypes field is set. 106 */ hasExcludeInfoTypes()107 boolean hasExcludeInfoTypes(); 108 /** 109 * 110 * 111 * <pre> 112 * Set of infoTypes for which findings would affect this rule. 113 * </pre> 114 * 115 * <code>.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;</code> 116 * 117 * @return The excludeInfoTypes. 118 */ getExcludeInfoTypes()119 com.google.privacy.dlp.v2.ExcludeInfoTypes getExcludeInfoTypes(); 120 /** 121 * 122 * 123 * <pre> 124 * Set of infoTypes for which findings would affect this rule. 125 * </pre> 126 * 127 * <code>.google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;</code> 128 */ getExcludeInfoTypesOrBuilder()129 com.google.privacy.dlp.v2.ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder(); 130 131 /** 132 * 133 * 134 * <pre> 135 * Drop if the hotword rule is contained in the proximate context. For 136 * tabular data, the context includes the column name. 137 * </pre> 138 * 139 * <code>.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;</code> 140 * 141 * @return Whether the excludeByHotword field is set. 142 */ hasExcludeByHotword()143 boolean hasExcludeByHotword(); 144 /** 145 * 146 * 147 * <pre> 148 * Drop if the hotword rule is contained in the proximate context. For 149 * tabular data, the context includes the column name. 150 * </pre> 151 * 152 * <code>.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;</code> 153 * 154 * @return The excludeByHotword. 155 */ getExcludeByHotword()156 com.google.privacy.dlp.v2.ExcludeByHotword getExcludeByHotword(); 157 /** 158 * 159 * 160 * <pre> 161 * Drop if the hotword rule is contained in the proximate context. For 162 * tabular data, the context includes the column name. 163 * </pre> 164 * 165 * <code>.google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;</code> 166 */ getExcludeByHotwordOrBuilder()167 com.google.privacy.dlp.v2.ExcludeByHotwordOrBuilder getExcludeByHotwordOrBuilder(); 168 169 /** 170 * 171 * 172 * <pre> 173 * How the rule is applied, see MatchingType documentation for details. 174 * </pre> 175 * 176 * <code>.google.privacy.dlp.v2.MatchingType matching_type = 4;</code> 177 * 178 * @return The enum numeric value on the wire for matchingType. 179 */ getMatchingTypeValue()180 int getMatchingTypeValue(); 181 /** 182 * 183 * 184 * <pre> 185 * How the rule is applied, see MatchingType documentation for details. 186 * </pre> 187 * 188 * <code>.google.privacy.dlp.v2.MatchingType matching_type = 4;</code> 189 * 190 * @return The matchingType. 191 */ getMatchingType()192 com.google.privacy.dlp.v2.MatchingType getMatchingType(); 193 getTypeCase()194 public com.google.privacy.dlp.v2.ExclusionRule.TypeCase getTypeCase(); 195 } 196