public sealed class Version : IMessage<Version>, IEquatable<Version>, IDeepCloneable<Version>, IBufferMessage, IMessage
Version contains structured information about the version of a package.
Implements
IMessage<Version>, IEquatable<Version>, IDeepCloneable<Version>, IBufferMessage, IMessageNamespace
Grafeas.V1Assembly
Grafeas.V1.dll
Constructors
Version()
public Version()
Version(Version)
public Version(Version other)
Name | Description |
other | Version |
Properties
Epoch
public int Epoch { get; set; }
Used to correct mistakes in the version numbering scheme.
Type | Description |
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.
Type | Description |
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.
Type | Description |
Boolean |
Kind
public Version.Types.VersionKind Kind { get; set; }
Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Type | Description |
Version.Types.VersionKind |
Name
public string Name { get; set; }
Required only when version kind is NORMAL. The main part of the version name.
Type | Description |
String |
Revision
public string Revision { get; set; }
The iteration of the package build from the above version.
Type | Description |
String |