<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\OnDemandScanning;

class PackageData extends \Google\Collection
{
  protected $collection_key = 'patchedCve';
  /**
   * @var string
   */
  public $architecture;
  protected $binarySourceInfoType = BinarySourceInfo::class;
  protected $binarySourceInfoDataType = 'array';
  protected $binaryVersionType = PackageVersion::class;
  protected $binaryVersionDataType = '';
  /**
   * @var string
   */
  public $cpeUri;
  protected $dependencyChainType = LanguagePackageDependency::class;
  protected $dependencyChainDataType = 'array';
  protected $fileLocationType = FileLocation::class;
  protected $fileLocationDataType = 'array';
  /**
   * @var string
   */
  public $hashDigest;
  protected $maintainerType = Maintainer::class;
  protected $maintainerDataType = '';
  /**
   * @var string
   */
  public $os;
  /**
   * @var string
   */
  public $osVersion;
  /**
   * @var string
   */
  public $package;
  /**
   * @var string
   */
  public $packageType;
  /**
   * @var string[]
   */
  public $patchedCve;
  protected $sourceVersionType = PackageVersion::class;
  protected $sourceVersionDataType = '';
  /**
   * @var string
   */
  public $unused;
  /**
   * @var string
   */
  public $version;

  /**
   * @param string
   */
  public function setArchitecture($architecture)
  {
    $this->architecture = $architecture;
  }
  /**
   * @return string
   */
  public function getArchitecture()
  {
    return $this->architecture;
  }
  /**
   * @param BinarySourceInfo[]
   */
  public function setBinarySourceInfo($binarySourceInfo)
  {
    $this->binarySourceInfo = $binarySourceInfo;
  }
  /**
   * @return BinarySourceInfo[]
   */
  public function getBinarySourceInfo()
  {
    return $this->binarySourceInfo;
  }
  /**
   * @param PackageVersion
   */
  public function setBinaryVersion(PackageVersion $binaryVersion)
  {
    $this->binaryVersion = $binaryVersion;
  }
  /**
   * @return PackageVersion
   */
  public function getBinaryVersion()
  {
    return $this->binaryVersion;
  }
  /**
   * @param string
   */
  public function setCpeUri($cpeUri)
  {
    $this->cpeUri = $cpeUri;
  }
  /**
   * @return string
   */
  public function getCpeUri()
  {
    return $this->cpeUri;
  }
  /**
   * @param LanguagePackageDependency[]
   */
  public function setDependencyChain($dependencyChain)
  {
    $this->dependencyChain = $dependencyChain;
  }
  /**
   * @return LanguagePackageDependency[]
   */
  public function getDependencyChain()
  {
    return $this->dependencyChain;
  }
  /**
   * @param FileLocation[]
   */
  public function setFileLocation($fileLocation)
  {
    $this->fileLocation = $fileLocation;
  }
  /**
   * @return FileLocation[]
   */
  public function getFileLocation()
  {
    return $this->fileLocation;
  }
  /**
   * @param string
   */
  public function setHashDigest($hashDigest)
  {
    $this->hashDigest = $hashDigest;
  }
  /**
   * @return string
   */
  public function getHashDigest()
  {
    return $this->hashDigest;
  }
  /**
   * @param Maintainer
   */
  public function setMaintainer(Maintainer $maintainer)
  {
    $this->maintainer = $maintainer;
  }
  /**
   * @return Maintainer
   */
  public function getMaintainer()
  {
    return $this->maintainer;
  }
  /**
   * @param string
   */
  public function setOs($os)
  {
    $this->os = $os;
  }
  /**
   * @return string
   */
  public function getOs()
  {
    return $this->os;
  }
  /**
   * @param string
   */
  public function setOsVersion($osVersion)
  {
    $this->osVersion = $osVersion;
  }
  /**
   * @return string
   */
  public function getOsVersion()
  {
    return $this->osVersion;
  }
  /**
   * @param string
   */
  public function setPackage($package)
  {
    $this->package = $package;
  }
  /**
   * @return string
   */
  public function getPackage()
  {
    return $this->package;
  }
  /**
   * @param string
   */
  public function setPackageType($packageType)
  {
    $this->packageType = $packageType;
  }
  /**
   * @return string
   */
  public function getPackageType()
  {
    return $this->packageType;
  }
  /**
   * @param string[]
   */
  public function setPatchedCve($patchedCve)
  {
    $this->patchedCve = $patchedCve;
  }
  /**
   * @return string[]
   */
  public function getPatchedCve()
  {
    return $this->patchedCve;
  }
  /**
   * @param PackageVersion
   */
  public function setSourceVersion(PackageVersion $sourceVersion)
  {
    $this->sourceVersion = $sourceVersion;
  }
  /**
   * @return PackageVersion
   */
  public function getSourceVersion()
  {
    return $this->sourceVersion;
  }
  /**
   * @param string
   */
  public function setUnused($unused)
  {
    $this->unused = $unused;
  }
  /**
   * @return string
   */
  public function getUnused()
  {
    return $this->unused;
  }
  /**
   * @param string
   */
  public function setVersion($version)
  {
    $this->version = $version;
  }
  /**
   * @return string
   */
  public function getVersion()
  {
    return $this->version;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PackageData::class, 'Google_Service_OnDemandScanning_PackageData');
