Grafeas V1 Client - Class PackageNote (0.6.0)

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.

Parameters
NameDescription
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 Grafeas\V1\Version

The version of the package.

↳ 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 Grafeas\V1\License

Licenses that have been declared by the authors of the package.

↳ digest array<Grafeas\V1\Digest>

Hash value, typically a file digest, that allows unique identification a specific package.

getName

The name of the package.

Returns
TypeDescription
string

setName

The name of the package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDistribution

Deprecated.

The various channels by which a package is distributed.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDistribution

Deprecated.

The various channels by which a package is distributed.

Parameter
NameDescription
var array<Grafeas\V1\Distribution>
Returns
TypeDescription
$this

getPackageType

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

Returns
TypeDescription
string

setPackageType

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getArchitecture

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

Returns
TypeDescription
int

setArchitecture

The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVersion

The version of the package.

Returns
TypeDescription
Grafeas\V1\Version|null

hasVersion

clearVersion

setVersion

The version of the package.

Parameter
NameDescription
var Grafeas\V1\Version
Returns
TypeDescription
$this

getMaintainer

A freeform text denoting the maintainer of this package.

Returns
TypeDescription
string

setMaintainer

A freeform text denoting the maintainer of this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUrl

The homepage for this package.

Returns
TypeDescription
string

setUrl

The homepage for this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

The description of this package.

Returns
TypeDescription
string

setDescription

The description of this package.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLicense

Licenses that have been declared by the authors of the package.

Returns
TypeDescription
Grafeas\V1\License|null

hasLicense

clearLicense

setLicense

Licenses that have been declared by the authors of the package.

Parameter
NameDescription
var Grafeas\V1\License
Returns
TypeDescription
$this

getDigest

Hash value, typically a file digest, that allows unique identification a specific package.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDigest

Hash value, typically a file digest, that allows unique identification a specific package.

Parameter
NameDescription
var array<Grafeas\V1\Digest>
Returns
TypeDescription
$this