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 GooglePrivacyDlpV2CustomInfoType extends \Google\Collection
21{
22  protected $collection_key = 'detectionRules';
23  protected $detectionRulesType = GooglePrivacyDlpV2DetectionRule::class;
24  protected $detectionRulesDataType = 'array';
25  protected $dictionaryType = GooglePrivacyDlpV2Dictionary::class;
26  protected $dictionaryDataType = '';
27  /**
28   * @var string
29   */
30  public $exclusionType;
31  protected $infoTypeType = GooglePrivacyDlpV2InfoType::class;
32  protected $infoTypeDataType = '';
33  /**
34   * @var string
35   */
36  public $likelihood;
37  protected $regexType = GooglePrivacyDlpV2Regex::class;
38  protected $regexDataType = '';
39  protected $storedTypeType = GooglePrivacyDlpV2StoredType::class;
40  protected $storedTypeDataType = '';
41  protected $surrogateTypeType = GooglePrivacyDlpV2SurrogateType::class;
42  protected $surrogateTypeDataType = '';
43
44  /**
45   * @param GooglePrivacyDlpV2DetectionRule[]
46   */
47  public function setDetectionRules($detectionRules)
48  {
49    $this->detectionRules = $detectionRules;
50  }
51  /**
52   * @return GooglePrivacyDlpV2DetectionRule[]
53   */
54  public function getDetectionRules()
55  {
56    return $this->detectionRules;
57  }
58  /**
59   * @param GooglePrivacyDlpV2Dictionary
60   */
61  public function setDictionary(GooglePrivacyDlpV2Dictionary $dictionary)
62  {
63    $this->dictionary = $dictionary;
64  }
65  /**
66   * @return GooglePrivacyDlpV2Dictionary
67   */
68  public function getDictionary()
69  {
70    return $this->dictionary;
71  }
72  /**
73   * @param string
74   */
75  public function setExclusionType($exclusionType)
76  {
77    $this->exclusionType = $exclusionType;
78  }
79  /**
80   * @return string
81   */
82  public function getExclusionType()
83  {
84    return $this->exclusionType;
85  }
86  /**
87   * @param GooglePrivacyDlpV2InfoType
88   */
89  public function setInfoType(GooglePrivacyDlpV2InfoType $infoType)
90  {
91    $this->infoType = $infoType;
92  }
93  /**
94   * @return GooglePrivacyDlpV2InfoType
95   */
96  public function getInfoType()
97  {
98    return $this->infoType;
99  }
100  /**
101   * @param string
102   */
103  public function setLikelihood($likelihood)
104  {
105    $this->likelihood = $likelihood;
106  }
107  /**
108   * @return string
109   */
110  public function getLikelihood()
111  {
112    return $this->likelihood;
113  }
114  /**
115   * @param GooglePrivacyDlpV2Regex
116   */
117  public function setRegex(GooglePrivacyDlpV2Regex $regex)
118  {
119    $this->regex = $regex;
120  }
121  /**
122   * @return GooglePrivacyDlpV2Regex
123   */
124  public function getRegex()
125  {
126    return $this->regex;
127  }
128  /**
129   * @param GooglePrivacyDlpV2StoredType
130   */
131  public function setStoredType(GooglePrivacyDlpV2StoredType $storedType)
132  {
133    $this->storedType = $storedType;
134  }
135  /**
136   * @return GooglePrivacyDlpV2StoredType
137   */
138  public function getStoredType()
139  {
140    return $this->storedType;
141  }
142  /**
143   * @param GooglePrivacyDlpV2SurrogateType
144   */
145  public function setSurrogateType(GooglePrivacyDlpV2SurrogateType $surrogateType)
146  {
147    $this->surrogateType = $surrogateType;
148  }
149  /**
150   * @return GooglePrivacyDlpV2SurrogateType
151   */
152  public function getSurrogateType()
153  {
154    return $this->surrogateType;
155  }
156}
157
158// Adding a class alias for backwards compatibility with the previous class name.
159class_alias(GooglePrivacyDlpV2CustomInfoType::class, 'Google_Service_DLP_GooglePrivacyDlpV2CustomInfoType');
160