Grafeas V1 Client - Class License (0.7.1)

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

License information.

Generated from protobuf message grafeas.v1.License

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ expression string

Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".

↳ comments string

Comments

getExpression

Often a single license can be used to represent the licensing terms.

Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".

Returns
TypeDescription
string

setExpression

Often a single license can be used to represent the licensing terms.

Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getComments

Comments

Returns
TypeDescription
string

setComments

Comments

Parameter
NameDescription
var string
Returns
TypeDescription
$this