Class Version (3.0.0)

public sealed class Version : IMessage<Version>, IEquatable<Version>, IDeepCloneable<Version>, IBufferMessage, IMessage

Version contains structured information about the version of a package.

Inheritance

Object > Version

Namespace

Grafeas.V1

Assembly

Grafeas.V1.dll

Constructors

Version()

public Version()

Version(Version)

public Version(Version other)
Parameter
NameDescription
otherVersion

Properties

Epoch

public int Epoch { get; set; }

Used to correct mistakes in the version numbering scheme.

Property Value
TypeDescription
Int32

FullName

public string FullName { get; set; }

Human readable version string. This string is of the form <epoch>:<name>-<revision> and is only set when kind is NORMAL.

Property Value
TypeDescription
String

Inclusive

public bool Inclusive { get; set; }

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.

Property Value
TypeDescription
Boolean

Kind

public Version.Types.VersionKind Kind { get; set; }

Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

Property Value
TypeDescription
Version.Types.VersionKind

Name

public string Name { get; set; }

Required only when version kind is NORMAL. The main part of the version name.

Property Value
TypeDescription
String

Revision

public string Revision { get; set; }

The iteration of the package build from the above version.

Property Value
TypeDescription
String