# Apigee Registry v1 API - Class Artifact (1.0.0-beta08)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.0.0-beta08 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact)
- [1.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/1.0.0-beta07/Google.Cloud.ApigeeRegistry.V1.Artifact)

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

Reference documentation and code samples for the Apigee Registry v1 API class Artifact.

Artifacts of resources. Artifacts are unique (single-value) per resource
and are used to store metadata that is too large or numerous to be stored
directly on the resource. Since artifacts are stored separately from parent
resources, they should generally be used for metadata that is needed
infrequently, i.e., not for display in primary views of the resource but
perhaps displayed or downloaded upon request. The `ListArtifacts` method
allows artifacts to be quickly enumerated and checked for presence without
downloading their (potentially-large) contents.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Artifact

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Artifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Artifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Artifact](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApigeeRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1)

## Assembly

Google.Cloud.ApigeeRegistry.V1.dll

## Constructors

### Artifact()

    public Artifact()

### Artifact(Artifact)

    public Artifact(Artifact other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact` |

## Properties

### ArtifactName

    public ArtifactName ArtifactName { get; set; }

[ArtifactName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ArtifactName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.Artifact#Google_Cloud_ApigeeRegistry_V1_Artifact_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApigeeRegistry.V1/latest/Google.Cloud.ApigeeRegistry.V1.ArtifactName` |   |

### Contents

    public ByteString Contents { get; set; }

Input only. The contents of the artifact.
Provided by API callers when artifacts are created or replaced.
To access the contents of an artifact, use GetArtifactContents.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.ByteString.html` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Creation timestamp.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### Hash

    public string Hash { get; set; }

Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped,
this is the hash of the uncompressed artifact.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### MimeType

    public string MimeType { get; set; }

A content type specifier for the artifact.
Content type specifiers are Media Types
(<https://en.wikipedia.org/wiki/Media_type>) with a possible "schema"
parameter that specifies a schema for the stored information.
Content types can specify compression. Currently only GZip compression is
supported (indicated with "+gzip").

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Resource name.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### SizeBytes

    public int SizeBytes { get; set; }

Output only. The size of the artifact in bytes. If the artifact is gzipped, this is
the size of the uncompressed artifact.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. Last update timestamp.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |