Reference documentation and code samples for the Grafeas V1 Client class PackageNote.
PackageNote represents a particular package version.
Generated from protobuf message grafeas.v1.PackageNote
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the package.
↳ distribution
array< Grafeas\V1\Distribution
>
Deprecated. The various channels by which a package is distributed.
↳ package_type
string
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
↳ cpe_uri
string
The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
↳ architecture
int
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
↳ version
↳ maintainer
string
A freeform text denoting the maintainer of this package.
↳ url
string
The homepage for this package.
↳ description
string
The description of this package.
↳ license
↳ digest
array< Grafeas\V1\Digest
>
Hash value, typically a file digest, that allows unique identification a specific package.
getName
The name of the package.
string
setName
The name of the package.
var
string
$this
getDistribution
Deprecated.
The various channels by which a package is distributed.
setDistribution
Deprecated.
The various channels by which a package is distributed.
$this
getPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
string
setPackageType
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
var
string
$this
getCpeUri
The cpe_uri in CPE format denoting the package manager version distributing a package.
The cpe_uri will be blank for language packages.
string
setCpeUri
The cpe_uri in CPE format denoting the package manager version distributing a package.
The cpe_uri will be blank for language packages.
var
string
$this
getArchitecture
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
int
setArchitecture
The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
var
int
$this
getVersion
The version of the package.
hasVersion
clearVersion
setVersion
The version of the package.
$this
getMaintainer
A freeform text denoting the maintainer of this package.
string
setMaintainer
A freeform text denoting the maintainer of this package.
var
string
$this
getUrl
The homepage for this package.
string
setUrl
The homepage for this package.
var
string
$this
getDescription
The description of this package.
string
setDescription
The description of this package.
var
string
$this
getLicense
Licenses that have been declared by the authors of the package.
hasLicense
clearLicense
setLicense
Licenses that have been declared by the authors of the package.
$this
getDigest
Hash value, typically a file digest, that allows unique identification a specific package.
setDigest
Hash value, typically a file digest, that allows unique identification a specific package.
$this