📂 File Browser

AgentAI/vendor/google/apiclient-services/src/OnDemandScanning
☀️ Light Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AISkillAnalysisOccurrence.php
▶ Open 📄 View Source
🐘 AliasContext.php
▶ Open 📄 View Source
🐘 AnalysisCompleted.php
▶ Open 📄 View Source
🐘 AnalyzePackagesMetadata.php
▶ Open 📄 View Source
🐘 AnalyzePackagesMetadataV1.php
▶ Open 📄 View Source
🐘 AnalyzePackagesRequestV1.php
▶ Open 📄 View Source
🐘 AnalyzePackagesResponse.php
▶ Open 📄 View Source
🐘 AnalyzePackagesResponseV1.php
▶ Open 📄 View Source
🐘 Artifact.php
▶ Open 📄 View Source
🐘 AttestationOccurrence.php
▶ Open 📄 View Source
🐘 BaseImage.php
▶ Open 📄 View Source
🐘 Binary.php
▶ Open 📄 View Source
🐘 BinarySourceInfo.php
▶ Open 📄 View Source
🐘 BuildDefinition.php
▶ Open 📄 View Source
🐘 BuildMetadata.php
▶ Open 📄 View Source
🐘 BuildOccurrence.php
▶ Open 📄 View Source
🐘 BuildProvenance.php
▶ Open 📄 View Source
🐘 BuilderConfig.php
▶ Open 📄 View Source
🐘 CISAKnownExploitedVulnerabilities.php
▶ Open 📄 View Source
🐘 CVSS.php
▶ Open 📄 View Source
🐘 Category.php
▶ Open 📄 View Source
🐘 CloudRepoSourceContext.php
▶ Open 📄 View Source
🐘 Command.php
▶ Open 📄 View Source
🐘 Completeness.php
▶ Open 📄 View Source
🐘 ComplianceOccurrence.php
▶ Open 📄 View Source
🐘 ComplianceVersion.php
▶ Open 📄 View Source
🐘 DSSEAttestationOccurrence.php
▶ Open 📄 View Source
🐘 DeploymentOccurrence.php
▶ Open 📄 View Source
🐘 DiscoveryOccurrence.php
▶ Open 📄 View Source
🐘 Envelope.php
▶ Open 📄 View Source
🐘 EnvelopeSignature.php
▶ Open 📄 View Source
🐘 ExploitPredictionScoringSystem.php
▶ Open 📄 View Source
🐘 FileHashes.php
▶ Open 📄 View Source
🐘 FileLocation.php
▶ Open 📄 View Source
🐘 Finding.php
▶ Open 📄 View Source
🐘 Fingerprint.php
▶ Open 📄 View Source
🐘 GerritSourceContext.php
▶ Open 📄 View Source
🐘 GitSourceContext.php
▶ Open 📄 View Source
🐘 GrafeasV1BaseImage.php
▶ Open 📄 View Source
🐘 GrafeasV1FileLocation.php
▶ Open 📄 View Source
🐘 GrafeasV1LayerDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaBuilder.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaCompleteness.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaConfigSource.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaInvocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaMaterial.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaMetadata.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.php
▶ Open 📄 View Source
🐘 Hash.php
▶ Open 📄 View Source
🐘 Identity.php
▶ Open 📄 View Source
🐘 ImageOccurrence.php
▶ Open 📄 View Source
🐘 InTotoProvenance.php
▶ Open 📄 View Source
🐘 InTotoSlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 InTotoStatement.php
▶ Open 📄 View Source
🐘 Justification.php
▶ Open 📄 View Source
🐘 Jwt.php
▶ Open 📄 View Source
🐘 LanguagePackageDependency.php
▶ Open 📄 View Source
🐘 Layer.php
▶ Open 📄 View Source
🐘 LayerDetails.php
▶ Open 📄 View Source
🐘 License.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListVulnerabilitiesResponseV1.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 Maintainer.php
▶ Open 📄 View Source
🐘 Material.php
▶ Open 📄 View Source
🐘 Metadata.php
▶ Open 📄 View Source
🐘 NonCompliantFile.php
▶ Open 📄 View Source
🐘 Occurrence.php
▶ Open 📄 View Source
🐘 OndemandscanningEmpty.php
▶ Open 📄 View Source
🐘 OndemandscanningFile.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 PackageData.php
▶ Open 📄 View Source
🐘 PackageIssue.php
▶ Open 📄 View Source
🐘 PackageOccurrence.php
▶ Open 📄 View Source
🐘 PackageVersion.php
▶ Open 📄 View Source
🐘 ProjectRepoId.php
▶ Open 📄 View Source
🐘 ProvenanceBuilder.php
▶ Open 📄 View Source
🐘 Recipe.php
▶ Open 📄 View Source
🐘 RelatedUrl.php
▶ Open 📄 View Source
🐘 Remediation.php
▶ Open 📄 View Source
🐘 RepoId.php
▶ Open 📄 View Source
🐘 ResourceDescriptor.php
▶ Open 📄 View Source
🐘 Risk.php
▶ Open 📄 View Source
🐘 RunDetails.php
▶ Open 📄 View Source
🐘 SBOMReferenceOccurrence.php
▶ Open 📄 View Source
🐘 SBOMStatus.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPayload.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPredicate.php
▶ Open 📄 View Source
🐘 SecretLocation.php
▶ Open 📄 View Source
🐘 SecretOccurrence.php
▶ Open 📄 View Source
🐘 SecretStatus.php
▶ Open 📄 View Source
🐘 Signature.php
▶ Open 📄 View Source
🐘 SlsaBuilder.php
▶ Open 📄 View Source
🐘 SlsaCompleteness.php
▶ Open 📄 View Source
🐘 SlsaMetadata.php
▶ Open 📄 View Source
🐘 SlsaProvenance.php
▶ Open 📄 View Source
🐘 SlsaProvenance02.php
▶ Open 📄 View Source
🐘 SlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 SlsaProvenanceZeroTwo.php
▶ Open 📄 View Source
🐘 SlsaRecipe.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Subject.php
▶ Open 📄 View Source
🐘 UpgradeDistribution.php
▶ Open 📄 View Source
🐘 UpgradeOccurrence.php
▶ Open 📄 View Source
🐘 Version.php
▶ Open 📄 View Source
🐘 VexAssessment.php
▶ Open 📄 View Source
🐘 VulnerabilityAttestation.php
▶ Open 📄 View Source
🐘 VulnerabilityOccurrence.php
▶ Open 📄 View Source
🐘 WindowsUpdate.php
▶ Open 📄 View Source

📄 Source: PackageData.php

<?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
{
  public const PACKAGE_TYPE_PACKAGE_TYPE_UNSPECIFIED = 'PACKAGE_TYPE_UNSPECIFIED';
  /**
   * Operating System
   */
  public const PACKAGE_TYPE_OS = 'OS';
  /**
   * Java packages from Maven.
   */
  public const PACKAGE_TYPE_MAVEN = 'MAVEN';
  /**
   * Go third-party packages.
   */
  public const PACKAGE_TYPE_GO = 'GO';
  /**
   * Go toolchain + standard library packages.
   */
  public const PACKAGE_TYPE_GO_STDLIB = 'GO_STDLIB';
  /**
   * Python packages.
   */
  public const PACKAGE_TYPE_PYPI = 'PYPI';
  /**
   * NPM packages.
   */
  public const PACKAGE_TYPE_NPM = 'NPM';
  /**
   * Nuget (C#/.NET) packages.
   */
  public const PACKAGE_TYPE_NUGET = 'NUGET';
  /**
   * Ruby packges (from RubyGems package manager).
   */
  public const PACKAGE_TYPE_RUBYGEMS = 'RUBYGEMS';
  /**
   * Rust packages from Cargo (GitHub ecosystem is `RUST`).
   */
  public const PACKAGE_TYPE_RUST = 'RUST';
  /**
   * PHP packages from Composer package manager.
   */
  public const PACKAGE_TYPE_COMPOSER = 'COMPOSER';
  /**
   * Swift packages from Swift Package Manager (SwiftPM).
   */
  public const PACKAGE_TYPE_SWIFT = 'SWIFT';
  protected $collection_key = 'patchedCve';
  /**
   * The architecture of the package.
   *
   * @var string
   */
  public $architecture;
  protected $binarySourceInfoType = BinarySourceInfo::class;
  protected $binarySourceInfoDataType = 'array';
  protected $binaryVersionType = PackageVersion::class;
  protected $binaryVersionDataType = '';
  /**
   * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
   * the vulnerability may manifest. Examples include distro or storage location
   * for vulnerable jar.
   *
   * @var string
   */
  public $cpeUri;
  protected $dependencyChainType = LanguagePackageDependency::class;
  protected $dependencyChainDataType = 'array';
  protected $fileLocationType = FileLocation::class;
  protected $fileLocationDataType = 'array';
  /**
   * HashDigest stores the SHA512 hash digest of the jar file if the package is
   * of type Maven. This field will be unset for non Maven packages.
   *
   * @var string
   */
  public $hashDigest;
  protected $layerDetailsType = LayerDetails::class;
  protected $layerDetailsDataType = '';
  /**
   * The list of licenses found that are related to a given package. Note that
   * licenses may also be stored on the BinarySourceInfo. If there is no
   * BinarySourceInfo (because there's no concept of source vs binary), then it
   * will be stored here, while if there are BinarySourceInfos, it will be
   * stored there, as one source can have multiple binaries with different
   * licenses.
   *
   * @var string[]
   */
  public $licenses;
  protected $maintainerType = Maintainer::class;
  protected $maintainerDataType = '';
  /**
   * The OS affected by a vulnerability Used to generate the cpe_uri for OS
   * packages
   *
   * @var string
   */
  public $os;
  /**
   * The version of the OS Used to generate the cpe_uri for OS packages
   *
   * @var string
   */
  public $osVersion;
  /**
   * The package being analysed for vulnerabilities
   *
   * @var string
   */
  public $package;
  /**
   * The type of package: os, maven, go, etc.
   *
   * @var string
   */
  public $packageType;
  /**
   * CVEs that this package is no longer vulnerable to
   *
   * @var string[]
   */
  public $patchedCve;
  protected $sourceVersionType = PackageVersion::class;
  protected $sourceVersionDataType = '';
  /**
   * @var string
   */
  public $unused;
  /**
   * The version of the package being analysed
   *
   * @var string
   */
  public $version;

  /**
   * The architecture of the package.
   *
   * @param string $architecture
   */
  public function setArchitecture($architecture)
  {
    $this->architecture = $architecture;
  }
  /**
   * @return string
   */
  public function getArchitecture()
  {
    return $this->architecture;
  }
  /**
   * A bundle containing the binary and source information.
   *
   * @param BinarySourceInfo[] $binarySourceInfo
   */
  public function setBinarySourceInfo($binarySourceInfo)
  {
    $this->binarySourceInfo = $binarySourceInfo;
  }
  /**
   * @return BinarySourceInfo[]
   */
  public function getBinarySourceInfo()
  {
    return $this->binarySourceInfo;
  }
  /**
   * DEPRECATED
   *
   * @param PackageVersion $binaryVersion
   */
  public function setBinaryVersion(PackageVersion $binaryVersion)
  {
    $this->binaryVersion = $binaryVersion;
  }
  /**
   * @return PackageVersion
   */
  public function getBinaryVersion()
  {
    return $this->binaryVersion;
  }
  /**
   * The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which
   * the vulnerability may manifest. Examples include distro or storage location
   * for vulnerable jar.
   *
   * @param string $cpeUri
   */
  public function setCpeUri($cpeUri)
  {
    $this->cpeUri = $cpeUri;
  }
  /**
   * @return string
   */
  public function getCpeUri()
  {
    return $this->cpeUri;
  }
  /**
   * The dependency chain between this package and the user's artifact. List in
   * order from the customer's package under review first, to the current
   * package last. Inclusive of the original package and the current package.
   *
   * @param LanguagePackageDependency[] $dependencyChain
   */
  public function setDependencyChain($dependencyChain)
  {
    $this->dependencyChain = $dependencyChain;
  }
  /**
   * @return LanguagePackageDependency[]
   */
  public function getDependencyChain()
  {
    return $this->dependencyChain;
  }
  /**
   * The path to the jar file / go binary file.
   *
   * @param FileLocation[] $fileLocation
   */
  public function setFileLocation($fileLocation)
  {
    $this->fileLocation = $fileLocation;
  }
  /**
   * @return FileLocation[]
   */
  public function getFileLocation()
  {
    return $this->fileLocation;
  }
  /**
   * HashDigest stores the SHA512 hash digest of the jar file if the package is
   * of type Maven. This field will be unset for non Maven packages.
   *
   * @param string $hashDigest
   */
  public function setHashDigest($hashDigest)
  {
    $this->hashDigest = $hashDigest;
  }
  /**
   * @return string
   */
  public function getHashDigest()
  {
    return $this->hashDigest;
  }
  /**
   * @param LayerDetails $layerDetails
   */
  public function setLayerDetails(LayerDetails $layerDetails)
  {
    $this->layerDetails = $layerDetails;
  }
  /**
   * @return LayerDetails
   */
  public function getLayerDetails()
  {
    return $this->layerDetails;
  }
  /**
   * The list of licenses found that are related to a given package. Note that
   * licenses may also be stored on the BinarySourceInfo. If there is no
   * BinarySourceInfo (because there's no concept of source vs binary), then it
   * will be stored here, while if there are BinarySourceInfos, it will be
   * stored there, as one source can have multiple binaries with different
   * licenses.
   *
   * @param string[] $licenses
   */
  public function setLicenses($licenses)
  {
    $this->licenses = $licenses;
  }
  /**
   * @return string[]
   */
  public function getLicenses()
  {
    return $this->licenses;
  }
  /**
   * The maintainer of the package.
   *
   * @param Maintainer $maintainer
   */
  public function setMaintainer(Maintainer $maintainer)
  {
    $this->maintainer = $maintainer;
  }
  /**
   * @return Maintainer
   */
  public function getMaintainer()
  {
    return $this->maintainer;
  }
  /**
   * The OS affected by a vulnerability Used to generate the cpe_uri for OS
   * packages
   *
   * @param string $os
   */
  public function setOs($os)
  {
    $this->os = $os;
  }
  /**
   * @return string
   */
  public function getOs()
  {
    return $this->os;
  }
  /**
   * The version of the OS Used to generate the cpe_uri for OS packages
   *
   * @param string $osVersion
   */
  public function setOsVersion($osVersion)
  {
    $this->osVersion = $osVersion;
  }
  /**
   * @return string
   */
  public function getOsVersion()
  {
    return $this->osVersion;
  }
  /**
   * The package being analysed for vulnerabilities
   *
   * @param string $package
   */
  public function setPackage($package)
  {
    $this->package = $package;
  }
  /**
   * @return string
   */
  public function getPackage()
  {
    return $this->package;
  }
  /**
   * The type of package: os, maven, go, etc.
   *
   * Accepted values: PACKAGE_TYPE_UNSPECIFIED, OS, MAVEN, GO, GO_STDLIB, PYPI,
   * NPM, NUGET, RUBYGEMS, RUST, COMPOSER, SWIFT
   *
   * @param self::PACKAGE_TYPE_* $packageType
   */
  public function setPackageType($packageType)
  {
    $this->packageType = $packageType;
  }
  /**
   * @return self::PACKAGE_TYPE_*
   */
  public function getPackageType()
  {
    return $this->packageType;
  }
  /**
   * CVEs that this package is no longer vulnerable to
   *
   * @param string[] $patchedCve
   */
  public function setPatchedCve($patchedCve)
  {
    $this->patchedCve = $patchedCve;
  }
  /**
   * @return string[]
   */
  public function getPatchedCve()
  {
    return $this->patchedCve;
  }
  /**
   * DEPRECATED
   *
   * @param PackageVersion $sourceVersion
   */
  public function setSourceVersion(PackageVersion $sourceVersion)
  {
    $this->sourceVersion = $sourceVersion;
  }
  /**
   * @return PackageVersion
   */
  public function getSourceVersion()
  {
    return $this->sourceVersion;
  }
  /**
   * @param string $unused
   */
  public function setUnused($unused)
  {
    $this->unused = $unused;
  }
  /**
   * @return string
   */
  public function getUnused()
  {
    return $this->unused;
  }
  /**
   * The version of the package being analysed
   *
   * @param string $version
   */
  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');
← Back