Reference documentation and code samples for the Grafeas V1 Client class Version.
Version contains structured information about the version of a package.
Generated from protobuf messagegrafeas.v1.Version
Namespace
Grafeas \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ epoch
int
Used to correct mistakes in the version numbering scheme.
↳ name
string
Required only when version kind is NORMAL. The main part of the version name.
↳ revision
string
The iteration of the package build from the above version.
↳ inclusive
bool
Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
↳ kind
int
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
↳ full_name
string
Human readable version string. This string is of the form
getEpoch
Used to correct mistakes in the version numbering scheme.
Returns
Type
Description
int
setEpoch
Used to correct mistakes in the version numbering scheme.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getName
Required only when version kind is NORMAL. The main part of the version
name.
Returns
Type
Description
string
setName
Required only when version kind is NORMAL. The main part of the version
name.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRevision
The iteration of the package build from the above version.
Returns
Type
Description
string
setRevision
The iteration of the package build from the above version.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInclusive
Whether this version is specifying part of an inclusive range. Grafeas
does not have the capability to specify version ranges; instead we have
fields that specify start version and end versions. At times this is
insufficient - we also need to specify whether the version is included in
the range or is excluded from the range. This boolean is expected to be set
to true when the version is included in a range.
Returns
Type
Description
bool
setInclusive
Whether this version is specifying part of an inclusive range. Grafeas
does not have the capability to specify version ranges; instead we have
fields that specify start version and end versions. At times this is
insufficient - we also need to specify whether the version is included in
the range or is excluded from the range. This boolean is expected to be set
to true when the version is included in a range.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getKind
Required. Distinguishes between sentinel MIN/MAX versions and normal
versions.
Returns
Type
Description
int
setKind
Required. Distinguishes between sentinel MIN/MAX versions and normal
versions.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getFullName
Human readable version string. This string is of the form
Returns
Type
Description
string
setFullName
Human readable version string. This string is of the form
[[["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 Version (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/grafeas/latest/V1.Version)\n- [1.2.1](/php/docs/reference/grafeas/1.2.1/V1.Version)\n- [1.1.3](/php/docs/reference/grafeas/1.1.3/V1.Version)\n- [1.0.0](/php/docs/reference/grafeas/1.0.0/V1.Version)\n- [0.10.3](/php/docs/reference/grafeas/0.10.3/V1.Version)\n- [0.9.0](/php/docs/reference/grafeas/0.9.0/V1.Version)\n- [0.8.3](/php/docs/reference/grafeas/0.8.3/V1.Version)\n- [0.7.1](/php/docs/reference/grafeas/0.7.1/V1.Version)\n- [0.6.0](/php/docs/reference/grafeas/0.6.0/V1.Version)\n- [0.5.0](/php/docs/reference/grafeas/0.5.0/V1.Version)\n- [0.4.4](/php/docs/reference/grafeas/0.4.4/V1.Version) \nReference documentation and code samples for the Grafeas V1 Client class Version.\n\nVersion contains structured information about the version of a package.\n\nGenerated from protobuf message `grafeas.v1.Version`\n\nNamespace\n---------\n\nGrafeas \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEpoch\n\nUsed to correct mistakes in the version numbering scheme.\n\n### setEpoch\n\nUsed to correct mistakes in the version numbering scheme.\n\n### getName\n\nRequired only when version kind is NORMAL. The main part of the version\nname.\n\n### setName\n\nRequired only when version kind is NORMAL. The main part of the version\nname.\n\n### getRevision\n\nThe iteration of the package build from the above version.\n\n### setRevision\n\nThe iteration of the package build from the above version.\n\n### getInclusive\n\nWhether this version is specifying part of an inclusive range. Grafeas\ndoes not have the capability to specify version ranges; instead we have\nfields that specify start version and end versions. At times this is\ninsufficient - we also need to specify whether the version is included in\nthe range or is excluded from the range. This boolean is expected to be set\nto true when the version is included in a range.\n\n### setInclusive\n\nWhether this version is specifying part of an inclusive range. Grafeas\ndoes not have the capability to specify version ranges; instead we have\nfields that specify start version and end versions. At times this is\ninsufficient - we also need to specify whether the version is included in\nthe range or is excluded from the range. This boolean is expected to be set\nto true when the version is included in a range.\n\n### getKind\n\nRequired. Distinguishes between sentinel MIN/MAX versions and normal\nversions.\n\n### setKind\n\nRequired. Distinguishes between sentinel MIN/MAX versions and normal\nversions.\n\n### getFullName\n\nHuman readable version string. This string is of the form\n\n\n### setFullName\n\nHuman readable version string. This string is of the form"]]