1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DLP;
19
20class GooglePrivacyDlpV2ExclusionRule extends \Google\Model
21{
22  protected $dictionaryType = GooglePrivacyDlpV2Dictionary::class;
23  protected $dictionaryDataType = '';
24  protected $excludeInfoTypesType = GooglePrivacyDlpV2ExcludeInfoTypes::class;
25  protected $excludeInfoTypesDataType = '';
26  /**
27   * @var string
28   */
29  public $matchingType;
30  protected $regexType = GooglePrivacyDlpV2Regex::class;
31  protected $regexDataType = '';
32
33  /**
34   * @param GooglePrivacyDlpV2Dictionary
35   */
36  public function setDictionary(GooglePrivacyDlpV2Dictionary $dictionary)
37  {
38    $this->dictionary = $dictionary;
39  }
40  /**
41   * @return GooglePrivacyDlpV2Dictionary
42   */
43  public function getDictionary()
44  {
45    return $this->dictionary;
46  }
47  /**
48   * @param GooglePrivacyDlpV2ExcludeInfoTypes
49   */
50  public function setExcludeInfoTypes(GooglePrivacyDlpV2ExcludeInfoTypes $excludeInfoTypes)
51  {
52    $this->excludeInfoTypes = $excludeInfoTypes;
53  }
54  /**
55   * @return GooglePrivacyDlpV2ExcludeInfoTypes
56   */
57  public function getExcludeInfoTypes()
58  {
59    return $this->excludeInfoTypes;
60  }
61  /**
62   * @param string
63   */
64  public function setMatchingType($matchingType)
65  {
66    $this->matchingType = $matchingType;
67  }
68  /**
69   * @return string
70   */
71  public function getMatchingType()
72  {
73    return $this->matchingType;
74  }
75  /**
76   * @param GooglePrivacyDlpV2Regex
77   */
78  public function setRegex(GooglePrivacyDlpV2Regex $regex)
79  {
80    $this->regex = $regex;
81  }
82  /**
83   * @return GooglePrivacyDlpV2Regex
84   */
85  public function getRegex()
86  {
87    return $this->regex;
88  }
89}
90
91// Adding a class alias for backwards compatibility with the previous class name.
92class_alias(GooglePrivacyDlpV2ExclusionRule::class, 'Google_Service_DLP_GooglePrivacyDlpV2ExclusionRule');
93