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\ContainerAnalysis;
19
20class Occurrence extends \Google\Model
21{
22  protected $attestationType = AttestationOccurrence::class;
23  protected $attestationDataType = '';
24  protected $buildType = BuildOccurrence::class;
25  protected $buildDataType = '';
26  protected $complianceType = ComplianceOccurrence::class;
27  protected $complianceDataType = '';
28  /**
29   * @var string
30   */
31  public $createTime;
32  protected $deploymentType = DeploymentOccurrence::class;
33  protected $deploymentDataType = '';
34  protected $discoveryType = DiscoveryOccurrence::class;
35  protected $discoveryDataType = '';
36  protected $dsseAttestationType = DSSEAttestationOccurrence::class;
37  protected $dsseAttestationDataType = '';
38  protected $envelopeType = Envelope::class;
39  protected $envelopeDataType = '';
40  protected $imageType = ImageOccurrence::class;
41  protected $imageDataType = '';
42  /**
43   * @var string
44   */
45  public $kind;
46  /**
47   * @var string
48   */
49  public $name;
50  /**
51   * @var string
52   */
53  public $noteName;
54  protected $packageType = PackageOccurrence::class;
55  protected $packageDataType = '';
56  /**
57   * @var string
58   */
59  public $remediation;
60  /**
61   * @var string
62   */
63  public $resourceUri;
64  /**
65   * @var string
66   */
67  public $updateTime;
68  protected $upgradeType = UpgradeOccurrence::class;
69  protected $upgradeDataType = '';
70  protected $vulnerabilityType = VulnerabilityOccurrence::class;
71  protected $vulnerabilityDataType = '';
72
73  /**
74   * @param AttestationOccurrence
75   */
76  public function setAttestation(AttestationOccurrence $attestation)
77  {
78    $this->attestation = $attestation;
79  }
80  /**
81   * @return AttestationOccurrence
82   */
83  public function getAttestation()
84  {
85    return $this->attestation;
86  }
87  /**
88   * @param BuildOccurrence
89   */
90  public function setBuild(BuildOccurrence $build)
91  {
92    $this->build = $build;
93  }
94  /**
95   * @return BuildOccurrence
96   */
97  public function getBuild()
98  {
99    return $this->build;
100  }
101  /**
102   * @param ComplianceOccurrence
103   */
104  public function setCompliance(ComplianceOccurrence $compliance)
105  {
106    $this->compliance = $compliance;
107  }
108  /**
109   * @return ComplianceOccurrence
110   */
111  public function getCompliance()
112  {
113    return $this->compliance;
114  }
115  /**
116   * @param string
117   */
118  public function setCreateTime($createTime)
119  {
120    $this->createTime = $createTime;
121  }
122  /**
123   * @return string
124   */
125  public function getCreateTime()
126  {
127    return $this->createTime;
128  }
129  /**
130   * @param DeploymentOccurrence
131   */
132  public function setDeployment(DeploymentOccurrence $deployment)
133  {
134    $this->deployment = $deployment;
135  }
136  /**
137   * @return DeploymentOccurrence
138   */
139  public function getDeployment()
140  {
141    return $this->deployment;
142  }
143  /**
144   * @param DiscoveryOccurrence
145   */
146  public function setDiscovery(DiscoveryOccurrence $discovery)
147  {
148    $this->discovery = $discovery;
149  }
150  /**
151   * @return DiscoveryOccurrence
152   */
153  public function getDiscovery()
154  {
155    return $this->discovery;
156  }
157  /**
158   * @param DSSEAttestationOccurrence
159   */
160  public function setDsseAttestation(DSSEAttestationOccurrence $dsseAttestation)
161  {
162    $this->dsseAttestation = $dsseAttestation;
163  }
164  /**
165   * @return DSSEAttestationOccurrence
166   */
167  public function getDsseAttestation()
168  {
169    return $this->dsseAttestation;
170  }
171  /**
172   * @param Envelope
173   */
174  public function setEnvelope(Envelope $envelope)
175  {
176    $this->envelope = $envelope;
177  }
178  /**
179   * @return Envelope
180   */
181  public function getEnvelope()
182  {
183    return $this->envelope;
184  }
185  /**
186   * @param ImageOccurrence
187   */
188  public function setImage(ImageOccurrence $image)
189  {
190    $this->image = $image;
191  }
192  /**
193   * @return ImageOccurrence
194   */
195  public function getImage()
196  {
197    return $this->image;
198  }
199  /**
200   * @param string
201   */
202  public function setKind($kind)
203  {
204    $this->kind = $kind;
205  }
206  /**
207   * @return string
208   */
209  public function getKind()
210  {
211    return $this->kind;
212  }
213  /**
214   * @param string
215   */
216  public function setName($name)
217  {
218    $this->name = $name;
219  }
220  /**
221   * @return string
222   */
223  public function getName()
224  {
225    return $this->name;
226  }
227  /**
228   * @param string
229   */
230  public function setNoteName($noteName)
231  {
232    $this->noteName = $noteName;
233  }
234  /**
235   * @return string
236   */
237  public function getNoteName()
238  {
239    return $this->noteName;
240  }
241  /**
242   * @param PackageOccurrence
243   */
244  public function setPackage(PackageOccurrence $package)
245  {
246    $this->package = $package;
247  }
248  /**
249   * @return PackageOccurrence
250   */
251  public function getPackage()
252  {
253    return $this->package;
254  }
255  /**
256   * @param string
257   */
258  public function setRemediation($remediation)
259  {
260    $this->remediation = $remediation;
261  }
262  /**
263   * @return string
264   */
265  public function getRemediation()
266  {
267    return $this->remediation;
268  }
269  /**
270   * @param string
271   */
272  public function setResourceUri($resourceUri)
273  {
274    $this->resourceUri = $resourceUri;
275  }
276  /**
277   * @return string
278   */
279  public function getResourceUri()
280  {
281    return $this->resourceUri;
282  }
283  /**
284   * @param string
285   */
286  public function setUpdateTime($updateTime)
287  {
288    $this->updateTime = $updateTime;
289  }
290  /**
291   * @return string
292   */
293  public function getUpdateTime()
294  {
295    return $this->updateTime;
296  }
297  /**
298   * @param UpgradeOccurrence
299   */
300  public function setUpgrade(UpgradeOccurrence $upgrade)
301  {
302    $this->upgrade = $upgrade;
303  }
304  /**
305   * @return UpgradeOccurrence
306   */
307  public function getUpgrade()
308  {
309    return $this->upgrade;
310  }
311  /**
312   * @param VulnerabilityOccurrence
313   */
314  public function setVulnerability(VulnerabilityOccurrence $vulnerability)
315  {
316    $this->vulnerability = $vulnerability;
317  }
318  /**
319   * @return VulnerabilityOccurrence
320   */
321  public function getVulnerability()
322  {
323    return $this->vulnerability;
324  }
325}
326
327// Adding a class alias for backwards compatibility with the previous class name.
328class_alias(Occurrence::class, 'Google_Service_ContainerAnalysis_Occurrence');
329