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