Grafeas V1 Client - Class Product (1.0.0)

Reference documentation and code samples for the Grafeas V1 Client class Product.

Product contains information about a product and how to uniquely identify it.

(-- api-linter: core::0123::resource-annotation=disabled aip.dev/not-precedent: Product is not a separate resource. --)

Generated from protobuf message grafeas.v1.VulnerabilityAssessmentNote.Product

Namespace

Grafeas \ V1 \ VulnerabilityAssessmentNote

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Name of the product.

↳ id string

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

↳ generic_uri string

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

getName

Name of the product.

Returns
Type Description
string

setName

Name of the product.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

Returns
Type Description
string

setId

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

Parameter
Name Description
var string
Returns
Type Description
$this

getGenericUri

Contains a URI which is vendor-specific.

Example: The artifact repository URL of an image.

Returns
Type Description
string

hasGenericUri

setGenericUri

Contains a URI which is vendor-specific.

Example: The artifact repository URL of an image.

Parameter
Name Description
var string
Returns
Type Description
$this

getIdentifier

Returns
Type Description
string