# Grafeas V1 API - Class Grafeas::V1::Version (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::Version.

Version contains structured information about the version of a package.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #epoch

    def epoch() -> ::Integer

**Returns**

- (::Integer) --- Used to correct mistakes in the version numbering scheme.

### #epoch=

    def epoch=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Used to correct mistakes in the version numbering scheme.
**Returns**

- (::Integer) --- Used to correct mistakes in the version numbering scheme.

### #full_name

    def full_name() -> ::String

**Returns**

- (::String) --- Human readable version string. This string is of the form

### #full_name=

    def full_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Human readable version string. This string is of the form
**Returns**

- (::String) --- Human readable version string. This string is of the form

### #inclusive

    def inclusive() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #inclusive=

    def inclusive=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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

    def kind() -> ::Grafeas::V1::Version::VersionKind

**Returns**

- ([::Grafeas::V1::Version::VersionKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version-VersionKind)) --- Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

### #kind=

    def kind=(value) -> ::Grafeas::V1::Version::VersionKind

**Parameter**

- **value** ([::Grafeas::V1::Version::VersionKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version-VersionKind)) --- Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
**Returns**

- ([::Grafeas::V1::Version::VersionKind](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Version-VersionKind)) --- Required. Distinguishes between sentinel MIN/MAX versions and normal versions.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required only when version kind is NORMAL. The main part of the version name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required only when version kind is NORMAL. The main part of the version name.
**Returns**

- (::String) --- Required only when version kind is NORMAL. The main part of the version name.

### #revision

    def revision() -> ::String

**Returns**

- (::String) --- The iteration of the package build from the above version.

### #revision=

    def revision=(value) -> ::String

**Parameter**

- **value** (::String) --- The iteration of the package build from the above version.
**Returns**

- (::String) --- The iteration of the package build from the above version.