Reference documentation and code samples for the Grafeas V1 Client class License.
License information.
Generated from protobuf messagegrafeas.v1.License
Namespace
Grafeas \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
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
Type
Description
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Grafeas V1 Client - Class License (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.License)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.License)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.License)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.License)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.License)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.License)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.License)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.License)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.License)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.License)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.License) \nReference documentation and code samples for the Grafeas V1 Client class License.\n\nLicense information.\n\nGenerated from protobuf message `grafeas.v1.License`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getExpression\n\nOften a single license can be used to represent the licensing terms.\n\nSometimes it is necessary to include a choice of one or more licenses\nor some combination of license identifiers.\nExamples: \"LGPL-2.1-only OR MIT\", \"LGPL-2.1-only AND MIT\",\n\"GPL-2.0-or-later WITH Bison-exception-2.2\".\n\n### setExpression\n\nOften a single license can be used to represent the licensing terms.\n\nSometimes it is necessary to include a choice of one or more licenses\nor some combination of license identifiers.\nExamples: \"LGPL-2.1-only OR MIT\", \"LGPL-2.1-only AND MIT\",\n\"GPL-2.0-or-later WITH Bison-exception-2.2\".\n\n### getComments\n\nComments\n\n### setComments\n\nComments"]]