# Grafeas V1 API - Class Grafeas::V1::Artifact (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::Artifact.

Artifact describes a build product.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #checksum

    def checksum() -> ::String

**Returns**

- (::String) --- Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

### #checksum=

    def checksum=(value) -> ::String

**Parameter**

- **value** (::String) --- Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
**Returns**

- (::String) --- Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
**Returns**

- (::String) --- Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.

### #names

    def names() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.

### #names=

    def names=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
**Returns**

- (::Array\<::String\>) --- Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.